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, CreateClientWebApiDto, \
ClientRelationshipType, LegalForm
from ord_mediascout_client.client import APIError
config = ORDMediascoutConfig(
url='http://localhost:5000',
username='username',
password='password',
)
api = MediaScoutClient(config)
client = Client(
name="Test Client",
inn="1234567890",
...
)
api = ORDMediascoutClient(config)
client = CreateClientWebApiDto(
createMode=ClientRelationshipType.DirectClient,
legalForm=LegalForm.JuridicalPerson,
inn="1234567890",
name="Test Client",
mobilePhone="1234567890",
epayNumber=None,
regNumber=None,
oksmNumber=None
)
client = api.create_client(client)
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
# 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
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
Built Distribution
Close
Hashes for ord_mediascout_client-0.0.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2ab289773b7350917d1184feb0ba1ea068de3ec8fb7a852edfe56d278a4e60 |
|
MD5 | 7a9d861ecaefd0f26295a66aca72dc32 |
|
BLAKE2b-256 | b573dba08f775a405e6879411ff51e1937f2540fcdc7eae131c2f3504bee9687 |
Close
Hashes for ord_mediascout_client-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37195d1a66b4e7abcddcb68a028a0df93b3b725ec5ac8c8ca9ff31f2116d9394 |
|
MD5 | 8ab4b4f651f4e0b5e9cb2c5be6694486 |
|
BLAKE2b-256 | 7b8b7fa74ff6b35853afbc991091feb780506bc13b6d1bb5b70c0deebae93f5f |