{"id":27120765,"url":"https://github.com/cleitonleonel/pypix","last_synced_at":"2025-04-07T10:07:45.808Z","repository":{"id":96165535,"uuid":"323018649","full_name":"cleitonleonel/pypix","owner":"cleitonleonel","description":"Biblioteca python para gerar br-code e qr-code do PIX.","archived":false,"fork":false,"pushed_at":"2025-03-03T17:52:24.000Z","size":11452,"stargazers_count":45,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T18:44:35.496Z","etag":null,"topics":["pix","pypix","python","qrcode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cleitonleonel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-20T07:34:49.000Z","updated_at":"2025-03-03T17:52:28.000Z","dependencies_parsed_at":"2023-03-21T14:18:16.846Z","dependency_job_id":null,"html_url":"https://github.com/cleitonleonel/pypix","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleitonleonel%2Fpypix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleitonleonel%2Fpypix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleitonleonel%2Fpypix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleitonleonel%2Fpypix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleitonleonel","download_url":"https://codeload.github.com/cleitonleonel/pypix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247631815,"owners_count":20970068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pix","pypix","python","qrcode"],"created_at":"2025-04-07T10:07:45.220Z","updated_at":"2025-04-07T10:07:45.787Z","avatar_url":"https://github.com/cleitonleonel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# _pypix_\n\n\u003cimg src=\"https://github.com/cleitonleonel/pypix/blob/master/pypix.png?raw=true\" alt=\"pypix\" width=\"450\"/\u003e\n\nPYPIX is a python library based on the [GPIX](https://github.com/hiagodotme/gpix.git) project by Hiago Silva Souza that facilitates the generation of dynamic and static br-codes for transactions via PIX.\n# Installing the pypix library\n\n```shell\npip install git+https://github.com/cleitonleonel/pypix.git\ncd pypix\npip install poetry\npoetry install\n```\n\n# How to use\n\n```python\nfrom pypix.pix import Pix\n\n\ndef normal_static():  # Testado e funcionando para Nubank, Inter, Caixa, Mercadopago\n    pix.set_name_receiver('Cleiton Leonel Creton')\n    pix.set_city_receiver('Cariacica')\n    pix.set_key('b5fe1edc-d108-410f-b966-eccaaca75e4f')\n    pix.set_identification('123')\n    pix.set_zipcode_receiver('29148613')\n    pix.set_description('Doação com valor fixo - PYPIX')\n    pix.set_amount(5.0)\n\n    print('\\nDonation with defined amount - PYPIX \u003e\u003e\u003e\u003e\\n', pix.get_br_code())\n\n\ndef simple_static():  # Banco Inter exige valores acima de 1 R$, Nubank e Caixa aceitam valores livres\n    pix.set_name_receiver('Cleiton Leonel Creton')\n    pix.set_city_receiver('Cariacica')\n    pix.set_key('b5fe1edc-d108-410f-b966-eccaaca75e4f')\n    pix.set_description('Doação Livre / QRCODE - PYPIX')\n\n    print('Donation without defined amount - PYPIX \u003e\u003e\u003e\u003e\\n', pix.get_br_code())\n\n\ndef dynamic():  # Não Testado\n    pix.set_name_receiver('MasterSystem LTDA')\n    pix.set_city_receiver('Cariacica')\n    pix.set_default_url_pix('url-location-psp')\n    pix.set_amount(10.5)\n\n    print('\\nBRCODE dinamic - PYPIX \u003e\u003e\u003e\u003e\\n', pix.get_br_code())\n\n\nif __name__ == '__main__':\n    pix = Pix()\n    normal_static()\n\n    # simple_static()\n    # dynamic()\n\n    \"\"\"Método para gerar qrcode, com ou sem logo\"\"\"\n\n    base64qr = pix.save_qrcode(\n        './qrcode.png',\n        color=\"black\",\n        box_size=7,\n        border=1,\n        custom_logo={\n            \"logo\": \"pix.png\",\n            \"border_radius\": 25,\n            \"shape\": \"oval\",\n        }\n    )\n\n    pix.qr_ascii()  # Imprime qrcode no terminal\n\n    if base64qr:  # Imprime qrcode em fomato base64\n        print('Success in saving static QR-code.')\n        print(base64qr)\n    else:\n        print('Error saving QR-code.')\n\n    \"\"\"Método para gerar qrcode estilizado, colorido ou não e animado\"\"\"\n    pix.get_qrcode_artistic(\n        './py.gif', version=3, output='./artistic.gif',\n        fill={'contrast': 10.0, 'brightness': 1.0}\n    )\n\n```\n\n# Did this lib help you?\n\nIf this lib lets you feel free to make a donation =), it can be R $ 0.50 hahahaha. To do so, just read the qrcode below, it was generated with the lib sample file.\n\n\u003cimg src=\"https://github.com/cleitonleonel/pypix/blob/master/qrcode.png?raw=true\" alt=\"QRCode Doação\" width=\"250\"/\u003e\n\n\n\u003cimg src=\"https://github.com/cleitonleonel/pypix/blob/master/artistic.gif?raw=true\" alt=\"QRCode Doação\" width=\"250\"/\u003e\n\n# Author\n\nCleiton Leonel Creton ==\u003e cleiton.leonel@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleitonleonel%2Fpypix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleitonleonel%2Fpypix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleitonleonel%2Fpypix/lists"}