Merk API Python client
Project description
# merk-api-py
Merk API Python client
## Installation
pip install merk-api
## Usage
```python
from merkapi import Api
# by default client uses messagepack, but you can use less efficient json
a = Api('your_authentication_token', content_type='application/msgpack')
# get your subscriptions info (cz, sk)
r = a.subscriptions
# print returned dict
print(r.encdata)
# you can also access standard urllib3 response
print(r.data, r.status)
# implemented API calls
# suggest by 'regno', 'email' or 'name'
a.suggest(query, by, country_code)
# get full company data by regno
a.company(regno, country_code)
# multi get full company data
a.companies(regnos, country_code)
# get and cache enums
a.get_enums(country_code)
```
## Run tests
Client is tested in python 2.7 and 3.5. You can run tests in your environment:
cd project/root
py.test
or via tox:
cd project/root
tox
Merk API Python client
## Installation
pip install merk-api
## Usage
```python
from merkapi import Api
# by default client uses messagepack, but you can use less efficient json
a = Api('your_authentication_token', content_type='application/msgpack')
# get your subscriptions info (cz, sk)
r = a.subscriptions
# print returned dict
print(r.encdata)
# you can also access standard urllib3 response
print(r.data, r.status)
# implemented API calls
# suggest by 'regno', 'email' or 'name'
a.suggest(query, by, country_code)
# get full company data by regno
a.company(regno, country_code)
# multi get full company data
a.companies(regnos, country_code)
# get and cache enums
a.get_enums(country_code)
```
## Run tests
Client is tested in python 2.7 and 3.5. You can run tests in your environment:
cd project/root
py.test
or via tox:
cd project/root
tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
merk-api-0.0.4.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file merk-api-0.0.4.tar.gz
.
File metadata
- Download URL: merk-api-0.0.4.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6ae6197b573b21b97742d631b3ed1e341d9f4fce6e7a7040b62914128920f0 |
|
MD5 | 0fc1434037e70f320be56a2f3ec187fc |
|
BLAKE2b-256 | 9f86fcc3281fb65dcea6a2d35182d2bdec0602c92005f1b73479e993d38c33db |
File details
Details for the file merk_api-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: merk_api-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ef15130055074e4d198f4a3f4bf6437d5923c937316f1e6b37151ea7162369 |
|
MD5 | e19116e5fb8c32b63bc2a5bc870ef3d0 |
|
BLAKE2b-256 | 7c0a5147435483e3bd4da13d88de93dcca126d5f8fea4ee454b9ad1075d01f0b |