A package for generating QR codes for various cryptocurrencies
Project description
Crypto QR Codes
Crypto QR Codes is a Python package that allows you to generate QR codes for various cryptocurrencies.
Installation
You can install Crypto QR Codes using pip:
pip install crypto-qr-codes
Usage
To use Crypto QR Codes, import the create_qr_code
function from the crypto_qr_codes.qr
module. Here's an example:
from crypto_qr_codes.qr import create_qr_code
crypto_currency = "BTC"
crypto_address = "3N8auHJMn6GQzVjKXF5e2eNn5b6d4wy4G4"
amount = 0.1
label = "My Bitcoin Address"
message = "Payment for goods"
create_qr_code(crypto_currency, crypto_address, amount, label, message)
Parameters
The create_qr_code function takes the following parameters:
crypto_currency (required): A string that represents the cryptocurrency.
crypto_address (required): A string that represents the cryptocurrency address.
amount (optional): A float that represents the amount to be paid.
label (optional): A string that represents the label for the payment.
message (optional): A string that represents a message for the payment.
filename (optional): A string that represents the name of the file to save the QR code. Defaults to output.png.
Returns
The create_qr_code function returns the full path of the generated QR code image file.
Testing
To run the tests for Crypto QR Codes, run the following command:
python -m unittest tests.test_qr
License
This project is licensed under the MIT License.
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
Built Distribution
Hashes for crypto_qr_codes-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4343cbb54106c77268fe0b133a7a61703d201dea629cb9a5dfc46cffe9936e73 |
|
MD5 | 4b79f1516f090845f385f2cf0b09f9ce |
|
BLAKE2b-256 | 8af6558259d50f6ec1cbf26b64254fd5ea24216fbaff8edf57d1d909518cb32f |