Banco Inter
Client to consume Banco Inter APIs
- Documentation: https://bancointer.readthedocs.io.
Installation
pip install bancointer
How to Use
High-level API
from inter import Inter
inter = Inter(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET"
cert_path='/path/to/certificado.crt',
key_path='/path/to/chave.key',
)
# get September/2022 statements
inter.get_statements(date(2022, 9, 1), date(2022, 9, 30))
Testing
from inter.testing import InterFake
def my_function(inter):
return inter.get_balance()
def test_my_function():
inter = InterFake()
result = my_function(inter)
assert result == inter.balance
Low-level API
from datetime import date
from inter import Client as Inter
inter = Inter(
"YOUR_CLIENT_ID",
"YOUR_CLIENT_SECRET"
'/path/to/certificado.crt',
'/path/to/chave.key',
)
# get September/2022 statements
inter.get_statements(date(2022, 9, 1), date(2022, 9, 30))
Testing
from inter.testing import ClientFake
def my_function(client):
return client.get_balance()
def test_my_function():
client = ClientFake()
result = my_function(client)
assert result == client.balance
Contributing
Contributions are welcome, feel free to open an Issue or Pull Request.
Pull requests must be for the develop branch.
git clone https://github.com/lucasrcezimbra/bancointer
cd bancointer
git checkout develop
python -m venv .venv
source .venv/bin/activate
pip install .[test]
pre-commit install
pytest
Metadata
Release files for bancointer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bancointer-0.1.1.tar.gz | 15.4 kB | Without provenance | Details for bancointer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bancointer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for bancointer-0.1.1-py3-none-any.whl |
Total release size: 31.9 kB
Release files / bancointer-0.1.1.tar.gz
| Download URL | bancointer-0.1.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eeaa02c27ae3cfdb41df97c52464ceb39775f69d18e3ae92ccd5ee0b3ff739d
|
|
BLAKE2b-256 checksum How to use checksums |
3065ace5ea20285ebd1d5f1bda57e4d9e6901d22b52ec225f3ded9fb5ae948c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / bancointer-0.1.1-py3-none-any.whl
| Download URL | bancointer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76cb9a8da43ba02a988b30e136f7c00e9e5646f13e5474cc465fc0bde0c1a41d
|
|
BLAKE2b-256 checksum How to use checksums |
0320271d613523c3079d7ac203c364721fa3289f028783afebcfb41b841922d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for bancointer 0.1.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.