Agilize-0.0.9
توضیحات
Unofficial client to access Agilize
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | Agilize-0.0.9 |
| نام | Agilize |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lucas Rangel Cezimbra |
| ایمیل نویسنده | lucas@cezimbra.tec.br |
| آدرس صفحه اصلی | https://github.com/lucasrcezimbra/agilize |
| آدرس اینترنتی | https://pypi.org/project/Agilize/ |
| مجوز | LGPLv2 |
# Agilize
[](https://badge.fury.io/py/Agilize)
[](https://coveralls.io/github/lucasrcezimbra/agilize?branch=master)
Unofficial client to access [Agilize](https://www.agilize.com.br/).
## Installation
```bash
pip install agilize
```
## How to Use
High-level API
```python
from agilize import Agilize, Competence
agilize = Agilize(username='11222333000160', password='p4ssw0rd')
companies = agilize.companies()
for company in companies:
print(company)
company = companies[0]
competence = Competence(year=2022, month=5)
prolabore = company.prolabores.get(competence)
print(prolabore)
with open(f'./prolabore_{competence}.pdf', 'wb') as f:
f.write(prolabore.download())
```
Low-level API
```python
from agilize import Client
agilize = Client(username='11222333000160', password='p4ssw0rd')
print(agilize.info)
company_id = agilize.info['party']['companies'][0]['__identity']
agilize.prolabores(company_id=company_id, year=2022)
```
## Contributing
Contributions are welcome, feel free to open an Issue or Pull Request.
Pull requests must be for the `develop` branch.
```bash
git clone https://github.com/lucasrcezimbra/agilize
cd agilize
git checkout develop
python -m venv .venv
pip install -r requirements-dev.txt
pre-commit install
pytest
```
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| - | requests |
نحوه نصب
نصب پکیج whl Agilize-0.0.9:
pip install Agilize-0.0.9.whl
نصب پکیج tar.gz Agilize-0.0.9:
pip install Agilize-0.0.9.tar.gz