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 = "bitcoin"
crypto_address = "18Qz324MxCwBbrWqNv1Ew3vcgpi9N9DmXM"
amount = 0.1
message = "Payment for goods"
create_qr_code(crypto_currency, crypto_address, amount, 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.
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
Examples
You can check the examples.py file for examples of how to use the package. The outputs of the examples are stored in the qr_codes folder.
License
This project is licensed under the MIT License.
Release files for crypto-qr-codes 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crypto-qr-codes-0.1.8.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crypto_qr_codes-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:30.3 kB
Release files / crypto-qr-codes-0.1.8.tar.gz
| Download URL | crypto-qr-codes-0.1.8.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbc741eecf1c120fa60f9279d4e66582d4586bd538e8237e7f3a8275b04cc11b
|
|
BLAKE2b-256 checksum How to use checksums |
aa84a81417314bf62344f755ff36de773148d5756e59bdad1c465259843af135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / crypto_qr_codes-0.1.8-py3-none-any.whl
| Download URL | crypto_qr_codes-0.1.8-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43af741cf267378ffadb97d0d0c2f3bb241d55e83a2d6b8ea183c0a79409ffde
|
|
BLAKE2b-256 checksum How to use checksums |
9013622174bddae804a1ee5188e46d49760e79aa049b6f9e7eded925109676d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|