CLI tool to export LockSelf/LockPass shared passwords
Project description
LockPass Export is a CLI tool to export shared password from LockSelf’s LockPass password manager.
Prerequisite
Python >= 3.10 (no third-party dependencies)
A LockPass instance with API option enabled
An API account with moderator permissions
See LockSelf documentation for more information about the API.
Install
Standalone script
Just use the lockpass_export.py script from this repository, it works without any dependency beside Python itself.
To run the script, use the following command:
python3 lockpass_export.py --help
From PyPI
To install from PyPI, be sure you have a complete Python 3 installation. On Debian and Ubuntu run the following command:
apt install python3 python3-dev python3-venv
Then create a virtualenv:
python3 -m venv /opt/lockpass-export.env
and install LockPass Export inside it:
/opt/lockpass-export.env/bin/pip install lockpass-export
To run the software, use the following command:
/opt/lockpass-export.env/bin/lockpass-export --help
Usage
usage: lockpass_export.py [-h] [-V] -u URL -a AUTH_TOKEN -l LS_TOKEN [-i ORGANISATION_ID]
FOLDER
CLI tool to export LockSelf/LockPass shared passwords
positional arguments:
FOLDER Folder where files will be written (created if not exists).
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-u, --url URL URL of your LockPass instance (e.g. 'https://yourcompany.lockself-
cloud.com')
-a, --auth-token AUTH_TOKEN
API Auth Token
-l, --ls-token LS_TOKEN
API LS Token
-i, --organisation-id ORGANISATION_ID
ID of the organisation to export (default: 1)
Example:
python3 lockpass_export.py \
--url https://mycompany.lockself-cloud.com \
--auth-token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--ls-token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
./myexport/
Development
Install dev dependencies:
python3 -m venv __env__ __env__/bin/pip install -e .[dev]
Lint:
__env__/bin/nox -s lint
Fix coding style:
__env__/bin/nox -s black_fix
Changelog
[NEXT] (changes on master, but not released yet):
Nothing yet ;)
v1.0.0:
Initial release
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lockpass_export-1.0.0.tar.gz.
File metadata
- Download URL: lockpass_export-1.0.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
302f731a1145ffc88abe12e85d56c027b583e5668a168f22a988e284e50d68af
|
|
| MD5 |
76cc25cbc0d4af1af4ef533309d466ae
|
|
| BLAKE2b-256 |
241440785b08dc7e0d73c0a5584abcd34197574181949d72687dbd3ee478bbb7
|
File details
Details for the file lockpass_export-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lockpass_export-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134a73dd753c97a4246fec74c1f1efbe09428bfad5f895ed34f4b459971d5731
|
|
| MD5 |
26c406c01fc7c7b6ada730509fe88689
|
|
| BLAKE2b-256 |
00802871cb43e11e9c4a3874a68291dd5b8399185ea4076f5b06b6a486268e18
|