Skip to main content

This is a python package for generatic static PIX code used in money transfers in Brazil. It follows the version 2.3.0 of the Manual de Padrões para Iniciação do PIX.

This can be used for automation of QR Code generation to improve your software user experience.

Installation

Just run:

pip install pypix

Usage

>>> from pypix import create_pix_string_code
>>> from decimal import Decimal
>>> receiver_params = {
... 'key': '12345678900', # This is an example CPF of an hypothetical receiver
... 'name': 'Hypothetical Receiv Name', # Must be less than 25 characters long.
... 'city': 'CITY RECEIVER', # all uppercase ASCII format. 15 characters max
... 'value': Decimal('12.34'), # Do not set this, if you don't want specify a value and leave up to payer to fill this in their PSP application (e.g. mobile or web banking app)
... }
>>> code = create_pix_string_code(**receiver_params)
>>> print(code)
00020126330014BR.GOV.BCB.PIX011112345678900520400005303986540512.345802BR5924Hypothetical Receiv Name6013CITY RECEIVER62070503***6304EA64

# If you want to generate a QR code
>>> from qrcode import make  # You need to install it before running this
>>> image = make(code)
>>> image.save('qrcode_pix.png')

Demo

Metadata

Release files for pypix-static 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypix-static 0.0.1
File Size Uploaded Provenance Actions
pypix-static-0.0.1.tar.gz 4.5 kB Without provenance Details for pypix-static-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypix-static 0.0.1
File Interpreter ABI Platform Actions
pypix_static-0.0.1-py3-none-any.whl Python 3 none any Details for pypix_static-0.0.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / pypix-static-0.0.1.tar.gz

Download URL pypix-static-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad405b9fdb079e31063c7f3ab7f4009ab3ac60bc06858919f2ba3005f50f90c1
BLAKE2b-256 checksum
How to use checksums
495daa3b9475c9d630a7db03c71267fb33b0ecb036aa8d734baf8f665740d29a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / pypix_static-0.0.1-py3-none-any.whl

Download URL pypix_static-0.0.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e8741f0761de3ec02b35cc5e88ec8ea1c4eb2d88ee09c9f493c39b2f507d0dc
BLAKE2b-256 checksum
How to use checksums
7b6d858b8afb140b7391a11cbedbd05b5d335c29ebbb91a4735f9fb8799f0864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for pypix-static 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page