Skip to main content

Модуль для отправки запросов во ФСИН

Project description

Модуль для отправки запросов во ФСИН

Модуль используется для получения периодов военной службы

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

import datetime
from django.conf import settings
from edufsin.client import FsinClient

FSIN_WSDL_URL = 'http://smev-mvf.test.gosuslugi.ru:7777/gateway/services/SID0003162?wsdl'

fsin_client = FsinClient(
    FSIN_WSDL_URL,
    settings.SMEV_CERT_AND_KEY,
    settings.SMEV_CERT_AND_KEY,
    settings.SMEV_PRIVKEY_PASS,
    {}  # proxy
)
method = 'PutDocument'  # или 'GetDocumentResult'
request_params = {
    'servantEmail': 'ivanov@example.com',
    'senderOutDate': datetime.date.today().isoformat(),
    'MessageDate': datetime.date.today().isoformat,
    'CitizenAddress': '100001, Москва, Красная площадь, 1',
    'citizenLastname': 'Иванов',
    'citizenBirthdate': datetime.date(1987, 03, 03),
    'citizenFirstname': 'Иван',
    'citizenMiddlename': 'Иванович',
    'regionCode': 90,
    'SMEV_SENDER_NAME': 'Электронный детский сад',
    'SERVICE_CODE': 'SERVICE001',
    'FSIN_SMEV_NAME': 'ФСИН России',
    'FSIN_SMEV_CODE': 'FSIN01001',
    'SENDER_CODE': '3500000',
    'SMEV_SENDER_CODE': '658802',
}
result = fsin_client.request(method, request_params)
print(result.Message.Status)

Project details


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.

edufsin-1.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file edufsin-1.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for edufsin-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 326fff6c43743c67d250b0972681d2ffa84e4866f53d556f0de8cbd0d3a07ff9
MD5 bb799355b5b018810b7500175b844b8f
BLAKE2b-256 ea6a210b8e1f06e595ab36c8a5a183bcdbe08742a20b5000c87245508c9b8b15

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