Skip to main content

API Client for Mediascout ORD

Project description

Mediascout ORD API client

Unofficial python client for ORD Mediascout API.

Installation

pip install ord-mediascout-client

Usage

from ord_mediascout_client import ORDMediascoutClient, ORDMediascoutConfig, Client

config = ORDMediascoutConfig(
    url='http://localhost:5000',
    username='username',
    password='password',
)

api = MediaScoutClient(config)

client = Client(
    name="Test Client",
    inn="1234567890",
    ...
)

try:
    client = api.register_client(client)
except ClientAlreadyExists:
    pass
except ORDMediascoutError as e:
    print(e.response.code)

Testing

pipenv install --dev
pipenv shell

# get credentials for accessing https://demo.mediascout.ru/
# and put them into .env file (see .env.example.env)

pytest

Packaging

pipenv install --dev
pipenv shell

vi pyproject.toml # update version

python -m build
python -m twine upload dist/*

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

ord_mediascout_client-0.0.1.tar.gz (18.7 MB view details)

Uploaded Source

Built Distribution

ord_mediascout_client-0.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file ord_mediascout_client-0.0.1.tar.gz.

File metadata

  • Download URL: ord_mediascout_client-0.0.1.tar.gz
  • Upload date:
  • Size: 18.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for ord_mediascout_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 da5296fc3af8da913070c3727352fcb16f027e067e36acbe67d767e474ec0db0
MD5 e2125ebe25cb982bc7d290a3d7ed4d8d
BLAKE2b-256 e66170a5aade33355970c2cdc5d3bcf93e48a172830b5d63cb9017303f1e4107

See more details on using hashes here.

File details

Details for the file ord_mediascout_client-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ord_mediascout_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f4a67e241b610aae0baa3ae92fd907a493889bf462d367e1b9ba2daa245d70
MD5 8ce7f6f1f43e5bb16a97b165d901f159
BLAKE2b-256 3a74cba7a3aba35942accfadd667faef0705b0791cfa3afb0c5780e566fcfeb5

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