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

Metadata

Release files for edufms 0.3.0

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

Built distribution (wheel)

Table of built distributions (wheels) for edufms 0.3.0
File Interpreter ABI Platform
edufms-0.3.0-py3-none-any.whl Python 3 none any Details

Release files / edufms-0.3.0-py3-none-any.whl

Download URL edufms-0.3.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f013b0e3588e9a5c3b72638a3d65ad5310b6a1669698e301884accb84f641890
BLAKE2b-256 checksum
How to use checksums
02440ef8545eb7a4e1960c6f736839a22be307c108a7ec075b48f0ffef611cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.8

1 release 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