# InterPixPy
This library provides developers with a simple way to interact with the Banco Inter's Pix API.
## Requirements
Python 3 or higher
## Installation
```bash
pip install inter-pixpy
```
## Usage
```python
import interpixpy
sdk = interpixpy.SDK(
client_id="your_app_client_id",
client_secret="your_app_client_secret",
grant_type="grant_type",
scope="your_app_scope",
cert_path="path_to_your_cert_file",
key_path="path_to_your_key_file",
)
cob_payload = {
"calendario": {"expiracao": 3600},
"devedor": {
"cpf": "00000000000",
"nome": "Xoblinha da Silva",
},
"valor": {"original": "100.00"},
"chave": "99999999999999",
"solicitacaoPagador": "Pagamento dos serviços prestados.",
}
result = sdk.cob().create(cob_payload)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/samueljansem/interpixpy",
"name": "inter-pixpy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "pix,inter,bank,api,python,sdk",
"author": "Samuel Jansem",
"author_email": "samuel.jansem@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2c/29/fa665b91d00045f9905db0037227c2c09e6662eb338ce211afdbc6b83fb1/inter-pixpy-0.0.7.tar.gz",
"platform": null,
"description": "# InterPixPy\n\nThis library provides developers with a simple way to interact with the Banco Inter's Pix API.\n\n## Requirements\n\nPython 3 or higher\n\n## Installation\n\n```bash\npip install inter-pixpy\n```\n\n## Usage\n\n```python\nimport interpixpy\n\nsdk = interpixpy.SDK(\n client_id=\"your_app_client_id\",\n client_secret=\"your_app_client_secret\",\n grant_type=\"grant_type\",\n scope=\"your_app_scope\",\n cert_path=\"path_to_your_cert_file\",\n key_path=\"path_to_your_key_file\",\n)\n\ncob_payload = {\n \"calendario\": {\"expiracao\": 3600},\n \"devedor\": {\n \"cpf\": \"00000000000\",\n \"nome\": \"Xoblinha da Silva\",\n },\n \"valor\": {\"original\": \"100.00\"},\n \"chave\": \"99999999999999\",\n \"solicitacaoPagador\": \"Pagamento dos servi\u00e7os prestados.\",\n}\n\nresult = sdk.cob().create(cob_payload)\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package to interact with the Banco Inter's Pix API",
"version": "0.0.7",
"project_urls": {
"Homepage": "https://github.com/samueljansem/interpixpy",
"Issues": "https://github.com/samueljansem/interpixpy/issues",
"Source Code": "https://github.com/samueljansem/interpixpy"
},
"split_keywords": [
"pix",
"inter",
"bank",
"api",
"python",
"sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ab00b68259090d33e54b0c6cffcff667f71c553f57a828184e63d168e33491e2",
"md5": "07323870cf004b33886d41409b3c80f8",
"sha256": "80c78f1faef4d919f0ca24576be73859fde83e00fdf558f40f93c0fd7c5c58ea"
},
"downloads": -1,
"filename": "inter_pixpy-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "07323870cf004b33886d41409b3c80f8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 10541,
"upload_time": "2024-01-08T15:27:50",
"upload_time_iso_8601": "2024-01-08T15:27:50.942161Z",
"url": "https://files.pythonhosted.org/packages/ab/00/b68259090d33e54b0c6cffcff667f71c553f57a828184e63d168e33491e2/inter_pixpy-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2c29fa665b91d00045f9905db0037227c2c09e6662eb338ce211afdbc6b83fb1",
"md5": "14d9babfcd6e54667146436809b25efe",
"sha256": "260862d3786c81cd55d8b811619d7438f2d87eff6f355a0a35e1dfcbc590f28c"
},
"downloads": -1,
"filename": "inter-pixpy-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "14d9babfcd6e54667146436809b25efe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 5379,
"upload_time": "2024-01-08T15:27:57",
"upload_time_iso_8601": "2024-01-08T15:27:57.524586Z",
"url": "https://files.pythonhosted.org/packages/2c/29/fa665b91d00045f9905db0037227c2c09e6662eb338ce211afdbc6b83fb1/inter-pixpy-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-08 15:27:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "samueljansem",
"github_project": "interpixpy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "inter-pixpy"
}