将用户名和密码存储在 $HOME
项目描述
# 用户密码
[](https://pypi.org/project/userpass ) [](https://travis-ci.org/zYeoman/userpass)[](https://codecov.io/gh/zYeoman/userpass ) [](https://pypi.org/project/userpass)[](https://choosealicense .com/licenses )
目录
[安装](#安装)
[用法](#用法)
[许可证](#license)
## 安装
userpass 作为通用轮子在 [PyPI]( https://pypi.org ) 上分发,可在 Linux/macOS 和 Windows 上使用,并支持 Python 2.7/3.5+ 和 PyPy。
`bash $ pip install userpass`
## 用法
`python from userpass import User # 用户信息文件将存储在`~/.user`文件中。user = User('.user')用户名 = user.username 密码 = user.password user.del_user() `
## 执照
userpass 根据 [MIT 许可证]( https://choosealicense.com/licenses/mit ) 的条款分发。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。