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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df749d82c90e52f6b89ffb76092aeb1fa4950d6649f723b52bb670e89ea4079 |
|
MD5 | a62e49c953a46db810f3659f46624d0b |
|
BLAKE2b-256 | 502458ab404d8dc0ed3764d874388da3b81e79709adb5ea4c323f42575f075cc |
Close
Hashes for ord_mediascout_client-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286a88f1551f5f1ddbb74f0cacf250da89149641d657a05f5104a5658008eaa6 |
|
MD5 | c034a714154c1a3c9e2c1c136ddcf9f4 |
|
BLAKE2b-256 | 0adf8cb3466c9111d82ce604540cea3e64b1efdcd03923a33dd5ef14d59d683b |