Skip to main content

Пример использования

1. Указываем параметры конфигурации

config_params = {
    'wsdl_url': settings.WSDL_URL,
    'certificate_path': cert_path,
    'private_key_path': key_path,
    'private_key_pass': settings.SMEV_PRIVKEY_PASS,
    'smev_sender_code': settings.SMEV_SENDER_CODE,
    'smev_sender_name': settings.SMEV_SENDER_NAME,
    'recipient_code': settings.RECIPIENT_CODE,
    'recipient_name': settings.RECIPIENT_NAME,
    'system_okato': settings.OKATO,
    'region_code': settings.REGION_CODE
}
config = FmsRequestConfig(**config_params)

2. Создаем экземпляр клиента

fms_client = FmsClient(config)

3. Выполняем запрос с параметрами

request_params = {
    'RequestIdRef': fms_request.request_id_ref,
    'OriginRequestIdRef': fms_request.origin_request_id_ref,
    'taskId': fms_request.query_id,
}
result = fms_client.request('getResult', request_params)

4. Пример обработки результата

err_code = result.MessageData.AppData.errorCode
error_description = result.MessageData.AppData.errorDescription

if err_code == FmsClient.RC_REQUEST_ACCEPTED:
    last_sent = fms_client.last_sent
    last_received = fms_client.last_received
    # save results
else:
    # process error

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

edufms-0.3.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file edufms-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: edufms-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for edufms-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f013b0e3588e9a5c3b72638a3d65ad5310b6a1669698e301884accb84f641890
MD5 d8702f7c94128c7750bfd408fb0b591d
BLAKE2b-256 02440ef8545eb7a4e1960c6f736839a22be307c108a7ec075b48f0ffef611cbe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.8

1 file

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