Skip to main content

Tools for the Transport Data Commons

Project description

"pytest" workflow status badge Codecov.io test coverage status badge

Installation

Install from PyPI using e.g.: pip install transport-data

You will likely also want to:

Usage

Use the tools via the command-line interface (CLI):

$ tdc --help
Usage: tdc [OPTIONS] COMMAND [ARGS]...

  Transport Data Commons tools.

Options:
  --help  Show this message and exit.

Commands:
  adb       Asian Development Bank (ADB) provider.
  config    Manipulate configuration.
  estat     Eurostat (ESTAT) provider.
  iamc      Demonstrate IAMC structure generation.
  jrc       EU Joint Research Center (JRC) provider.
  org       Information about the TDCI per se.
  proto     TDC prototype debugging.
  registry  Manipulate the registry repo.

Each subcommand has its own –help.

Prototype data

Use:

$ tdc adb fetch --all --go
$ tdc adb convert TAS
$ tdc jrc fetch --all --go
$ tdc jrc convert --all

Development

  • Install from source:

    • Clone the repository, e.g. git clone git@github.com:transport-data/tools.git.

    • In the cloned directory, run pip install .[tests] —this will also install dependencies for development and testing.

  • Use Pytest: pytest

  • Code style and practices:

    • Version as vYY.M.D using the current date.

    • Use black.

    • Exchange MaintainableArtefacts between modules.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transport-data-23.5.11.tar.gz (100.2 kB view hashes)

Uploaded Source

Built Distribution

transport_data-23.5.11-py3-none-any.whl (105.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page