Skip to main content

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
cd tochka_api
python 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 = ""

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())
    await tochka.get_access_token(code=input("Code >>> "))

  balances = await tochka.get_balances()

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 hashes)

Uploaded source

Built Distribution

tochka_api-0.0.5-py3-none-any.whl (16.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page