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.50.tar.gz
(152.8 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.50.tar.gz.
File metadata
- Download URL: ord_mediascout_client-0.0.50.tar.gz
- Upload date:
- Size: 152.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
761d19ff0ee20a484f7b6247390c00005de8e8621681f34ac6584ef9d3aaae9f
|
|
| MD5 |
78eef644e99e719cbf94e14c662bc099
|
|
| BLAKE2b-256 |
1185ee4fe227340a189d76815d32bba8842eb568c5cf962a9104221c144f6332
|
File details
Details for the file ord_mediascout_client-0.0.50-py3-none-any.whl.
File metadata
- Download URL: ord_mediascout_client-0.0.50-py3-none-any.whl
- Upload date:
- Size: 172.6 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 |
27533a948cd9eb2e2094844702abc0c5e844f7216ef5ea1924c2d552c105e7c1
|
|
| MD5 |
a306652c54a482a8e896ca540e97f1a3
|
|
| BLAKE2b-256 |
14e104b5e5f6094973882ba67ebe1752e5602ab8afc4750ef936c1f4d6eaadde
|