Skip to main content

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
  • digits

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)

Metadata

Release files for lesspass-client 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lesspass-client 0.2.0
File Size Uploaded Provenance Actions
lesspass-client-0.2.0.tar.gz 5.2 kB Without provenance Details for lesspass-client-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lesspass-client 0.2.0
File Interpreter ABI Platform Actions
lesspass_client-0.2.0-py3-none-any.whl Python 3 none any Details for lesspass_client-0.2.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / lesspass-client-0.2.0.tar.gz

Download URL lesspass-client-0.2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6612e04f7d6c1db05d6c870c633e71816feb67444014a747c656bfff8a178465
BLAKE2b-256 checksum
How to use checksums
5d4785e0a0afb3eae090ee4ae9d3e12ddbe44a428e3b8202b12eb0bdb727cb19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic

Release files / lesspass_client-0.2.0-py3-none-any.whl

Download URL lesspass_client-0.2.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f03bd0d4ef5427e92cc06c7c08493cff79379e92b7df877ca8c07942aba2bd46
BLAKE2b-256 checksum
How to use checksums
043877dc69d99c93eef6281a9cedbec997653fb65a85a378f90e90761cb33d31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic

Security for lesspass-client 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page