A LessPass API client written in Python.
Project description
LessPass Client
A LessPass client written in Python heavily inspired by lastpass-cli.
Installation
Git
git clone https://github.com/supersonichub1/lesspass-client
cd lesspass-client
poetry install
Help
Run lesspass-client --help
for the most up-to-date information.
.netrc
Use of a .netrc
file for supplying your LessPass login and master
password is required. There is currently no way to supply either using
command line arguments or environment variables; both of these methods are
insecure, anyways. Use the host lesspass
for sharing
your username and password, and the host lesspass_gen
for storing your master
password.
show --format
The show
subcommand allows for the customization of the command's output
through the --format
option, a la lpass show --format
.
Instead of using printf
-like formatting, lesspass-client
instead uses
Python's format string syntax, which I believe is much
more intuitive and user friendly.
The format string supplies the following values:
- site
- login
- password
- created
- modified
- id
- version
- counter
- length
- uppercase
- lowercase
- numbers
For example, if you wanted to append your Freesound login to your .netrc file:
lesspass-client show --site freesound.org \
--format "machine freesound login {login} password {password}" \
>> ~/.netrc
What This Tool Isn't
- a complete replacement for LessPass's exisiting CLI.
- a complete way to manage your LessPass passwords
- a 1-to-1 drop-in replacement for
lpass
Caveots
- doesn't support password encryption
- doesn't support LessPass servers outside of
api.lesspass.com
- doesn't allow for the addition, updating, or removal of passwords
TODO
- error handling
- more password operations
- configuration (encryprion, other servers, alternate
.netrc
locations)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lesspass_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c116d13dca2441c3af673ed1a5c6bae3c743debf53ebaa61388f7697fb32561 |
|
MD5 | aa1c2757c7abea67d15d5ffdf9938643 |
|
BLAKE2b-256 | a9b494a85c96f694b91850c3a62701d29f49aeaca8a8541634c8e023212173d7 |