Agilize


NameAgilize JSON
Version 0.0.10 PyPI version JSON
download
home_pagehttps://github.com/lucasrcezimbra/agilize
SummaryUnofficial client to access Agilize
upload_time2022-12-15 02:22:48
maintainer
docs_urlNone
authorLucas Rangel Cezimbra
requires_python
licenseLGPLv2
keywords agilize api client requests accounting finance
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Agilize

[![PyPI](https://badge.fury.io/py/Agilize.svg)](https://badge.fury.io/py/Agilize)
[![Coverage Status](https://coveralls.io/repos/github/lucasrcezimbra/agilize/badge.svg?branch=master)](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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lucasrcezimbra/agilize",
    "name": "Agilize",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "agilize,api,client,requests,accounting,finance",
    "author": "Lucas Rangel Cezimbra",
    "author_email": "lucas@cezimbra.tec.br",
    "download_url": "https://files.pythonhosted.org/packages/e7/1e/8e220468824d1664eb523448d9e0e230d6bf5d7665db60d2dc76ee49d248/Agilize-0.0.10.tar.gz",
    "platform": null,
    "description": "# Agilize\n\n[![PyPI](https://badge.fury.io/py/Agilize.svg)](https://badge.fury.io/py/Agilize)\n[![Coverage Status](https://coveralls.io/repos/github/lucasrcezimbra/agilize/badge.svg?branch=master)](https://coveralls.io/github/lucasrcezimbra/agilize?branch=master)\n\nUnofficial client to access [Agilize](https://www.agilize.com.br/).\n\n\n## Installation\n\n```bash\npip install agilize\n```\n\n\n## How to Use\n\nHigh-level API\n\n```python\nfrom agilize import Agilize, Competence\n\n\nagilize = Agilize(username='11222333000160', password='p4ssw0rd')\n\n\ncompanies = agilize.companies()\n\nfor company in companies:\n    print(company)\n\n\ncompany = companies[0]\n\ncompetence = Competence(year=2022, month=5)\nprolabore = company.prolabores.get(competence)\nprint(prolabore)\n\nwith open(f'./prolabore_{competence}.pdf', 'wb') as f:\n    f.write(prolabore.download())\n```\n\nLow-level API\n\n```python\nfrom agilize import Client\n\n\nagilize = Client(username='11222333000160', password='p4ssw0rd')\n\nprint(agilize.info)\ncompany_id = agilize.info['party']['companies'][0]['__identity']\n\nagilize.prolabores(company_id=company_id, year=2022)\n```\n\n\n\n## Contributing\nContributions are welcome, feel free to open an Issue or Pull Request.\n\nPull requests must be for the `develop` branch.\n\n```bash\ngit clone https://github.com/lucasrcezimbra/agilize\ncd agilize\ngit checkout develop\npython -m venv .venv\npip install -r requirements-dev.txt\npre-commit install\npytest\n```\n",
    "bugtrack_url": null,
    "license": "LGPLv2",
    "summary": "Unofficial client to access Agilize",
    "version": "0.0.10",
    "split_keywords": [
        "agilize",
        "api",
        "client",
        "requests",
        "accounting",
        "finance"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5101c8282a765b438e2edaa67877ca1d",
                "sha256": "55f3a477724d3bf386bb6902e50fa2ced2914ab5d88414f5e1cfc24883fee4c1"
            },
            "downloads": -1,
            "filename": "Agilize-0.0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5101c8282a765b438e2edaa67877ca1d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15467,
            "upload_time": "2022-12-15T02:22:46",
            "upload_time_iso_8601": "2022-12-15T02:22:46.615346Z",
            "url": "https://files.pythonhosted.org/packages/e3/a1/9527733f9c24de8eebff5857f302c60f812813abbc0f2ed08cb5b62ef021/Agilize-0.0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "d090118095ab491ac2b50dbcac46e84c",
                "sha256": "b73cb46501588b08a2bea3a41c46ee9ac8f709ff2ee41342570e959046b9d819"
            },
            "downloads": -1,
            "filename": "Agilize-0.0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "d090118095ab491ac2b50dbcac46e84c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16511,
            "upload_time": "2022-12-15T02:22:48",
            "upload_time_iso_8601": "2022-12-15T02:22:48.024715Z",
            "url": "https://files.pythonhosted.org/packages/e7/1e/8e220468824d1664eb523448d9e0e230d6bf5d7665db60d2dc76ee49d248/Agilize-0.0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-15 02:22:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "lucasrcezimbra",
    "github_project": "agilize",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "agilize"
}
        
Elapsed time: 0.02831s