Skip to main content

Python SDK for statsnet.co

Project description

Python SDK for statsnet.co

Installation

pip install statsnet-python-sdk

Requirements:

Usage

Import statsnet client and set API keys:

from statsnet_python_sdk import Client

token = "123" # or set via STATSNET_API_KEY environment variable
client = Client(token)
# Get info about current user (/api/v2/user/me)
me = client.me()
# Find company by query and jurisdiction (/api/v2/business/search)
companies = client.search(query="казпочта", jurisdiction="kz", limit=5)
# Or without specifiying jurisdiction
companies = client.search(query="казпочта", limit=5)
# Get company by id and jurisdiction (/api/v2/business/{jurisdiction}/{id}/paid
company = client.get_company("kz", 1)
# Get company meta by id (/api/v2/business/{id}/data/view/meta)
meta = client.get_company_meta(1)
# Get company court cases (/business/{id}/court_cases)
court_cases = client.get_company_court_cases(id=1, limit=5)
# Get company departments (/business/{id}/department)
departments = client.get_company_departments(id=1, limit=5)
# Get company gov contracts (/business/{id}/gov_contracts)
gov_contracts = client.get_company_gov_contracts(id=1, limit=5)
# Get company events (/business/{id}/events)
company_events = client.get_company_events(id=1, limit=5)
# Get company relations (/business/{id}/relations/table)
company_relations = client.get_company_relations(id=1, limit=5)
# Get company by identifier
company = client.get_company_by_identifier("1")
Limit must be between 1 and 500, 501 is already invalid value

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

statsnet_python_sdk-1.1.5.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

statsnet_python_sdk-1.1.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file statsnet_python_sdk-1.1.5.tar.gz.

File metadata

  • Download URL: statsnet_python_sdk-1.1.5.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure

File hashes

Hashes for statsnet_python_sdk-1.1.5.tar.gz
Algorithm Hash digest
SHA256 1555bbf5c8210480f77de831bf3e5f57a16ba9be230751b90915c6f79a708a9b
MD5 dc258febc3a7cbb9b96db48793030689
BLAKE2b-256 1399cd1995e66b6f1638e0c45e9c1607733c182d456acda2fbfa7acd4a4412c6

See more details on using hashes here.

File details

Details for the file statsnet_python_sdk-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: statsnet_python_sdk-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure

File hashes

Hashes for statsnet_python_sdk-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d5e5ca9e583d41b173161d6605bc50ef5c1245527c7f92a7fd3b486e8a1fdfd3
MD5 31879af4e16d490ec10014ce26e3ca1a
BLAKE2b-256 df318d4a7528278bdb57b34a529e320c7d02d92d56be23b97f10ba2fb60eb97b

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