Skip to main content

A devkit for working with recorded and annotated train ride data from Deutsche Bahn.

Project description

RailLabel Providerkit

image image

A library for annotation providers of raillabel-formatted data.

Documentation

Read the full documentation on Github pages.

Installation

You can install the latest released version directly from PyPI.

pip install raillabel-providerkit

To set up a development environment, clone the project and install it into a virtual environment.

# Note that contributors should clone via ssh instead as GitHub does not allow pushing via https!
git clone https://github.com/dbinfrago/raillabel-providerkit
cd raillabel-providerkit
python -m venv .venv

source .venv/bin/activate.sh  # for Linux / Mac
.venv\Scripts\activate  # for Windows

pip install -U pip pre-commit
pip install -e '.[docs,test]'
pre-commit install

Command Line Usage

You can use the validation functionality directly from the command line. To get a list of supported arguments, use this command:

python -m raillabel_providerkit --help

To simply validate all scenes in a folder and output any detected issues to an output folder (in .json format), use this command:

python -m raillabel_providerkit /path/to/folder_containing_scenes/ /path/to/output_folder

If you want to output in .csv format instead of .json format, you can use this command:

python -m raillabel_providerkit /path/to/folder_containing_scenes/ /path/to/output_folder --use-csv --no-json

Note that you need to provide a project-specific ontology (in .yaml format) to make use of the ontology validation functionality! You can point raillabel_providerkit at it like this:

python -m raillabel_providerkit /path/to/folder_containing_scenes/ /path/to/output_folder --ontology /path/to/project-ontology.yaml

Contributing

We'd love to see your bug reports and improvement suggestions! Please take a look at our guidelines for contributors for details.

Licenses

This project is compliant with the REUSE Specification Version 3.0.

Copyright DB InfraGO AG, licensed under Apache 2.0 (see full text in LICENSES/Apache-2.0.txt)

Dot-files are licensed under CC0-1.0 (see full text in LICENSES/CC0-1.0.txt)

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

raillabel_providerkit-1.4.0.tar.gz (208.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raillabel_providerkit-1.4.0-py3-none-any.whl (267.2 kB view details)

Uploaded Python 3

File details

Details for the file raillabel_providerkit-1.4.0.tar.gz.

File metadata

  • Download URL: raillabel_providerkit-1.4.0.tar.gz
  • Upload date:
  • Size: 208.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for raillabel_providerkit-1.4.0.tar.gz
Algorithm Hash digest
SHA256 0b6e5e19608f8cefe5854be834f5612ec409847d2eb2c4678edd17678c0566de
MD5 92ba5354b7b5942681baccedf20e48d0
BLAKE2b-256 a8bbb26fde19280fae573b9279a3c7ad67064bf00a9341f34a3e5590b37432ff

See more details on using hashes here.

File details

Details for the file raillabel_providerkit-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for raillabel_providerkit-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 725aa1a9f5203959382f939d59ee78aba7da1cb40693adab12c8a6b71ecd170b
MD5 ace984bb75ac901fbd58164e12033715
BLAKE2b-256 190f28e5f0aeb140ecade6b06885e1a0b4c6acf8a1e9abec054657b20317cad8

See more details on using hashes here.

Supported by

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