diariopy¶
diariopy is a Python interface to the diariodeobras.net
("Diário de Obras") platform — the Python counterpart of the R package
diario. It securely stores an API
token and wraps authenticated requests to retrieve projects, tasks, reports, and more.
Disclaimer
This package is a wrapper for the API provided by the Diário de Obras platform, which owns the data. Function and argument names are in English, but because the source API is in Portuguese, response keys and some data values are returned in Portuguese. Access requires a valid authentication token issued by the platform.
Installation¶
pip install diariopy
Quick start¶
import diariopy
# Store your API token securely (uses the system keyring)
diariopy.store_token("YOUR_API_TOKEN_HERE")
# Make authenticated requests
company = diariopy.get_company()
projects = diariopy.get_projects()
See Usage for more examples and the API reference for the full function list.
Links¶
- PyPI: https://pypi.org/project/diariopy/
- Source: https://github.com/StrategicProjects/diariopy
- R sibling package: https://github.com/StrategicProjects/diario