boltlib - Bitcoin Lightning BoltCard library
boltlib is a Python library and command line tool for easy reading and writing of
BoltCards based on pyscard
Requirements
- Python 3.8 or higher.
- Smart Card Reader (USB CCID class-compliant)
Tested with Identiv uTrust 3700F but should work with others like for example ACS ACR1252U or
HID Omnikey 5022 CL.
Note: On Ubuntu/Debian run
sudo apt-get install libpcsclite-dev swigbefore installation.
Installation
$ pip install boltlib
Command line usage
$ boltcard
Usage: boltcard [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-s, --silent Silence debug output.
--help Show this message and exit.
Commands:
read Read BoltCard UID and URI
write Write URI to BoltCard (unprovisioned only)
Library usage
import boltlib
uri = boltlib.read_uri()
print(uri)
Development
Requirements
- Python 3.8 or higher.
- Poetry for installation and dependency management.
Setup
git clone https://github.com/titusz/boltlib.git
cd boltlib
poetry install
Run Tasks
Before committing changes run code formatting and tests with:
poe all
Release files for boltlib 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boltlib-0.2.0.tar.gz | 14.3 kB | Details |
Release files / boltlib-0.2.0.tar.gz
| Download URL | boltlib-0.2.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e91cda7bcfcf1f50f6d4bed3017f1af66b0bda8caffced6cf0c6c495b1fa2c2
|
|
BLAKE2b-256 checksum How to use checksums |
aa9fb1390923eb97071dbdcfc7f01e883cca1c19e331498c5b3ed994a3424c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.1 Windows/10
|