rosstat-flc


Namerosstat-flc JSON
Version 0.6.3 PyPI version JSON
download
home_pagehttps://github.com/WoolenSweater/rosstat_flc
SummaryTool for format-logistic control of reports sent to RosStat
upload_time2020-09-22 09:25:42
maintainer
docs_urlNone
authorNikita Ryabinin
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # РосСтат ФЛК

Инструмент для форматно-логического контроля отчетности, отправляемой в РосСтат.

Документация описывающая формат отчетности и контроли - [Приказ РосСтата от 28.10.2010 №372](http://www.consultant.ru/document/cons_doc_LAW_115689/)

Список изменений - [CHANGELOG](CHANGELOG.md)

## Установка
```bash
pip install rosstat-flc
```

## Зависимости
* [PLY](https://github.com/dabeaz/ply)
* [lxml](https://github.com/lxml/lxml)

## Использование
```python
from rosstat.flc import parse_schema, parse_report

schema = parse_schema('xml_schema.xml')
report = parse_report('xml_report.xml', skip_warns=True)

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; обязательность да
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/WoolenSweater/rosstat_flc",
    "name": "rosstat-flc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Nikita Ryabinin",
    "author_email": "ryabinin.ne@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ce/bd/a339aa059d32365a80ea7be1a8c5622afe9811d3e06ba4469335e23a0fc1/rosstat-flc-0.6.3.tar.gz",
    "platform": "",
    "description": "# \u0420\u043e\u0441\u0421\u0442\u0430\u0442 \u0424\u041b\u041a\n\n\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e-\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u0432 \u0420\u043e\u0441\u0421\u0442\u0430\u0442.\n\n\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438 - [\u041f\u0440\u0438\u043a\u0430\u0437 \u0420\u043e\u0441\u0421\u0442\u0430\u0442\u0430 \u043e\u0442 28.10.2010 \u2116372](http://www.consultant.ru/document/cons_doc_LAW_115689/)\n\n\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 - [CHANGELOG](CHANGELOG.md)\n\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n```bash\npip install rosstat-flc\n```\n\n## \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438\n* [PLY](https://github.com/dabeaz/ply)\n* [lxml](https://github.com/lxml/lxml)\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n```python\nfrom rosstat.flc import parse_schema, parse_report\n\nschema = parse_schema('xml_schema.xml')\nreport = parse_report('xml_report.xml', skip_warns=True)\n\nfor result in schema.validate(report):\n    print(result)\n\n# 30 XML \u041f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b 2 \u0441\u0442\u0440. 201-202 \u0433\u0440.3 = \"1\" \u0438\u043b\u0438 \"2\", \u043f\u0440\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0442\u0440. 105,106,108,109 \u0433\u0440.3 = 1; \u0441\u043b\u0435\u0432\u0430 1.0 <= \u0441\u043f\u0440\u0430\u0432\u0430 0.0 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 1.0; \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0430\n# 60 XML \u041f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b 2 \u0441\u0442\u0440. 203 \u0433\u0440. 3 = \"1\" \u0438\u043b\u0438 \"2\", \u0438\u043b\u0438 \"3\", \u0438\u043b\u0438 \"4\", \u0438\u043b\u0438 \"5\", \u0438\u043b\u0438 \"6\", \u043f\u0440\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0442\u0440. 105,106,108,109 \u0433\u0440.3 = 1; \u0441\u043b\u0435\u0432\u0430 1.0 <= \u0441\u043f\u0440\u0430\u0432\u0430 0.0 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 1.0; \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0430\n```\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Tool for format-logistic control of reports sent to RosStat",
    "version": "0.6.3",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "93cdbb8228473d2cf48bf47e28cf5a0c",
                "sha256": "16739e72dfc021c5ff3ffe279471b05e7f691aa8b2651792f25f48dbc9c51fef"
            },
            "downloads": -1,
            "filename": "rosstat_flc-0.6.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93cdbb8228473d2cf48bf47e28cf5a0c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 21770,
            "upload_time": "2020-09-22T09:25:41",
            "upload_time_iso_8601": "2020-09-22T09:25:41.529756Z",
            "url": "https://files.pythonhosted.org/packages/13/f7/2d39bd24992c57ea7627bba2c2b1b4819f7278053993c59d96550d885af9/rosstat_flc-0.6.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "8ff71751114ee68833be55fb952627d3",
                "sha256": "7e7114450f21f6f911e2cbabea8d0ac40dd622b34bfed22cad862401a4ab922f"
            },
            "downloads": -1,
            "filename": "rosstat-flc-0.6.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8ff71751114ee68833be55fb952627d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 17270,
            "upload_time": "2020-09-22T09:25:42",
            "upload_time_iso_8601": "2020-09-22T09:25:42.694787Z",
            "url": "https://files.pythonhosted.org/packages/ce/bd/a339aa059d32365a80ea7be1a8c5622afe9811d3e06ba4469335e23a0fc1/rosstat-flc-0.6.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-22 09:25:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "WoolenSweater",
    "error": "Could not fetch GitHub repository",
    "lcname": "rosstat-flc"
}
        
Elapsed time: 0.15138s