Skip to main content

A command-line client for LastPass Authenticator.

Project description

lpass-auth

A LastPass Authenticator client written in Python heavily inspired by lastpass-cli and based on code by Donny Maasland.

Installation

Git

git clone https://github.com/supersonichub1/lpass-auth
cd lpass-auth
poetry install

pip

pip install -U lpass-auth

Help

Run lpass-auth --help for the most up-to-date information.

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, lpass-auth instead uses Python's format string syntax, which I believe is much more intuitive and user friendly.

The format string supplies the following values:

  • password
  • accountID
  • digits
  • issuerName
  • lmiUserId
  • originaIssuerName
  • originalUserName
  • pushNotification
  • secret
  • timeStep
  • userName

For example:

lpass-auth show --issuer LastPass \
--format "{accountID} ({login}): {password}"
LastPass (example@example.com): 690420

Caveots

  • only supports no authentication or TOTP authentication; sorry Yubikey users!
  • cannot add or remove passwords due to lack of API knowledge

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lpass-auth-1.0.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

lpass_auth-1.0.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page