Unofficial client to access Agilize
Project description
Agilize
Unofficial client to access Agilize.
Installation
pip install agilize
How to Use
High-level API
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
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.
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
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
Agilize-0.0.10.tar.gz
(16.5 kB
view hashes)
Built Distribution
Agilize-0.0.10-py3-none-any.whl
(15.5 kB
view hashes)