Skip to main content

Python helper modules to read networks, parse output data and do other useful stuff related to the traffic simulation Eclipse SUMO

Project description

sumolib

sumolib is a set of python modules for working with SUMO networks, simulation output and other simulation artifacts.

Installation

Install sumolib by simply executing: pip install sumolib

A daily version is also available in TestPyPI: pip install -i https://test.pypi.org/simple/ sumolib

Getting Started

To use sumolib in your Python code, import the sumolib module. The following code snippet shows a basic example of how to load a network file and retrieve the coordinate of a node:

import sumolib

# Parse the network
net = sumolib.net.readNet("myNet.net.xml")

# Retrieve the coordinate of a node based on its ID
print(net.getNode("myNodeID").getCoord())

Documentation

The sumolib documentation is available online at https://sumo.dlr.de/docs/Tools/Sumolib.html. For a list of available functions take a look at the pydoc generated documentation or simply browse the source code here.

Contributing

If you find a bug in sumolib or have a suggestion for a new feature, please report it on the SUMO issue tracker at https://github.com/eclipse-sumo/sumo/issues. If you would like to contribute code to sumolib, please submit a pull request to the SUMO repository at https://github.com/eclipse-sumo/sumo.

License

sumolib is released under the Eclipse Public License 2.0 (EPL-2.0).

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

sumolib-1.26.0.tar.gz (138.9 kB view details)

Uploaded Source

Built Distribution

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

sumolib-1.26.0-py2.py3-none-any.whl (233.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sumolib-1.26.0.tar.gz.

File metadata

  • Download URL: sumolib-1.26.0.tar.gz
  • Upload date:
  • Size: 138.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sumolib-1.26.0.tar.gz
Algorithm Hash digest
SHA256 eedf9cbcea46ac9db6a2a46ee74f85edbf4384de1f6b73bf73550642ba6044c1
MD5 3ed49e39033b7787747c63b358731753
BLAKE2b-256 cf0336bbd7b9f6120e39d9e4f6865186ab8195f7b5a3833c37fc8c24df1d23fe

See more details on using hashes here.

File details

Details for the file sumolib-1.26.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sumolib-1.26.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 233.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sumolib-1.26.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 189011b50db451b44f0ffa3a49e7cefd6250573f0e239fba540e1883ad910eaf
MD5 1332dfc650468fcedd7b882ab5e27378
BLAKE2b-256 922d44832bb6dec541d7d0d79ce6cf50f4213dcb862f4a7e192c9828841f7d84

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