Simple Tochka Bank Open API client
Project description
🎉 Tochka API
Simple Tochka Bank API wrapper
📥 Installation
📦 From pip:
python -m pip install -u tochka_api
🏗 From git:
git clone https://github.com/WhiteApfel/tochka_api.git
cd tochka_api
python setup.py install
🚧 Dev progress
- Auth
- Balances
- Accounts
- Webhooks
- Statements
- Cards
- Clients
- Payments
- Consents
- Special accounts
- SBP
- QR
- Merchants
- Legal
- Refunds
- Account
🧑🏫 How to use
import asyncio
from tochka_api import TochkaAPI
from tochka_api.models import PermissionsEnum
client_id = "<<client_id>>"
client_secret = "<<client_secret>>"
redirect_uri = "https://tochka-api.pfel.cc/"
tochka = TochkaAPI(client_id, client_secret, redirect_uri=redirect_uri)
async def main():
if tochka.tokens.access_token is None:
await tochka.get_consents_token()
consents_request = await tochka.create_consents(PermissionsEnum.all())
print(tochka.generate_auth_url(consent_id=consents_request.consent_id))
await tochka.get_access_token(code=input("Code >>> "))
balances = await tochka.get_balances()
print(balances[0].amount)
asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tochka_api-0.0.5.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tochka_api-0.0.5.tar.gz.
File metadata
- Download URL: tochka_api-0.0.5.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70cc9e0de3920808171b9bdc1fae6742b96c91adab6a50f737a1ff18a2109e1b
|
|
| MD5 |
1deae753ce6f5ca48efcec26d463df22
|
|
| BLAKE2b-256 |
ecccc19bbe9a90444349308257ae339fc9b6390dec00bf215854482099ed0a4a
|
File details
Details for the file tochka_api-0.0.5-py3-none-any.whl.
File metadata
- Download URL: tochka_api-0.0.5-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd825c70e5d68ab071e8af645ae11a9b41feabea71a358329cd4e959f69576c6
|
|
| MD5 |
81a6d9af648a0257023d5258c67ed28d
|
|
| BLAKE2b-256 |
0a099f86dd3f042a8f63fe6564005c16c202f219922333ccc4834d0b70a229c8
|