Skip to main content

Merk API Python client

Project description

# merk-api-py
Merk API Python client

Latest CircleCI build:
[![CircleCI](https://circleci.com/gh/impercz/merk-api-py.svg?style=svg)](https://circleci.com/gh/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

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

merk-api-0.0.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

merk_api-0.0.5-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file merk-api-0.0.5.tar.gz.

File metadata

  • Download URL: merk-api-0.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for merk-api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7650564574b7703605398570dd6b03604fbe88382346a54268af1d10629e110f
MD5 42d45aa66ba88f9303dd1652753f9e82
BLAKE2b-256 96bff20685a45ca76f2accd254f65ea04969e488b6760ddfa4657e30f1c0c6f9

See more details on using hashes here.

File details

Details for the file merk_api-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for merk_api-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8d7e439d7865370d773d5403621adbf7e13dcaa21e0d37a322368cbc65e0058
MD5 3d8e2a32a1f0e22ad1507e40ef947b6f
BLAKE2b-256 6f485d117b1e61e32f4b6863b567f6858c5f9e057e6e39b03e9aa779dda5735a

See more details on using hashes here.

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