Skip to main content

Tool for retrieving information on tax payments by Kazakhstan companies

Project description

KgdTaxes

Tool for retrieving information on tax payments by Kazakhstan companies.

Features

  • progressbar with additional info
  • retries for unreliable networks or if service temporarily is not available
  • max output file size limitation

Usage

$ kgd --help
usage: __main__.py [-h] [-B BACKOFF] [-w TIMEOUT] [-r RETRIES] [-f FSIZE]
                   address_port token fpath date_range


positional arguments:
  address_port          KGD API target host and port
  token                 KGD API secret token
  fpath                 input file with BINs
  date_range            date range for which we retrieve data

optional arguments:
  -h, --help            show this help message and exit
  -B BACKOFF, --backoff BACKOFF
                        delay after each failed attempt (default: 0.5)
  -w TIMEOUT, --timeout TIMEOUT
                        server connect timeout (default: 4)
  -r RETRIES, --retries RETRIES
                        retries count for one BIN (default: 4)
  -f FSIZE, --fsize FSIZE
                        size limit for output file (default: 50000000)

Usage examples

kgd 212.154.167.151:9980 sdfgggw5gsdg4g4g4435dg /home/user/bins.txt -w 6 --backoff 2 2018-01-01:2019-01-01 -f 500000000 

Installation

Python 3.6.1+ required.

From PyPI:

pip install kgd

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

kgd-0.1.4.tar.gz (6.8 kB view hashes)

Uploaded Source

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