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
    • SignerInfo(s) for Hardware Signer Exports (Wallet Export)
    • Animated QR Codes (BBQR), used by Coldcard
    • Animated QR Codes (UR), used by Foundation Passport, Keystone
    • Animated QR Codes used by Specter DIY
  • Recognizes (and classifies) blazingly fast
  • Animated QR Code generation via UnifiedEncoder.generate_fragments_for_qr()
    • For BBQR, UR, and Specter DIY
  • 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-1.0.3.tar.gz (95.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitcoin_qr_tools-1.0.3-py3-none-any.whl (124.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitcoin_qr_tools-1.0.3.tar.gz
  • Upload date:
  • Size: 95.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.9 Linux/6.8.0-51-generic

File hashes

Hashes for bitcoin_qr_tools-1.0.3.tar.gz
Algorithm Hash digest
SHA256 efc305beb2d6b77b2b25888d8d96e5e6a7cc960c037edb9138bdb170aa875260
MD5 8c9d0b981db4a6bf123e055c3e8f2f18
BLAKE2b-256 e615228a3d44075b1efc10c44aa72a430e942bf3d5f45cf58e7a6919d2a01cd6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bitcoin_qr_tools-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b87d840a677e63ef96e9ceb7bef08c8187b300a59321180aae42697c043add3d
MD5 81a57b8fb2a4c88fc80f9841768ff58c
BLAKE2b-256 59eef12267cf06e8a7d4b1bb1fd8891475adc54bce11d9e2cd16d8dd8c885d37

See more details on using hashes here.

Supported by

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