Skip to main content

Python bitcoin qr reader and generator

Project description

Bitcoin qr tools

  • BitcoinVideoWidget recognizes (and classifies) blazingly fast
    • Addresses (also BIP21 with amount)
    • Transactions (also base43 electrum encoding)
    • PSBT
    • Xpub
    • Descriptor
    • Multipath Descriptor (like Sparrow)
    • Partial descriptors (Specter DIY) (finger print , derivation, xpub)
    • TxId
    • Wallet Export Infos (Sparrow Format, Coldcard Sparrow QR format, Specter DIY, ...)
    • Animated QR Codes (BBQR)
    • Animated QR Codes (UR) (Transactions, Descriptors, Jade Wallet Export)
    • Animated QR Codes (Specter)
  • Recognizes (and classifies) blazingly fast
  • QR Code generation via Data.generate_fragments_for_qr()
  • QR Code Widgets, via the widgets QRCodeWidget, QRCodeWidgetSVG

Demo

Run the demo with

python demo_reader.py

Detection even in bad light contitions and bad camera

screenshot

Automatic image enhancement for bright hardware signer screens

screenshot

Install package

From pypi

pip install bitcoin_qr_tools

From git

  • Setup poetry and install dependencies

    curl -sSL https://install.python-poetry.org | python3 -  # see https://python-poetry.org/docs/master/#installing-with-the-official-installer
    poetry config virtualenvs.in-project true
    poetry install
    
  • Run

    poetry shell
    python -m bitcoin_qr_tools
    

Licences

The python files in bitcoin_qr_tools are under the GPL3.

The folder bitcoin_qr_tools/ur is from https://github.com/Foundation-Devices/foundation-ur-py and under BSD-2-Clause Plus Patent License.

The folder bitcoin_qr_tools/urtypes from https://github.com/selfcustody/urtypes is under MIT.

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

bitcoin_qr_tools-0.14.9.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

bitcoin_qr_tools-0.14.9-py3-none-any.whl (99.5 kB view details)

Uploaded Python 3

File details

Details for the file bitcoin_qr_tools-0.14.9.tar.gz.

File metadata

  • Download URL: bitcoin_qr_tools-0.14.9.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.9 Linux/6.8.0-47-generic

File hashes

Hashes for bitcoin_qr_tools-0.14.9.tar.gz
Algorithm Hash digest
SHA256 2e91b07b1cdb2c940c270ed8de70c89dec747e6806028f9ce7006bd3e7d2a2de
MD5 3c7d929bf87a3e6f4c76230b3b26f221
BLAKE2b-256 6a8dbe8d72f590c59e54d475736fa9506c38af52248201af3ecbbca10bcde4c8

See more details on using hashes here.

File details

Details for the file bitcoin_qr_tools-0.14.9-py3-none-any.whl.

File metadata

  • Download URL: bitcoin_qr_tools-0.14.9-py3-none-any.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.9 Linux/6.8.0-47-generic

File hashes

Hashes for bitcoin_qr_tools-0.14.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a293affd98c77e182fd3f0f254f5581a6c35a9011d3336b2d248934681724f
MD5 812a0714986780bdaceb812d1471610e
BLAKE2b-256 b59318ca65346003de9bde0d5ce633b4b8345a875db64a03daac8def3c04877b

See more details on using hashes here.

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