Skip to content

Latest commit

 

History

History
77 lines (43 loc) · 1.34 KB

File metadata and controls

77 lines (43 loc) · 1.34 KB

LastPass Python API

Original:lastpass-ruby

This is unofficial LastPass API

Lastpass Authenticator reverse engineering by Terry Hardie

Install

$ pip install lastpass-python

Example

# coding: utf-8
import lastpass

vault = lastpass.Vault.open_remote(username, password)
for i in vault.accounts:
    print(i.id, i.username, i.password, i.url)

for i in vault.authenticator:
    print(i.accountID, i.issuerName, i.userName, i.secret)

Testing

Install test dependencies

$ pip install -r requirements.txt

Run tests with

$ nosetests

or test all environments and pep8 with tox

$ tox

Releasing

$ pip install twine
$ python setup.py sdist
$ twine upload dist/*

License

The MIT License