Metadata-Version: 2.1
Name: payroll-1c
Version: 0.3.1
Summary: Parse 1C Payrolls XML file
Home-page: https://github.com/odoo-ru/payroll-1c
License: MIT
Author: Dmitry Voronin
Author-email: dimka665@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Repository, https://github.com/odoo-ru/payroll-1c
Description-Content-Type: text/markdown

1C Payrolls
===========
[![PyPI](https://img.shields.io/pypi/pyversions/payroll-1c.svg)](https://pypi.org/project/payroll-1c/ "Latest version on PyPI")
[![codecov](https://codecov.io/gh/voronind/payroll-1c/branch/master/graph/badge.svg)](https://codecov.io/gh/voronind/payroll-1c "Coverage")

Parse 1C Payrolls XML file

Install
-------
```commandline
pip install payroll_1c
```

Usage
-----

```python
>>> from payroll_1c import Payroll1C
>>> payroll = Payroll1C('1C-payroll.xml')
>>> payroll = Payroll1C(fromstring='<СчетаПК>...</СчетаПК>')
>>> payroll['ДатаФормирования'] == '2022-01-01'
>>> for employee in payroll:
...    print(employee['Фамилия'])
...    print(employee['Сумма'])
```

Development
-----------
We need installed `pyenv` and `pipenv`.
```console
git clone git@github.com:odoo-ru/payroll-1c.git

cd payroll-1c
pipenv install --dev
```

Run tests:
```console
pipenv run fulltest
```

