Tool for format-logistic control of reports sent to RosStat
Project description
РосСтат ФЛК [WIP]
Форматно-логический контроль отчетности РосСтата.
Документация описывающая формат отчетности и контроли - Приказ РосСтата от 28.10.2010 №372
Ранние наработки. Не для использования в продакшене! CHANGELOG
Установка
pip install rosstat-flc
Зависимости
Использование
from rosstat.flc import parse_schema, parse_report
schema = parse_schema('xml_schema.xml')
report = parse_report('xml_report.xml')
for result in schema.validate(report):
print(result)
# 30 XML Подраздел 2 стр. 201-202 гр.3 = "1" или "2", при хотя бы одной из стр. 105,106,108,109 гр.3 = 1; слева 1.0 <= справа 0.0 разница 1.0; обязательность да
# 60 XML Подраздел 2 стр. 203 гр. 3 = "1" или "2", или "3", или "4", или "5", или "6", при хотя бы одной из стр. 105,106,108,109 гр.3 = 1; слева 1.0 <= справа 0.0 разница 1.0; обязательность да
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rosstat-flc-0.4.4.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for rosstat_flc-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03806d020d8c436e2cb6e7d2f00335cfa48616b0c7b9cba2186019af6d856f0c |
|
MD5 | 6df1b8293f414864ca9bfcb254ff7f82 |
|
BLAKE2b-256 | 5d38042b401b59ca55cd2e36de230893c09af979b5aaeb34aecacd71014c78e7 |