# merk-api-py
Merk API Python client
[](https://badge.fury.io/py/merk-api)
[](https://travis-ci.org/impercz/merk-api-py)
## 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
[](https://badge.fury.io/py/merk-api)
[](https://travis-ci.org/impercz/merk-api-py)
## 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
Release files for merk-api 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| merk-api-0.0.6.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| merk_api-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.6 kB
Release files / merk-api-0.0.6.tar.gz
| Download URL | merk-api-0.0.6.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c33ade80d28af157a7c8d23b63eb02a8dd1521ff9db1981493591377ba3320b
|
|
BLAKE2b-256 checksum How to use checksums |
81788087f22e4423bd66fcde32b8bfbc252a95d5ded2f616ed0225d7686eb1f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / merk_api-0.0.6-py2.py3-none-any.whl
| Download URL | merk_api-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
474fd5d8bc92c9fcadd3bbad37628192d0f4e214a603e56f929df5faf1664616
|
|
BLAKE2b-256 checksum How to use checksums |
f5c0d1b70d29f7ed6ce276145a08495efb69152952f9ee6c801b53436ef811ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |