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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662d0a624da0b22fffb7e302106010cbf304b7ec237f3e60fca5dbb1a9f35321 |
|
MD5 | 83d4f8b14efa6183ce423dd20fb1b04b |
|
BLAKE2b-256 | db183dcfabd8dc2d3fff9716193c8b635abc86058e4e4bba28208b544fea609e |
Close
Hashes for ord_mediascout_client-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55454fdb0231238c2cbf3734e582f0c3ac26ca2416df11d2877cc2a4e3dc7288 |
|
MD5 | a0b206269cb54501ca22b3f80b5d6153 |
|
BLAKE2b-256 | 4f740b569191320d1e2d22e157332b9789e33f2d40a05e5a5e52905f10d866e2 |