tbank 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tbank-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 masasibata
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tbank-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,213 @@
1
+ Metadata-Version: 2.4
2
+ Name: tbank
3
+ Version: 0.1.0
4
+ Summary: Асинхронный/синхронный Python SDK для API Т-Банка (эквайринг и открытый банк).
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Keywords: tbank,tinkoff,acquiring,эквайринг,payments,sbp,fiscalization,openapi,async,asyncio,httpx,pydantic
8
+ Author: masasibata
9
+ Requires-Python: >=3.9,<4.0
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Framework :: AsyncIO
20
+ Classifier: Topic :: Office/Business :: Financial
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Typing :: Typed
23
+ Requires-Dist: httpx (>=0.27.0)
24
+ Requires-Dist: pydantic (>=2.0.0)
25
+ Project-URL: Documentation, https://tbank.readthedocs.io
26
+ Project-URL: Homepage, https://github.com/masasibata/tbank
27
+ Project-URL: Repository, https://github.com/masasibata/tbank
28
+ Description-Content-Type: text/markdown
29
+
30
+ # tbank
31
+
32
+ [![PyPI](https://img.shields.io/pypi/v/tbank.svg)](https://pypi.org/project/tbank/)
33
+ [![Python](https://img.shields.io/pypi/pyversions/tbank.svg)](https://pypi.org/project/tbank/)
34
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
35
+ [![Coverage](https://img.shields.io/badge/coverage-99%25-brightgreen.svg)](#-разработка)
36
+ [![mypy: strict](https://img.shields.io/badge/mypy-strict-blue.svg)](#-разработка)
37
+
38
+ **Асинхронный и синхронный Python SDK для API Т-Банка (ex-Тинькофф).**
39
+
40
+ `tbank` — типизированная библиотека для интеграции с платёжными и банковскими сервисами Т-Банка: интернет-эквайринг (приём платежей, СБП, рекуррент, фискализация 54-ФЗ) и открытый банковский API Т-Бизнеса (счета, выписки, рублёвые платежи, инвойсы, СБП-ссылки). Один пакет — оба мира, с общим ядром.
41
+
42
+ ## ✨ Особенности
43
+
44
+ - 🚀 **Async и sync** — один API в двух вариантах на общем ядре (`httpx`).
45
+ - 🛡️ **Строгая типизация** — pydantic v2, `mypy --strict` без ошибок, `py.typed`.
46
+ - 🔌 **Полное покрытие** — эквайринг (EACQ) и открытый банк (T-API) в одном пакете.
47
+ - 🔐 **Аутентификация из коробки** — SHA-256 Token-подпись (эквайринг), Bearer и **mTLS** (открытый банк).
48
+ - 💸 **Корректные деньги** — копейки (`int`) для эквайринга, `Decimal` для открытого банка (без float-погрешности).
49
+ - 🔁 **Надёжность** — ретраи с экспоненциальным бэкоффом, уважение `Retry-After`, идемпотентность.
50
+ - 🧪 **Проверено** — 111 тестов, 99% покрытие.
51
+
52
+ ## 📦 Установка
53
+
54
+ ```bash
55
+ pip install tbank
56
+ ```
57
+
58
+ Зависимости: Python 3.9+, `pydantic>=2`, `httpx`.
59
+
60
+ ## 🚀 Быстрый старт
61
+
62
+ ### Эквайринг — приём платежа (redirect)
63
+
64
+ ```python
65
+ import asyncio
66
+ from tbank.acquiring import AcquiringClient
67
+ from tbank.acquiring.models import InitRequest
68
+
69
+
70
+ async def main() -> None:
71
+ async with AcquiringClient(terminal_key="...", password="...") as client:
72
+ payment = await client.init(InitRequest(amount=150000, order_id="A-1"))
73
+ print(payment.payment_url) # редиректим покупателя сюда
74
+ state = await client.get_state(payment.payment_id)
75
+ print(state.status)
76
+
77
+ asyncio.run(main())
78
+ ```
79
+
80
+ Синхронный вариант — тот же API без `async`/`await`:
81
+
82
+ ```python
83
+ from tbank.acquiring.sync import AcquiringClient
84
+
85
+ with AcquiringClient(terminal_key="...", password="...") as client:
86
+ payment = client.init(InitRequest(amount=150000, order_id="A-1"))
87
+ ```
88
+
89
+ ### Открытый банк — счета и выписки
90
+
91
+ ```python
92
+ from decimal import Decimal
93
+ from tbank.business import BusinessClient
94
+ from tbank.business.models import StatementParams
95
+ from datetime import datetime, timezone
96
+
97
+
98
+ async def main() -> None:
99
+ client = BusinessClient(token="...") # self-service токен из ЛК
100
+ accounts = await client.get_accounts() # счета + балансы (Decimal)
101
+ async for op in client.iter_statement(
102
+ StatementParams(account_number="40802...", from_=datetime(2026, 1, 1, tzinfo=timezone.utc))
103
+ ):
104
+ print(op.operation_id, op.operation_amount) # авто-пагинация по nextCursor
105
+ await client.aclose()
106
+ ```
107
+
108
+ ## 🧩 Что покрыто
109
+
110
+ | Домен | Возможности |
111
+ | --- | --- |
112
+ | **`tbank.acquiring`** (EACQ) | Приём платежей (`init`/`get_state`/`confirm`/`cancel`), вебхуки, рекуррент (`charge`), клиенты и карты (`add_customer`/`get_card_list`/`remove_card`), СБП QR (`get_qr`/`get_qr_members`) и СБП-рекуррент (`add_account_qr`/`charge_qr`), фискализация 54-ФЗ (`Receipt`/`send_closing_receipt`), привязка карт (`add_card`/`get_add_card_state`) |
113
+ | **`tbank.business`** (T-API) | Счета и балансы (`get_accounts`), выписки с курсорной авто-пагинацией (`get_statement`/`iter_statement`/`get_bank_statement`), рублёвые платежи с налоговым блоком через **mTLS** (`create_ruble_payment`/`get_payment_status`), инвойсы (`send_invoice`), СБП-ссылки b2b (`create_onetime_qr`/`create_reusable_qr`) |
114
+
115
+ ## 📋 Примеры
116
+
117
+ <details>
118
+ <summary>Рекуррентный платёж (эквайринг)</summary>
119
+
120
+ ```python
121
+ # 1) при первом платеже сохраняем карту:
122
+ await client.init(InitRequest(amount=150000, order_id="A-1", customer_key="c1", recurrent="Y"))
123
+ # → RebillId приходит в вебхуке на статус AUTHORIZED
124
+
125
+ # 2) последующие списания без покупателя:
126
+ await client.charge(payment_id, rebill_id)
127
+ ```
128
+ </details>
129
+
130
+ <details>
131
+ <summary>СБП QR (эквайринг)</summary>
132
+
133
+ ```python
134
+ from tbank.acquiring.enums import QrDataType
135
+
136
+ payment = await client.init(InitRequest(amount=150000, order_id="A-1"))
137
+ qr = await client.get_qr(payment.payment_id, data_type=QrDataType.PAYLOAD)
138
+ print(qr.data) # ссылка qr.nspk.ru
139
+ ```
140
+ </details>
141
+
142
+ <details>
143
+ <summary>Рублёвый платёж с mTLS (открытый банк)</summary>
144
+
145
+ ```python
146
+ from decimal import Decimal
147
+ from tbank.business import BusinessClient
148
+ from tbank.business.models import CreatePaymentRequest, PaymentFrom, ReceiverRequisites
149
+
150
+ client = BusinessClient(token="...", cert=("client.pem", "key.pem")) # mTLS-сертификат из ЛК
151
+ pid = await client.create_ruble_payment(CreatePaymentRequest(
152
+ from_=PaymentFrom(account_number="40802..."),
153
+ to=ReceiverRequisites(name="ООО Ромашка", inn="7700000000", account_number="40702...", bik="044525974"),
154
+ purpose="Оплата по счёту 1", amount=Decimal("12345.67"),
155
+ ))
156
+ status = await client.get_payment_status(pid)
157
+ ```
158
+ </details>
159
+
160
+ <details>
161
+ <summary>Фискализация 54-ФЗ (эквайринг)</summary>
162
+
163
+ ```python
164
+ from tbank.acquiring.models import Receipt, ReceiptItem
165
+ from tbank.acquiring.enums import Tax, Taxation, PaymentObject
166
+
167
+ await client.init(InitRequest(
168
+ amount=100000, order_id="A-1",
169
+ receipt=Receipt(
170
+ taxation=Taxation.USN_INCOME, email="client@example.com",
171
+ items=[ReceiptItem(name="Товар", price=100000, quantity=1, amount=100000,
172
+ tax=Tax.VAT_22, payment_object=PaymentObject.COMMODITY)],
173
+ ),
174
+ ))
175
+ ```
176
+ </details>
177
+
178
+ ## ⚠️ Обработка ошибок
179
+
180
+ Все ошибки наследуются от `tbank.core.errors.TBankError`:
181
+
182
+ ```python
183
+ from tbank.core.errors import TBankAPIError, TBankNetworkError, InsufficientFundsError
184
+
185
+ try:
186
+ await client.charge(payment_id, rebill_id)
187
+ except InsufficientFundsError:
188
+ ... # недостаточно средств (типизированное исключение)
189
+ except TBankAPIError as e:
190
+ print(e.code, e.message) # прочие ошибки API
191
+ except TBankNetworkError:
192
+ ... # сеть/таймаут после ретраев
193
+ ```
194
+
195
+ ## 🔗 Ссылки
196
+
197
+ - 📚 Документация: https://tbank.readthedocs.io
198
+ - 🐙 Репозиторий: https://github.com/masasibata/tbank
199
+ - 🏦 API Т-Банка: https://developer.tbank.ru/docs/api
200
+
201
+ ## 🧪 Разработка
202
+
203
+ ```bash
204
+ poetry install
205
+ poetry run pytest --cov=tbank # тесты + покрытие
206
+ poetry run mypy tbank # строгая типизация
207
+ poetry run black tbank tests && poetry run isort tbank tests
208
+ ```
209
+
210
+ ## 📄 Лицензия
211
+
212
+ MIT — см. [LICENSE](LICENSE).
213
+
tbank-0.1.0/README.md ADDED
@@ -0,0 +1,183 @@
1
+ # tbank
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/tbank.svg)](https://pypi.org/project/tbank/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/tbank.svg)](https://pypi.org/project/tbank/)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
6
+ [![Coverage](https://img.shields.io/badge/coverage-99%25-brightgreen.svg)](#-разработка)
7
+ [![mypy: strict](https://img.shields.io/badge/mypy-strict-blue.svg)](#-разработка)
8
+
9
+ **Асинхронный и синхронный Python SDK для API Т-Банка (ex-Тинькофф).**
10
+
11
+ `tbank` — типизированная библиотека для интеграции с платёжными и банковскими сервисами Т-Банка: интернет-эквайринг (приём платежей, СБП, рекуррент, фискализация 54-ФЗ) и открытый банковский API Т-Бизнеса (счета, выписки, рублёвые платежи, инвойсы, СБП-ссылки). Один пакет — оба мира, с общим ядром.
12
+
13
+ ## ✨ Особенности
14
+
15
+ - 🚀 **Async и sync** — один API в двух вариантах на общем ядре (`httpx`).
16
+ - 🛡️ **Строгая типизация** — pydantic v2, `mypy --strict` без ошибок, `py.typed`.
17
+ - 🔌 **Полное покрытие** — эквайринг (EACQ) и открытый банк (T-API) в одном пакете.
18
+ - 🔐 **Аутентификация из коробки** — SHA-256 Token-подпись (эквайринг), Bearer и **mTLS** (открытый банк).
19
+ - 💸 **Корректные деньги** — копейки (`int`) для эквайринга, `Decimal` для открытого банка (без float-погрешности).
20
+ - 🔁 **Надёжность** — ретраи с экспоненциальным бэкоффом, уважение `Retry-After`, идемпотентность.
21
+ - 🧪 **Проверено** — 111 тестов, 99% покрытие.
22
+
23
+ ## 📦 Установка
24
+
25
+ ```bash
26
+ pip install tbank
27
+ ```
28
+
29
+ Зависимости: Python 3.9+, `pydantic>=2`, `httpx`.
30
+
31
+ ## 🚀 Быстрый старт
32
+
33
+ ### Эквайринг — приём платежа (redirect)
34
+
35
+ ```python
36
+ import asyncio
37
+ from tbank.acquiring import AcquiringClient
38
+ from tbank.acquiring.models import InitRequest
39
+
40
+
41
+ async def main() -> None:
42
+ async with AcquiringClient(terminal_key="...", password="...") as client:
43
+ payment = await client.init(InitRequest(amount=150000, order_id="A-1"))
44
+ print(payment.payment_url) # редиректим покупателя сюда
45
+ state = await client.get_state(payment.payment_id)
46
+ print(state.status)
47
+
48
+ asyncio.run(main())
49
+ ```
50
+
51
+ Синхронный вариант — тот же API без `async`/`await`:
52
+
53
+ ```python
54
+ from tbank.acquiring.sync import AcquiringClient
55
+
56
+ with AcquiringClient(terminal_key="...", password="...") as client:
57
+ payment = client.init(InitRequest(amount=150000, order_id="A-1"))
58
+ ```
59
+
60
+ ### Открытый банк — счета и выписки
61
+
62
+ ```python
63
+ from decimal import Decimal
64
+ from tbank.business import BusinessClient
65
+ from tbank.business.models import StatementParams
66
+ from datetime import datetime, timezone
67
+
68
+
69
+ async def main() -> None:
70
+ client = BusinessClient(token="...") # self-service токен из ЛК
71
+ accounts = await client.get_accounts() # счета + балансы (Decimal)
72
+ async for op in client.iter_statement(
73
+ StatementParams(account_number="40802...", from_=datetime(2026, 1, 1, tzinfo=timezone.utc))
74
+ ):
75
+ print(op.operation_id, op.operation_amount) # авто-пагинация по nextCursor
76
+ await client.aclose()
77
+ ```
78
+
79
+ ## 🧩 Что покрыто
80
+
81
+ | Домен | Возможности |
82
+ | --- | --- |
83
+ | **`tbank.acquiring`** (EACQ) | Приём платежей (`init`/`get_state`/`confirm`/`cancel`), вебхуки, рекуррент (`charge`), клиенты и карты (`add_customer`/`get_card_list`/`remove_card`), СБП QR (`get_qr`/`get_qr_members`) и СБП-рекуррент (`add_account_qr`/`charge_qr`), фискализация 54-ФЗ (`Receipt`/`send_closing_receipt`), привязка карт (`add_card`/`get_add_card_state`) |
84
+ | **`tbank.business`** (T-API) | Счета и балансы (`get_accounts`), выписки с курсорной авто-пагинацией (`get_statement`/`iter_statement`/`get_bank_statement`), рублёвые платежи с налоговым блоком через **mTLS** (`create_ruble_payment`/`get_payment_status`), инвойсы (`send_invoice`), СБП-ссылки b2b (`create_onetime_qr`/`create_reusable_qr`) |
85
+
86
+ ## 📋 Примеры
87
+
88
+ <details>
89
+ <summary>Рекуррентный платёж (эквайринг)</summary>
90
+
91
+ ```python
92
+ # 1) при первом платеже сохраняем карту:
93
+ await client.init(InitRequest(amount=150000, order_id="A-1", customer_key="c1", recurrent="Y"))
94
+ # → RebillId приходит в вебхуке на статус AUTHORIZED
95
+
96
+ # 2) последующие списания без покупателя:
97
+ await client.charge(payment_id, rebill_id)
98
+ ```
99
+ </details>
100
+
101
+ <details>
102
+ <summary>СБП QR (эквайринг)</summary>
103
+
104
+ ```python
105
+ from tbank.acquiring.enums import QrDataType
106
+
107
+ payment = await client.init(InitRequest(amount=150000, order_id="A-1"))
108
+ qr = await client.get_qr(payment.payment_id, data_type=QrDataType.PAYLOAD)
109
+ print(qr.data) # ссылка qr.nspk.ru
110
+ ```
111
+ </details>
112
+
113
+ <details>
114
+ <summary>Рублёвый платёж с mTLS (открытый банк)</summary>
115
+
116
+ ```python
117
+ from decimal import Decimal
118
+ from tbank.business import BusinessClient
119
+ from tbank.business.models import CreatePaymentRequest, PaymentFrom, ReceiverRequisites
120
+
121
+ client = BusinessClient(token="...", cert=("client.pem", "key.pem")) # mTLS-сертификат из ЛК
122
+ pid = await client.create_ruble_payment(CreatePaymentRequest(
123
+ from_=PaymentFrom(account_number="40802..."),
124
+ to=ReceiverRequisites(name="ООО Ромашка", inn="7700000000", account_number="40702...", bik="044525974"),
125
+ purpose="Оплата по счёту 1", amount=Decimal("12345.67"),
126
+ ))
127
+ status = await client.get_payment_status(pid)
128
+ ```
129
+ </details>
130
+
131
+ <details>
132
+ <summary>Фискализация 54-ФЗ (эквайринг)</summary>
133
+
134
+ ```python
135
+ from tbank.acquiring.models import Receipt, ReceiptItem
136
+ from tbank.acquiring.enums import Tax, Taxation, PaymentObject
137
+
138
+ await client.init(InitRequest(
139
+ amount=100000, order_id="A-1",
140
+ receipt=Receipt(
141
+ taxation=Taxation.USN_INCOME, email="client@example.com",
142
+ items=[ReceiptItem(name="Товар", price=100000, quantity=1, amount=100000,
143
+ tax=Tax.VAT_22, payment_object=PaymentObject.COMMODITY)],
144
+ ),
145
+ ))
146
+ ```
147
+ </details>
148
+
149
+ ## ⚠️ Обработка ошибок
150
+
151
+ Все ошибки наследуются от `tbank.core.errors.TBankError`:
152
+
153
+ ```python
154
+ from tbank.core.errors import TBankAPIError, TBankNetworkError, InsufficientFundsError
155
+
156
+ try:
157
+ await client.charge(payment_id, rebill_id)
158
+ except InsufficientFundsError:
159
+ ... # недостаточно средств (типизированное исключение)
160
+ except TBankAPIError as e:
161
+ print(e.code, e.message) # прочие ошибки API
162
+ except TBankNetworkError:
163
+ ... # сеть/таймаут после ретраев
164
+ ```
165
+
166
+ ## 🔗 Ссылки
167
+
168
+ - 📚 Документация: https://tbank.readthedocs.io
169
+ - 🐙 Репозиторий: https://github.com/masasibata/tbank
170
+ - 🏦 API Т-Банка: https://developer.tbank.ru/docs/api
171
+
172
+ ## 🧪 Разработка
173
+
174
+ ```bash
175
+ poetry install
176
+ poetry run pytest --cov=tbank # тесты + покрытие
177
+ poetry run mypy tbank # строгая типизация
178
+ poetry run black tbank tests && poetry run isort tbank tests
179
+ ```
180
+
181
+ ## 📄 Лицензия
182
+
183
+ MIT — см. [LICENSE](LICENSE).
@@ -0,0 +1,90 @@
1
+ [project]
2
+ name = "tbank"
3
+ version = "0.1.0"
4
+ description = "Асинхронный/синхронный Python SDK для API Т-Банка (эквайринг и открытый банк)."
5
+ authors = [{ name = "masasibata" }]
6
+ license = "MIT"
7
+ readme = "README.md"
8
+ requires-python = ">=3.9,<4.0"
9
+ keywords = [
10
+ "tbank",
11
+ "tinkoff",
12
+ "acquiring",
13
+ "эквайринг",
14
+ "payments",
15
+ "sbp",
16
+ "fiscalization",
17
+ "openapi",
18
+ "async",
19
+ "asyncio",
20
+ "httpx",
21
+ "pydantic",
22
+ ]
23
+ classifiers = [
24
+ "Development Status :: 4 - Beta",
25
+ "Intended Audience :: Developers",
26
+ "Operating System :: OS Independent",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.9",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Framework :: AsyncIO",
34
+ "Topic :: Office/Business :: Financial",
35
+ "Topic :: Software Development :: Libraries :: Python Modules",
36
+ "Typing :: Typed",
37
+ ]
38
+ dependencies = [
39
+ "pydantic>=2.0.0",
40
+ "httpx>=0.27.0",
41
+ ]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/masasibata/tbank"
45
+ Repository = "https://github.com/masasibata/tbank"
46
+ Documentation = "https://tbank.readthedocs.io"
47
+
48
+ [tool.poetry]
49
+ packages = [{ include = "tbank" }]
50
+
51
+ [tool.poetry.group.dev.dependencies]
52
+ pytest = ">=8.0"
53
+ pytest-asyncio = ">=0.23"
54
+ coverage = ">=7.0"
55
+ pytest-cov = ">=5.0"
56
+ mypy = ">=1.10"
57
+ black = ">=24.0"
58
+ isort = ">=5.13"
59
+
60
+ [tool.poetry.group.docs.dependencies]
61
+ sphinx = ">=7.0"
62
+ furo = ">=2024.1"
63
+ myst-parser = ">=2.0"
64
+
65
+ [build-system]
66
+ requires = ["poetry-core>=2.0.0"]
67
+ build-backend = "poetry.core.masonry.api"
68
+
69
+ [tool.pytest.ini_options]
70
+ asyncio_mode = "auto"
71
+ testpaths = ["tests"]
72
+
73
+ [tool.mypy]
74
+ python_version = "3.10"
75
+ strict = true
76
+ warn_unused_configs = true
77
+ show_error_codes = true
78
+ plugins = ["pydantic.mypy"]
79
+
80
+ [tool.black]
81
+ line-length = 88
82
+ target-version = ["py39"]
83
+
84
+ [tool.isort]
85
+ profile = "black"
86
+ known_first_party = ["tbank"]
87
+
88
+ [tool.coverage.run]
89
+ source = ["tbank"]
90
+ omit = ["*/tests/*"]
@@ -0,0 +1,3 @@
1
+ __version__ = "0.1.0"
2
+
3
+ __all__ = ["__version__"]
@@ -0,0 +1,4 @@
1
+ from tbank.acquiring import enums, models, webhooks
2
+ from tbank.acquiring.aio import AcquiringClient
3
+
4
+ __all__ = ["AcquiringClient", "enums", "models", "webhooks"]