Модуль для отправки запросов во ФСИН
Модуль используется для получения периодов военной службы
Пример использования
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)
Metadata
Release files for edufsin 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| edufsin-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / edufsin-1.2.0-py3-none-any.whl
| Download URL | edufsin-1.2.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
326fff6c43743c67d250b0972681d2ffa84e4866f53d556f0de8cbd0d3a07ff9
|
|
BLAKE2b-256 checksum How to use checksums |
ea6a210b8e1f06e595ab36c8a5a183bcdbe08742a20b5000c87245508c9b8b15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|