Skip to main content

gather_taxi_data

Gather all taxi data and store it.

Overview

The gather_taxi_data package is designed to gather data from various sources such as GPS trackers and web portals, and store the collected data in a database. This package includes modules for gathering data from specific sources and a main module to orchestrate the data gathering process.

Modules

gather_all_data

This module gathers data from all sources and stores it in the database.

Functions

  • async_gather_bwc_data(start_date: str, finish_date: str, destination: str) -> None

    • Asynchronously gathers data from the Black and White Cabs web portal.
  • async_gather_gps_data(start_date: str, finish_date: str, destination: str) -> None

    • Asynchronously gathers data from the GPS tracker web portal.
  • gather_all_data(start_date: str, finish_date: str, destination: str) -> None

    • Asynchronously gathers data from all sources and stores it in the database.
  • main() -> None

    • Entry point for the module. Parses command-line arguments and initiates the data gathering process.

Example Usage

python -m gather_taxi_data.gather_all_data --start_date 01/01/2023 --finish_date 07/01/2023 --destination /path/to/destination

This command will gather all taxi data from the specified start date to the finish date and store it in the specified destination directory.

Command-Line Arguments

  • --start_date: The start date for data gathering in DD/MM/YYYY format.
  • --finish_date: The finish date for data gathering in DD/MM/YYYY format.
  • --destination: The directory where the gathered data will be stored.

Example

To gather data from January 1, 2023, to January 7, 2023, and store it in the /data/taxi directory, use the following command:

python -m gather_taxi_data.gather_all_data --start_date 01/01/2023 --finish_date 07/01/2023 --destination /data/taxi

Make sure to replace /data/taxi with the actual path where you want to store the data.

gather_bwc_data

This module gathers data specifically from the Black and White Cabs web portal.

Functions

  • get_driver_list(browser: webdriver) -> List[Driver]

    • Retrieves a list of drivers from the web portal.
  • get_vehicle_list(browser: webdriver) -> List[Taxi]

    • Retrieves a list of vehicles from the web portal.
  • duration_to_seconds(duration: str) -> int

    • Converts a duration string to seconds.
  • get_shift_list(browser: webdriver, db_name: str, from_date: str, to_date: str) -> List[Shift]

    • Retrieves a list of shifts from the web portal.
  • get_job_list(browser: webdriver, db_name: str) -> List[Job]

    • Retrieves a list of jobs from the web portal.
  • gather_bwc_data(start_date: str, finish_date: str, destination: str) -> None

    • Gathers data from the Black and White Cabs web portal and stores it in the database.
  • main() -> None

    • Entry point for the module. Parses command-line arguments and initiates the data gathering process.

Example Usage

python -m gather_taxi_data.gather_bwc_data --start_date 01/01/2023 --finish_date 07/01/2023 --destination /path/to/destination

Metadata

Release files for gather-taxi-data 0.1.1

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

Source distribution (sdist)

Source distribution for gather-taxi-data 0.1.1
File Size Uploaded Provenance Actions
gather_taxi_data-0.1.1.tar.gz 5.8 kB Without provenance Details for gather_taxi_data-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gather-taxi-data 0.1.1
File Interpreter ABI Platform Actions
gather_taxi_data-0.1.1-py3-none-any.whl Python 3 none any Details for gather_taxi_data-0.1.1-py3-none-any.whl

Total release size: 12.5 kB

Release files / gather_taxi_data-0.1.1.tar.gz

Download URL gather_taxi_data-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31324999034d4cb2e448da18cd79db89fc46a6d711e17b8ec7c7afbf7a650316
BLAKE2b-256 checksum
How to use checksums
1d6455d4fe56ccaac5f04806e284f5fafa732e598607fb6008a641dfe0360830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0rc1

Release files / gather_taxi_data-0.1.1-py3-none-any.whl

Download URL gather_taxi_data-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
174ca874c7682c646b83363e76d2e9382f1cf8dd764ce0547ec71dfb2d5567e9
BLAKE2b-256 checksum
How to use checksums
6d98d3e2c767275e6b24f9c2d03dcd05ac40428509f6967425f2f5606285a9c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0rc1

Security for gather-taxi-data 0.1.1

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