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 Actions
edufms-0.3.0-py3-none-any.whl Python 3 none any Details for edufms-0.3.0-py3-none-any.whl

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

Security for edufms 0.3.0

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.3.0 This release

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