Skip to main content

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=5)
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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Deploy

This project is in Pypi.

In order to deploy this project, the first action needed is bump the version in the file setup.py.

Then, you will have to install build with this command:

python3 -m pip install --upgrade build

After this, you will need to build the project with this command:

python3 -m build

Then, you will have to install twine with this command:

python3 -m pip install --upgrade twine.

Finally, you can deploy in pypi using this command:

python3 -m twine upload dist/*

The credentials needed for this command are stored in 1Password by the key Admin-Pypi.

Contact

Project Link: https://github.com/cobliteam/cobli-libi

Metadata

Release files for cobli-libi 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cobli-libi 0.0.6
File Size Uploaded Provenance Actions
cobli-libi-0.0.6.tar.gz 4.3 kB Without provenance Details for cobli-libi-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cobli-libi 0.0.6
File Interpreter ABI Platform Actions
cobli_libi-0.0.6-py3-none-any.whl Python 3 none any Details for cobli_libi-0.0.6-py3-none-any.whl

Total release size: 9.2 kB

Release files / cobli-libi-0.0.6.tar.gz

Download URL cobli-libi-0.0.6.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
759cffb78d9f843304c3421ee086efe6ff31c0e07d8ac19f762c89f511b751f3
BLAKE2b-256 checksum
How to use checksums
5bbe50d87be855684e6fd84876934b8c59ab82ff8af0f080577e7f58e67a9af8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / cobli_libi-0.0.6-py3-none-any.whl

Download URL cobli_libi-0.0.6-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a9f16d8565c5ddd6d6912812e5f982f6118a57434a1968f86b90d8a443d280f
BLAKE2b-256 checksum
How to use checksums
c3e416d0620f8f0526fe6731072d82982786c082afe338dbc568e82f4f8350d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Security for cobli-libi 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page