Generate dataframes from Cobli public API
Project description
cobli-libi
About the project
This package generates dataframes using Cobli's public API as data source.
It was created to enhance the experience of anyone who needs easy-to-use data from his/her Cobli fleet.
Data available in this package:
- Devices
- Checklists
- Proofs of conclusion
- Incidents
- Costs
- Vehicle performance
- Driver performance
Built with
Getting Started
Prerequisites
- Python 3.7 or higher
Installation
pip install cobli-libi
Usage
from datetime import datetime, timedelta
from libi.dataframes import get_devices_data, get_pocs_data, \
get_costs_data, get_incidents_data, get_checklist_data, \
get_driver_performance_data, get_vehicle_performance_data
fleet_data = {'Fleet Name': '<fleet_api_key>', 'Another Fleet': '<another_fleet_api_key'}
start_datetime = datetime.now() - timedelta(days=30)
end_datetime = datetime.now()
devices = get_devices_data(fleet_data)
checklists = get_checklist_data(fleet_data)
proofs_of_conclusion = get_pocs_data(fleet_data, start_datetime, end_datetime)
costs = get_costs_data(fleet_data, start_datetime, end_datetime)
incidents = get_incidents_data(fleet_data, start_datetime, end_datetime)
vehicle_performance = get_vehicle_performance_data(fleet_data, start_datetime, end_datetime)
driver_performance = get_driver_performance_data(fleet_data, start_datetime, end_datetime)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Contact
Project Link: https://github.com/cobliteam/cobli-libi
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cobli_libi-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 296579a101981d2a66cdc7f62233854f3d31e912df9179e88eeb9966e9652926 |
|
MD5 | b8c0d4e742e441d4c40027ed4e6a2a69 |
|
BLAKE2b-256 | b5194a1158990133f9dbb8cb7a59930d9e072f3ad8affe274d458c8a2d32926b |