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/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.

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.21.0.tar.gz (92.6 kB view details)

Uploaded Source

Built Distribution

sumolib-1.21.0-py3-none-any.whl (149.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sumolib-1.21.0.tar.gz
  • Upload date:
  • Size: 92.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sumolib-1.21.0.tar.gz
Algorithm Hash digest
SHA256 a7e4ccf880a26ee2536b2b20daaa26b466376909dcb113e23c65d09d4a6de7aa
MD5 13f23e104490580ed088b1ba65594b1d
BLAKE2b-256 c3d43061372d03d3be8608d574e29328f319634fde6358f27621b89e6f8e607d

See more details on using hashes here.

File details

Details for the file sumolib-1.21.0-py3-none-any.whl.

File metadata

  • Download URL: sumolib-1.21.0-py3-none-any.whl
  • Upload date:
  • Size: 149.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sumolib-1.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 039ab9498ab63ea788dcfeed966ef744d7756fdacd53668ef7868ccf9aa216e1
MD5 9d69b7085852aff8dc2288ea9d40e208
BLAKE2b-256 26a43cd2c6a5243b7790fbe4376e77671fdbe0ea6c37934013701b424d181b44

See more details on using hashes here.

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