https://github.com/mevdschee/lesspass.py
A lesspass implementation in Python
https://github.com/mevdschee/lesspass.py
Last synced: 8 months ago
JSON representation
A lesspass implementation in Python
- Host: GitHub
- URL: https://github.com/mevdschee/lesspass.py
- Owner: mevdschee
- License: gpl-3.0
- Created: 2017-03-31T00:10:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T12:22:17.000Z (about 8 years ago)
- Last Synced: 2025-04-26T15:02:39.756Z (9 months ago)
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lesspass.py
A lesspass implementation in Python
## Requirements
- Python 2.7 - 3.5
## CLI
CLI lets you to use configuration from JSON file with profile settings. Standard
LessPass tools don't allow to set login and site in profile. This application
has this feature which is very helpful in cases when you have automatically
generated usernames which cannot be changed (popular in banking etc.).
You can use CLI in three ways. First one:
`cli.py file site login`
gets profile from `~/.lesspass/file.json`. If login and site are configured in
profile file, they are ignored and values from cli are used.
Second way:
`cli.py file`
All parameters needed to generate password are placed in `file`.
Third way:
`cli.py site login`
Default profile is used.
### CLI Installation
The simplest way to install CLI is to make symlink in one of directories from
system `$PATH` variable. In my case it looked like this:
`ln -s ~kacper/data/bin/lesspass $(realpath ./cli.py)`
(`~kacper/data/bin/` is in my `$PATH` variable)
## Tests
python -m py.test
## See also
- [lesspass.go](https://github.com/mevdschee/lesspass.go)
- [lesspass.php](https://github.com/mevdschee/lesspass.php)