Skip to main content

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 = "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.

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

crypto-qr-codes-0.1.8.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

crypto_qr_codes-0.1.8-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file crypto-qr-codes-0.1.8.tar.gz.

File metadata

  • Download URL: crypto-qr-codes-0.1.8.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for crypto-qr-codes-0.1.8.tar.gz
Algorithm Hash digest
SHA256 dbc741eecf1c120fa60f9279d4e66582d4586bd538e8237e7f3a8275b04cc11b
MD5 782b8e765a7dd78674fd5bb9c24838ee
BLAKE2b-256 aa84a81417314bf62344f755ff36de773148d5756e59bdad1c465259843af135

See more details on using hashes here.

File details

Details for the file crypto_qr_codes-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for crypto_qr_codes-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 43af741cf267378ffadb97d0d0c2f3bb241d55e83a2d6b8ea183c0a79409ffde
MD5 c06e2614f34b8289485d9284071f97c7
BLAKE2b-256 9013622174bddae804a1ee5188e46d49760e79aa049b6f9e7eded925109676d2

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