KVK API Client
This is a Python client for the KVK API, which provides access to the Dutch Chamber of Commerce (KVK) company register.
Installation
You can install the package into your project via pip:
pip install kvk_api_client
USAGE
To use the KVK API client, you first need to set up environment variables for the required credentials:
export KVK_HOST='https://api.kvk.nl'
export KVK_API_VERSION='api/v1'
export KVK_APIKEY_TEST='your-test-api-key'
export KVK_APIKEY_PROD='your-production-api-key'
EXAMPLE
By setting the test parameter to true, you can play arround with api: https://developers.kvk.nl/documentation/testing
from kvk_api_client import KVK
# Create a KVK API client instance
kvk = KVK(test=True)
KVK_NUMBER = "68750110"
# Call an API method
companies = kvk.get_companies(kvk_number=KVK_NUMBER)
TESTS
Make sure pytest is installed on your environment
python3 -m pytest
KVK API Asycn Client
import asyncio
from kvk_api_client import AsyncKVK
KVK_NUMBER = "68750110"
async def get_basis_profiel():
async with AsyncKVK(test=True) as kvk:
profiel = await kvk.get_basis_profiel(KVK_NUMBER)
print(await profiel.json())
asyncio.run(get_basis_profiel())
Repo
Metadata
Release files for kvk-api-client 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kvk_api_client-0.0.10.tar.gz | 5.8 kB | Without provenance | Details for kvk_api_client-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kvk_api_client-0.0.10-py2-none-any.whl | Python 2 | none | any | Details for kvk_api_client-0.0.10-py2-none-any.whl |
Total release size: 21.6 kB
Release files / kvk_api_client-0.0.10.tar.gz
| Download URL | kvk_api_client-0.0.10.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
300295fae0ca9c6eab07955f0ae60c174982119f79faeb0910f39fe1157e1bfd
|
|
BLAKE2b-256 checksum How to use checksums |
cf4319739e505382c304e3951096db824de1983fe10f37aef5fa99bcb4ce5bc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.9
|
Release files / kvk_api_client-0.0.10-py2-none-any.whl
| Download URL | kvk_api_client-0.0.10-py2-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4cd71dbc4d505ceeab871a49d9ee39ca2bf666ecb61827fe6923f914f87de1f9
|
|
BLAKE2b-256 checksum How to use checksums |
f80f3d32cddcb0a2d00e48e21baceb57cd92dcc08280fc21c0cc2473b615e06d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.9
|
Security for kvk-api-client 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.