看门人保守你的秘密

doorman的Python项目详细描述


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

门卫会保守你的秘密,但这个工具的主要目的是方便在同一个文件上工作的人不存储密码。

安装

pipinstalldoorman

用法

首先,您应该创建一个配置文件(~/.config/doorman/doorman.yml)或输入如下文本:

# 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]

隐藏所有秘密;

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

不隐藏所有秘密;

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

使用帮助;

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

待办事项

文件打开并替换:需要完全重新写入

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java返回调用函数中的更新值   java如何停止小程序中计数变量的错误递增?   java Firebase数据库如何从1引用和等于2引用中获取一些值以获取其键和值   用于从SD卡获取图像的java FileNotFoundException   带有扫描仪的Java应用程序中出现字符串错误。Next()与NextLine()以及为什么我会出错?   java刷新JTable,以便显示插入的数据   java IE不支持通过JSF Trinidad的SVG查看器   Java USB游戏控制器库   java JSON解析错误:无法构造实体类的实例   web服务java。lang.NoClassDefFoundError:com/sun/tools/javac/Main SOAP UI   C++调用GetFieldID在JNI中恢复自定义java类成员ID时,陷入了奇怪的崩溃   java JavaFX从gui接收事件后返回主线程   java将模拟注入Spring测试Mockito+Spring+TestNG   java如何调用ArrayList中的每个数组并按年龄对ArrayList进行排序?