# aioN26 Unofficial Asynchronous N26-bank API implementation
based on https://app.swaggerhub.com/apis/Rots/N26/0.2#/transactions/get_smrt_transactions
I will document this better in the future, but here is a working example:
import asyncio
from aioN26.api import Api
from pprint import pprint
import logging
import os
from dotenv import load_dotenv # pip install python-dotenv
# We load local environment variables from file MYSECRET.env
# The file format is as follows:
# ------------MYSECRET.env-------------
# USERNAME=john.doe@mail.com
# PASSWORD=mysecretpassword
# DEVICE_TOKEN=yourgeneratedtoken
# -------------------------------------
# to generate the DEVICE_TOKEN, run this in a python3 console:
# >>> import uuid ; print(uuid.uuid4())
# and paste the result in the file
load_dotenv('MYSECRET.env') # directory/file containing the environment variables
logging.basicConfig(level=logging.DEBUG)
async def main():
async with Api(username=os.getenv('USERNAME'), password=os.getenv('PASSWORD'),
device_token=os.getenv('DEVICE_TOKEN')) as api:
print(api.get_device_token())
print('\nget_me = \\')
pprint(await api.get_me())
print('\nget_me_statuses = \\')
pprint(await api.get_me_statuses())
print('\nget_addresses = \\')
pprint(await api.get_addresses())
print('\nget_barzahlen_check = \\')
pprint(await api.get_barzahlen_check())
print('\nget_spaces = \\')
pprint(await api.get_spaces())
print('\nget_accounts = \\')
pprint(await api.get_accounts())
print('\nget_settings_account_limits = \\')
pprint(await api.get_settings_account_limits())
print('\nset_settings_account_limits = \\')
pprint(await api.set_settings_account_limits(500, 3000))
print('\nget_smrt_categories = \\')
pprint(await api.get_smrt_categories())
print('\nget_smrt_transactions = \\')
transactions = await api.get_smrt_transactions(from_time=1636030755256, to_time=1636030755256)
pprint(transactions)
print('TOTAL', len(transactions))
asyncio.run(main())
Metadata
Release files for aioN26 0.0.6
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 |
|---|---|---|---|---|
| aioN26-0.0.6.tar.gz | 16.4 kB | Without provenance | Details for aioN26-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioN26-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for aioN26-0.0.6-py3-none-any.whl |
Total release size: 28.6 kB
Release files / aioN26-0.0.6.tar.gz
| Download URL | aioN26-0.0.6.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36bfc2754544cbc67c2994c49bd7cb8dbdc9a3aefec56e7072cb5ce686ff17c3
|
|
BLAKE2b-256 checksum How to use checksums |
92a83292c1ff7603ec2c4955f789a9e0c07f5b561b6aac9be461f7aab38dcaeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / aioN26-0.0.6-py3-none-any.whl
| Download URL | aioN26-0.0.6-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15e86b8ed8666ad6f40482c34901328e688b6c4852a56e3805c618b1423a58e1
|
|
BLAKE2b-256 checksum How to use checksums |
f1cb760b39982d8016a2cb3efb4c50978b7734cb5701d321bac83cf2078abb54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for aioN26 0.0.6
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.