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.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytaxapi-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9e041c5c53270f6f8a5e5016e066e39f9d3ee31ee9cd516983215af73dae5485
MD5 a16ee752d5c93e488253a8e2e6a2ef9c
BLAKE2b-256 f595785f77ddd67001c767e40269b1c7df2019cfcea593198085b4e8788f7e18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytaxapi-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e56631dc7519ad37e33eb1c9390f2e3b1211239337f37461c776e642f886979
MD5 b11168875c77c9ebfd5cb95793996a4e
BLAKE2b-256 520a3076bdd4364e980cd77b17ffa3dc8b5a2b0b84a5c27b6e0e2700a5c1631f

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