Skip to content

halit/doorman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doorman

https://pypip.in/v/doorman/badge.png https://pypip.in/d/doorman/badge.png https://api.travis-ci.org/halitalptekin/doorman.png https://pypip.in/license/doorman/badge.png

Doorman keeps your secret things but main purpose of this tool, the convenience of the people working on the same file does not store passwords.

Install

pip install doorman

Usage

Firstly, you should create a config file(~/.config/doorman/doorman.yml) or put in text like below lines:

# social accounts
/home/user/twitter.rb:
 twitter_password: bHc0yz
 private_key: 1VpzKbLDTqC1vXb
/home/user/pythoncodes/githubapi.py:
 github_password: wKJ4cV

# secret text
/etc/secret.conf:
 my_secret: really secret thing

# secret function
../settings/my_settings.py:
 my_func: [i for i in others if i < 3]

Hide all secret things;

doorman -s
# Doorman defaults to -s when no argument is given
doorman
... my twitter password is {{ twitter_password }} ...
... i keep {{ my_secret }} from other ...

Un-hide all secret things;

doorman -u
... my twitter password is bHc0yz ...
... i keep really secret thing from other ...

Help for usage;

doorman -h
usage: doorman [-h] [-s | -u] [-v] [-c CONFIG_FILE]

Doorman keeps your secret things

optional arguments:
  -h, --help            show this help message and exit
  -u, --unsecret        Open all secret things
  -s, --secret          Hide all secret things
  -v, --verbose         Show all messages
  -c CONFIG_FILE, --config CONFIG_FILE
                        Config file

TODO

File open and replace: need to completely re-write