Асинхронная библиотека Python для отправки чеков в приложении Мой Налог
Project description
pytaxapi – асинхронная библиотека Python для отправки чеков в приложении Мой Налог
Использование
- pip install pytaxapi
import asyncio
from pytaxapi import Client
from pytaxapi.models import Receipt, TaxServices, TaxClient
client = Client(
taxpayer_id="1234567890", // ИНН
password="password", // Пароль от личного кабинета
timeout=10 // Максимальное время выполнения запроса в секундах
)
async def main():
receipt = Receipt(
operation_time="2026-01-10T23:59:59+03:00", // Дата и время проведения операции
services=[
TaxServices(
name=f"Подписка на новостной канал",
amount=3600,
quantity=1
)
],
total_amount="3600",
client=TaxClient(),
)
response = await client.send_receipt(receipt=receipt)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytaxapi-0.1.2.tar.gz
(3.6 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 pytaxapi-0.1.2.tar.gz.
File metadata
- Download URL: pytaxapi-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c63f5919925c25b1219335be1ef010b9c3dc661d17d7f6aafdab6e22f1f9a04d
|
|
| MD5 |
d92471e05afd111c04b70065d5ee9c9b
|
|
| BLAKE2b-256 |
f0b924644e248960232f866c415aac833ae560ea052e806dce3d6a47bc8bd11e
|
File details
Details for the file pytaxapi-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytaxapi-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af0c7def4ee3d096503cade29b638b3c4afd2f93ad7654762b8e9f8414345991
|
|
| MD5 |
a3a95d413e26cfcdac4e42c89201a056
|
|
| BLAKE2b-256 |
852cebf2c63b891e70392f2b59ac5b6ecb02430afab39a9072c9763d728d3166
|