Skip to main content

Simple Python interface for a traffic simulator: SUMO

Project description

sumo-tasks-pipeline


Run SUMO simulators as easy as possible!

The package sumo-docker-pipeline enables you to run a traffic simulator SUMO efficiently and to interact with Python easily.

Example

Just three lines to run a SUMO simulation.

from sumo_tasks_pipeline import LocalSumoController, SumoConfigObject
from pathlib import Path

path_config = Path().cwd().parent.joinpath('tests/resources/config_complete')
sumo_controller = LocalSumoController(sumo_command='/usr/local/bin/sumo')
sumo_config = SumoConfigObject(scenario_name='example', path_config_dir=path_config, config_name='grid.sumo.cfg')
sumo_result_obj = sumo_controller.start_job(sumo_config)

See examples directory to know more.

Features

  • Possible to resume your tasks. The feature is useful when you run simulators on Google Colab.
  • Possible to save SUMO simulation result to Google Cloud Storage (GCS). No worries even when your local storage is small.
  • Possible to run SUMO simulations with multiple machines if you use GCS as the storage backend.

Requirement

  • python > 3.5
  • docker
  • docker-compose

Install

Pull the image (or build of a docker image with SUMO)

The existing image is on the Dockerhub.

docker pull kensukemi/sumo-ubuntu18

If you prefer to build with yourself, you run the following command.

docker-compose build 

Install a python package

make install

For developer

pytest tests

license and credit

The source code is licensed MIT. The website content is licensed CC BY 4.0.

@misc{sumo-docker-pipeline,
  author = {Kensuke Mitsuzawa},
  title = {sumo-docker-pipeline},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/Kensuke-Mitsuzawa/sumo_docker_pipeline}},
}

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

sumo-tasks-pipeline-3.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

sumo_tasks_pipeline-3.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file sumo-tasks-pipeline-3.0.tar.gz.

File metadata

  • Download URL: sumo-tasks-pipeline-3.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.8 Linux/5.4.0-92-generic

File hashes

Hashes for sumo-tasks-pipeline-3.0.tar.gz
Algorithm Hash digest
SHA256 906676369bd2ac0d290db6a126d3331d94f96fa004891ab1e313f6bd944e2302
MD5 7df4f96a07ae191014a25026c4050e5c
BLAKE2b-256 14f4f365789757a1c4ee6a60e7dc21b3ea24e9f1c5ef09cdc54eeb4d4a72811c

See more details on using hashes here.

File details

Details for the file sumo_tasks_pipeline-3.0-py3-none-any.whl.

File metadata

  • Download URL: sumo_tasks_pipeline-3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.8 Linux/5.4.0-92-generic

File hashes

Hashes for sumo_tasks_pipeline-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 662de0ac426fb93916198d8513e6145822d7bf76f0f933fb6b50914f6e9538ae
MD5 90febab06b6743d4b849483190972bf9
BLAKE2b-256 c7632bf4d1daf7cfe39dda370af32c25537e5ada4dd720cca28a191066d428af

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