Skip to main content

Tool for checking the status of the NPD-payer in Russia

Project description

NPDChecker

Инструмент для проверки статуса плательщика налога на профессиональный доход (НПД) по ИНН


Синхронный режим:

from npdchecker import NPDChecker

checker = NPDChecker()
inn = 144075719327

status = checker(inn) # проверка актуального статуса
status = checker(inn, "2020-07-25") # Проверка статуса на 25 июля 2020 года

Асинхронный режим:

from npdchecker import NPDChecker

checker = NPDChecker()
inn = 144075719327

async def check():
	async with checker:
		status = await checker.a(inn)
        status = await checker.a(inn, "2019-12-31")

checker.run(check())

Ошибки

Все ошибки API идут классом NPDError. Класс имеет атрибуты code и message согласно Документации.

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

npdchecker-0.0.1a1.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

npdchecker-0.0.1a1-py3-none-any.whl (1.7 kB view hashes)

Uploaded Python 3

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