Skip to main content

Асинхронная библиотека Python для отправки чеков в приложении Мой Налог

Project description

pytaxapi – асинхронная библиотека Python для отправки чеков в приложении Мой Налог

Использование

  1. 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


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.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytaxapi-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pytaxapi-0.1.1.tar.gz.

File metadata

  • Download URL: pytaxapi-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pytaxapi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9c280503e39e578f73ef154eef87879bab9553bef4c5fc2fd45f894dd72b3f2
MD5 f9acba3e8a4d1531421b12d9358869c3
BLAKE2b-256 a46671d3cb666fcb803102474b60d53584e851cbf86c57ae606a57d91f2b86ed

See more details on using hashes here.

File details

Details for the file pytaxapi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytaxapi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pytaxapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90d954e5385b20f86df1be7aabe07e18ce9e4b8b209f528b8dd171d6c5bbdeba
MD5 4ef2ce3c10edbf5d29d4c9a265d66351
BLAKE2b-256 d92a57eb7a3f2ce090252dd064cff098af08d578b9c86aa496ac175626ebaaff

See more details on using hashes here.

Supported by

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