Skip to main content

Клиенты для получения данных из источников внутри ГПН

Project description

🀣 🅖🅟🅝 🅲🅻🅸🅴🅽🆃🆂 🀣

Code Coverage

ГПН Клиенты предоставляющие интерфейс для работы с источниками данных.

Базовое использование

Конфигурация клиента на примере клиента NSI:

from gpn_clients.core.config import nsi_config


NSI_HOST: str = "https://test-nsi-host-228.com"
NSI_PORT: int = 443

# Конфигурация клиента
nsi_config.set_config(
    host=NSI_HOST,
    port=NSI_PORT,
)

После конфигурации клиента можно использовать его методы. Использование интерфейсов NSI Алгоритмов:

from pydantic import HttpUrl

from gpn_clients.clients.nsi.v1.algorithms import (
    AbstractAlgorithms,
    NSIAlgorithms,
)


nsi_algorithms: AbstractAlgorithms = NSIAlgorithms()

# Получение URL для списка алгоритмов
algorithms: HttpUrl = nsi_algorithms.get_all()

# Получение URL для алгоритма по его ID
algorithm: HttpUrl = nsi_algorithms.get_by_id(algorithm_id=1)

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

gpn_clients-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

gpn_clients-0.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gpn_clients-0.1.2.tar.gz.

File metadata

  • Download URL: gpn_clients-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.7 Darwin/22.1.0

File hashes

Hashes for gpn_clients-0.1.2.tar.gz
Algorithm Hash digest
SHA256 58a42c3a7a3495bbc54dd7f2c0016468aee3b6aeff373876250704746ba0db91
MD5 9e138a92ea710d57bbe6fcb88b957c50
BLAKE2b-256 3a450069bea387f8135e50636c72c00eb6a039d85273e55cb355ccc518c88080

See more details on using hashes here.

File details

Details for the file gpn_clients-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gpn_clients-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.7 Darwin/22.1.0

File hashes

Hashes for gpn_clients-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d07dcb9570ebfc54574a6cc81a53cd8a6ff88faf064354d9bd9ff7476ca7652
MD5 00c3cf2887d9355c2b4f4852773c93cf
BLAKE2b-256 d8620e512bc4654eebc82f0554ba8956fc711004ea6a4e659cc8ce4c8faecaf7

See more details on using hashes here.

Supported by

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