- Python 98.8%
- Just 1.2%
| completion | Added connect to bash completion | |
| docs/source | Fix simple typo: pyppass -> pypass | |
| src/pypass | Add type annotations | |
| .gitignore | Fix path to tests directory | |
| justfile | Update README.rst | |
| LICENSE | Initial commit | |
| pyproject.toml | Add type annotations | |
| README.rst | Update README.rst | |
python-pass
This is a fork of python-pass by Alexandre Viau et. al. My primary motivation is to maintain the library part of this project to ease accessing secrets in small Python scripts. I'd welcome co-maintainers for the other parts! Below the original introduction:
For fun, I have decided to write pass in Python.
Python-pass will provide the same functionality as pass. In addition, it will be usable as a library.
Testing
- Install the requirements:
sudo apt-get install -y gnupg tree - Prepare the gnupg home directory for testing:
just setup-test - Run the tests:
just test
Documentation
The documentation of the original python-pass is available on pypass.rtfd.org.
You can build the current HTML documentation and man page yourself
separately with just docs-html and
just docs-man or together with just docs. The
results can be found in docs/build/html as well as
docs/build/man.
Project Status
Bash completion
Comming soon.
pypass init
- [X]
pypass init- creates a folder and a .gpg-id file - [X] Support
--pathoption - [ ] re-encryption functionality
- [X] Should output:
Password store initialized for [gpg-id]. - [X]
--clone <url>allows to init from an existing repo
pypass insert
- [X]
pypass insert test.comprompts for a password and creates a test.com.gpg file - [X] multi-line support
- [X] create a git commit
- [X] When inserting in a folder with a .gpg-id file, insert should use the .gpg-id file's key
pypass show
- [X]
pypass show test.comwill display the content of test.com.gpg - [X]
--clip, -ccopies the first line to the clipboard - [ ]
--password, and--usernameoptions. -
Accepted format: :: <the_password> login: <the_login> url: <the_url>
- [ ]
pypass ls
- [X]
pypass lsshows the content of the password store withtree - [X]
pypassinvokespypass lsby default - [X]
pypass ls subfoldercalls tree on the subfolder only - [X] Hide .gpg at the end of each entry
- [X] Accept subfolder argument
- [X] First output line should be
Password Store
pypass rm
- [X]
pypass rm test.comremoves the test.com.gpg file - [ ]
pypass removeandpypass deletealiases - [X]
pypass rm -r folder(or--recursive) will remove a folder and all of it's content (not interactive!) - [X] Ask for confirmation
pypass find
- [X]
pypass find python.org pypasswill show a tree with password entries that match python.org or pass - [X] Accepts one or many search terms
pypass cp
- [X]
pypass cp old-path new-pahcopies a password to a new path - [ ] Dont overwrite
pypass mv
- [X]
pypass mv old-path new-pathmoves a password to a new path - [ ] Dont overwrite
pypass git
- [X] Pass commands to git
- [X]
pypass git initshould behave differently with an existing password store - [X] Add tests
pypass edit
- [X]
pypass edit test.comwill open a text editor and let you edit the password
pypass grep
- [X]
pypass grep searchstringwill search for the given string inside all of the encrypted passwords
pypass generate
- [X]
pypass generate [pass-name] [pass-length]Genrates a new password using of length pass-length and inserts it into pass-name. - [X]
pass-lengthargument is optional, defaults to 25, can be set with envvarPASSWORD_STORE_GENERATED_LENGTH - [X]
--no-symbols, -n - [X]
--clip, -c - [X]
--in-place, -imodify only the first line, fails ifpass-namedoesn't exist - [ ]
--force, -f