Skip to main content

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/*

Metadata

Release files for ord-mediascout-client 0.0.75

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ord-mediascout-client 0.0.75
File Size Uploaded Provenance Actions
ord_mediascout_client-0.0.75.tar.gz 30.9 kB Without provenance Details for ord_mediascout_client-0.0.75.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ord-mediascout-client 0.0.75
File Interpreter ABI Platform Actions
ord_mediascout_client-0.0.75-py3-none-any.whl Python 3 none any Details for ord_mediascout_client-0.0.75-py3-none-any.whl

Total release size: 64.5 kB

Release files / ord_mediascout_client-0.0.75.tar.gz

Download URL ord_mediascout_client-0.0.75.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6638d391a8632015e991da232cb23c9b87c961fd335bd669f5db7b3d4e6a5bce
BLAKE2b-256 checksum
How to use checksums
57a2bf841adf8cf09657bbe8016261b3bb4a0969df83c496831b82696fb81335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / ord_mediascout_client-0.0.75-py3-none-any.whl

Download URL ord_mediascout_client-0.0.75-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6c5457ea698d996722489303be95dbd8f7bccdc188bfe469d00ae3bb8a68581
BLAKE2b-256 checksum
How to use checksums
f323af262a251d8c3af20bd215376cfd805e51b74c3088a93e3a0be1f82396fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for ord-mediascout-client 0.0.75

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.75 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page