Skip to main content

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


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.51.tar.gz (91.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ord_mediascout_client-0.0.51-py3-none-any.whl (106.1 kB view details)

Uploaded Python 3

File details

Details for the file ord_mediascout_client-0.0.51.tar.gz.

File metadata

  • Download URL: ord_mediascout_client-0.0.51.tar.gz
  • Upload date:
  • Size: 91.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for ord_mediascout_client-0.0.51.tar.gz
Algorithm Hash digest
SHA256 d851a24efbcbe5d56838b9c369b3d190e6b5ed035048ccc26cbc4f41a6b4b7ba
MD5 f80e65b69cd568f58a8ece2826171839
BLAKE2b-256 4dc49966d58eeee74c24720b5012822c28f811c8d2b3375ba014e03f17c357b4

See more details on using hashes here.

File details

Details for the file ord_mediascout_client-0.0.51-py3-none-any.whl.

File metadata

File hashes

Hashes for ord_mediascout_client-0.0.51-py3-none-any.whl
Algorithm Hash digest
SHA256 64f792d58268eefdeae36f5ae17ad18261bd0b3b5320cebd0d6848cb07cbde7a
MD5 48794df725f5acd4bc7595a457e231fa
BLAKE2b-256 f24c8dc5210d02a1c0cba555e844b5624a9cd355e38a754ed7e1a5444d44b386

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page