# 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](https://test.pypi.org/project/sumolib/) 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:
```python
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](https://sumo.dlr.de/docs/Tools/Sumolib.html). For a list of available
functions take a look at the [pydoc generated documentation](http://sumo.dlr.de/pydoc/sumolib.html)
or simply browse the [source code here](https://github.com/eclipse/sumo/tree/main/tools/sumolib).
## 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](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](https://github.com/eclipse/sumo).
## License
sumolib is released under the Eclipse Public License 2.0 (EPL-2.0).
Raw data
{
"_id": null,
"home_page": "https://sumo.dlr.de/docs/Tools/Sumolib.html",
"name": "sumolib",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "traffic simulation traci sumo",
"author": "DLR and contributors",
"author_email": "sumo@dlr.de",
"download_url": "https://files.pythonhosted.org/packages/c3/d4/3061372d03d3be8608d574e29328f319634fde6358f27621b89e6f8e607d/sumolib-1.21.0.tar.gz",
"platform": null,
"description": "# sumolib\n\nsumolib is a set of python modules for working with SUMO networks, simulation output and other simulation artifacts.\n\n## Installation\n\nInstall sumolib by simply executing:\n```pip install sumolib```\n\nA [daily version](https://test.pypi.org/project/sumolib/) is also available in TestPyPI:\n```pip install -i https://test.pypi.org/simple/ sumolib```\n\n## Getting Started\n\nTo use sumolib in your Python code, import the `sumolib` module. The following code snippet shows a basic example\nof how to load a network file and retrieve the coordinate of a node:\n\n```python\nimport sumolib\n\n# Parse the network\nnet = sumolib.net.readNet(\"myNet.net.xml\")\n\n# Retrieve the coordinate of a node based on its ID\nprint(net.getNode(\"myNodeID\").getCoord())\n```\n\n## Documentation\n\nThe sumolib documentation is available online at\n[https://sumo.dlr.de/docs/Tools/Sumolib.html](https://sumo.dlr.de/docs/Tools/Sumolib.html). For a list of available\nfunctions take a look at the [pydoc generated documentation](http://sumo.dlr.de/pydoc/sumolib.html)\nor simply browse the [source code here](https://github.com/eclipse/sumo/tree/main/tools/sumolib).\n\n\n## Contributing\n\nIf you find a bug in sumolib or have a suggestion for a new feature, please report it on the SUMO issue tracker at\n[https://github.com/eclipse/sumo/issues](https://github.com/eclipse/sumo/issues). If you would like to contribute code\nto sumolib, please submit a pull request to the SUMO repository at\n[https://github.com/eclipse/sumo](https://github.com/eclipse/sumo).\n\n## License\n\nsumolib is released under the Eclipse Public License 2.0 (EPL-2.0).\n",
"bugtrack_url": null,
"license": "EPL-2.0",
"summary": "Python helper modules to read networks, parse output data and do other useful stuff related to the traffic simulation Eclipse SUMO",
"version": "1.21.0",
"project_urls": {
"Download": "https://sumo.dlr.de/download",
"Homepage": "https://sumo.dlr.de/docs/Tools/Sumolib.html"
},
"split_keywords": [
"traffic",
"simulation",
"traci",
"sumo"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "26a43cd2c6a5243b7790fbe4376e77671fdbe0ea6c37934013701b424d181b44",
"md5": "9d69b7085852aff8dc2288ea9d40e208",
"sha256": "039ab9498ab63ea788dcfeed966ef744d7756fdacd53668ef7868ccf9aa216e1"
},
"downloads": -1,
"filename": "sumolib-1.21.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9d69b7085852aff8dc2288ea9d40e208",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 149857,
"upload_time": "2024-10-09T20:40:46",
"upload_time_iso_8601": "2024-10-09T20:40:46.672530Z",
"url": "https://files.pythonhosted.org/packages/26/a4/3cd2c6a5243b7790fbe4376e77671fdbe0ea6c37934013701b424d181b44/sumolib-1.21.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c3d43061372d03d3be8608d574e29328f319634fde6358f27621b89e6f8e607d",
"md5": "13f23e104490580ed088b1ba65594b1d",
"sha256": "a7e4ccf880a26ee2536b2b20daaa26b466376909dcb113e23c65d09d4a6de7aa"
},
"downloads": -1,
"filename": "sumolib-1.21.0.tar.gz",
"has_sig": false,
"md5_digest": "13f23e104490580ed088b1ba65594b1d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 92634,
"upload_time": "2024-10-09T20:40:50",
"upload_time_iso_8601": "2024-10-09T20:40:50.630002Z",
"url": "https://files.pythonhosted.org/packages/c3/d4/3061372d03d3be8608d574e29328f319634fde6358f27621b89e6f8e607d/sumolib-1.21.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-09 20:40:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sumolib"
}