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
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
ord_mediascout_client-0.0.49.tar.gz
(477.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ord_mediascout_client-0.0.49.tar.gz.
File metadata
- Download URL: ord_mediascout_client-0.0.49.tar.gz
- Upload date:
- Size: 477.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1abe14c576272f143bce28c1b991c5f4d7c7f767a1140e3b53da057e1312ecd7
|
|
| MD5 |
9915bbea247283e20e820cf7d527d6eb
|
|
| BLAKE2b-256 |
149dda23a76e760e6fd6af0dea893dd9a9336c1dbf72e7cd5a581d092da9d48d
|
File details
Details for the file ord_mediascout_client-0.0.49-py3-none-any.whl.
File metadata
- Download URL: ord_mediascout_client-0.0.49-py3-none-any.whl
- Upload date:
- Size: 55.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47654d703dcbbcb855b2fc14db18e864a310fb4998a99944f0170052863c4c4a
|
|
| MD5 |
da01c14332d5e0bf70e857a7cff878d9
|
|
| BLAKE2b-256 |
dd374fc4a324d169e9d3b76008c619eef48fd8c8c0c96921472d2e3fa2a9f431
|