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, CreateClientRequest, \
    ClientRelationshipType, LegalForm

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

api = ORDMediascoutClient(config)

client_dto = CreateClientRequest(
    createMode=ClientRelationshipType.DirectClient,
    legalForm=LegalForm.JuridicalPerson,
    inn="1234567890",
    name="Test Client",
    mobilePhone="1234567890",
    epayNumber=None,
    regNumber=None,
    oksmNumber=None
)

response_client_dto = api.create_client(client_dto)

Testing

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

First setup virtual environment (once):

pipenv install --dev
pipenv install -e .

To run tests:

pipenv shell
pytest

Packaging

pipenv install --dev
pipenv shell

# update version
vi pyproject.toml

# clean up files from dist/* before deploy not to upload old ones
# rm dist/*

# create new build
python -m build

# upload fresh 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.32.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

ord_mediascout_client-0.0.32-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ord_mediascout_client-0.0.32.tar.gz
Algorithm Hash digest
SHA256 a7813c29ffbba52b495765124f907075a4fefdba5eec6b517da88ed37ee17b25
MD5 eeb4f3fb2d1557066beef87173f281b7
BLAKE2b-256 bf408529daea735dfb7128b6e3b32d9624f8990d17ca59fc809bb2744eaa2b96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ord_mediascout_client-0.0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb2cc198ff5fb273d7f9ec838e54c97455420b44794556f919d2093f7148661
MD5 553b58cd71fbcaf0c582112538ade4a3
BLAKE2b-256 f98dd203a399c0158a3b0ca09c1071dc59e6929f0460fb7af64a79302df8629a

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