{ "info": { "author": "Rodrigo Garcia", "author_email": "rgarcia@iecologia.unam.mx", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis" ], "description": "==========\nRoad Agent\n==========\n\nA Python framework for modeling mobile agents.\n\nCreate simulations of mobile agents, to be run on real-world maps. Like \nthe game of tag described in the docs, some of whose frames are shown below.\n\nThe Road Agent framework is distributed with two router alternatives:\n 1. NXRouter, wich uses shortest paths computed with the NetworkX library.\n 2. BRouter wich uses a BRouter server to query routes.\n\nNXRouter is simpler but easier to run. BRouter is very robust but it\nrequires the installation and running of the BRouter server which is a\njava program and maybe a long download, but routes are more realistic.\n\nRead the `full documentation`__.\n\n.. __: https://road-agent.readthedocs.io/\n\n\n.. image:: https://readthedocs.org/projects/road-agent/badge/?version=latest\n\n.. image:: https://badge.fury.io/py/road-agent.svg\n :target: https://badge.fury.io/py/road-agent\n\n.. image:: https://road-agent.readthedocs.io/en/latest/_images/frames.png\n\n\nShort example simulation\n========================\n\nThis is a veery short stub just to show the main feature of the agent\nclass, which is to navigate a map, in this case using routes computed\nusing `NetworkX`__'s *shortest_path*.\n\n.. __: https://networkx.github.io/\n\nTo create a simulation one must extend the Agent class with the behaviours under\nstudy. This example just does an empty extension.\n\nA more interesting simulation is included in this `Jupyter Notebook`__.\n\nMaybe this binder will work:\n\n.. image:: https://mybinder.org/badge_logo.svg\n :target: https://mybinder.org/v2/gl/rgarcia-herrera%2Froad-agent/master?filepath=doc%2Fjupyter_tutorial_NXRouter.ipynb\n\n.. __: https://road-agent.readthedocs.io/en/latest/jupyter_tutorial_BRouter.html\n\n::\n\n from LatLon import LatLon\n from road_agent import Agent\n from road_agent.router import NXRouter\n import osmnx as ox\n\n G = ox.graph_from_point((19.3838,-99.1758), distance=1000)\n router = NXRouter(G)\n r = router.get_route(points=points, speed=3)\n\n # extend Agent class to code behaviours specific to your mobile agent\n class Bike(Agent):\n pass\n\n point = LatLon(19.3881769, -99.1794493)\n dest = LatLon(19.3858363, -99.1767216)\n\n # create bike instance\n b = Bike(point=point, dest=dest)\n\n # create route using NetworkX\n b.update_route()\n\n # traverse agent's route, step by step\n for t in range(len(b.route)):\n b.step()\n\n\n\n\nInstallation\n============\n\nInstall library using pip::\n\n $ pip install road-agent\n\n\nInstall optional dependency: BRouter\n____________________________________\n\nAgents may use `BRouter`__ for routing, which can use several different profiles for\nrouting and is specially good creating routes for riding bikes. It is a java \nprogram, which runs in a web server. Here's how to install a local server.\n\n.. __: http://brouter.de/brouter/\n\nBRouters needs data files for its routing algorithm. Download `data\nfiles`__ (rd5) into segments4 dir. You may copy-paste these steps to\ndownload them all, but beware: it's about 5.2 gigabytes: ::\n\n mkdir -p ~/opt/brouter/segments4\n cd ~/opt/brouter/segments4\n wget https://gitlab.com/rgarcia-herrera/road-agent/raw/master/get_segments.sh\n wget https://gitlab.com/rgarcia-herrera/road-agent/raw/master/segments.txt\n chmod +x get_segments.sh\n ./get_segments.sh\n\n\n.. __: http://brouter.de/brouter/segments4/\n\n\nDownload and unzip BRouter (replace ~/opt/ with your preferred install\ndir and 1_4_11 with latest version)::\n\n cd ~/opt/brouter\n wget http://brouter.de/brouter_bin/brouter_1_4_11.zip\n unzip brouter_1_4_11.zip\n chmod +x ./standalone/server.sh\n\n\nRun server.sh to start BRouter server.\n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://gitlab.com/rgarcia-herrera/road-agent", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "road-agent", "package_url": "https://pypi.org/project/road-agent/", "platform": "", "project_url": "https://pypi.org/project/road-agent/", "project_urls": { "Homepage": "http://gitlab.com/rgarcia-herrera/road-agent" }, "release_url": "https://pypi.org/project/road-agent/1.0.1/", "requires_dist": [ "LatLon", "requests", "sklearn", "osmnx" ], "requires_python": "", "summary": "Object-oriented framework for modeling of mobile agents.", "version": "1.0.1" }, "last_serial": 5135364, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5b5536f3f8e3a7cc5968618e3b324ca9", "sha256": "29d496328aabd3f38182c5756c38b8d7983c4d7b61f89c13a8b8e2c609309fab" }, "downloads": -1, "filename": "road_agent-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "5b5536f3f8e3a7cc5968618e3b324ca9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17643, "upload_time": "2018-12-21T20:46:53", "url": "https://files.pythonhosted.org/packages/9c/ac/3c751ebd93fbc08c005cf5a6dbbb18addd6467068c66bb790e5b073afdac/road_agent-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99d49b796cde7e1dce4c1075e275a304", "sha256": "07e15ad932c427d57b2b80f91ad17e8d4b69a88f8f7e0dde39fc633aacbbfa4f" }, "downloads": -1, "filename": "road_agent-0.0.1.tar.gz", "has_sig": false, "md5_digest": "99d49b796cde7e1dce4c1075e275a304", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5002, "upload_time": "2018-12-21T20:46:55", "url": "https://files.pythonhosted.org/packages/83/eb/25c0523e4447c1446485267131bfeea95259b0c99b151549caa82a6d7cbb/road_agent-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c0f0361742d8b9b98458642520104449", "sha256": "b8432bfb16476594568446d0392c669f316f5d11bc2b23d33274ed8cfd5cc2fd" }, "downloads": -1, "filename": "road_agent-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "c0f0361742d8b9b98458642520104449", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17645, "upload_time": "2018-12-21T20:59:04", "url": "https://files.pythonhosted.org/packages/1f/af/1ce52f3fda6735b4e3356993c57c8fb03ff1329d8cbe02d6578ae7022d18/road_agent-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65133f55772240c00c959ef21de4440e", "sha256": "cb92f3f68ef613d99be534b708c2490508aa00e80ee9d0dee63f730cbbeea1e1" }, "downloads": -1, "filename": "road_agent-0.0.2.tar.gz", "has_sig": false, "md5_digest": "65133f55772240c00c959ef21de4440e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5007, "upload_time": "2018-12-21T20:59:05", "url": "https://files.pythonhosted.org/packages/4a/30/b994756f8120e87233022db89432132232087f6bba40c075e8ca9d094cf7/road_agent-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a3dfc72a9647dadfdf899ecfeb91c09b", "sha256": "f25634b89d38a213083a56659301e5e349c1cacd1b9247ca3a4c4238857692d6" }, "downloads": -1, "filename": "road_agent-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "a3dfc72a9647dadfdf899ecfeb91c09b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17651, "upload_time": "2018-12-21T21:01:24", "url": "https://files.pythonhosted.org/packages/7d/f6/9f7408fb968e2a11ccf36af475a7fee6e44bb48512f2a54f88911fac4d17/road_agent-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cdf5bb7e8439eb8a8c052b8e0c8d3e4", "sha256": "13f3538f693386e0a9a5425119aa5c1a0c63dba2b25c5ad7c412529f238d3fb4" }, "downloads": -1, "filename": "road_agent-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6cdf5bb7e8439eb8a8c052b8e0c8d3e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5022, "upload_time": "2018-12-21T21:01:25", "url": "https://files.pythonhosted.org/packages/44/fa/b3a27b9390fa0f3043d5bca1dc3faf839dc011123ee6c73ebb594a6c7526/road_agent-0.0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "225e31c0e8a1138105b704d3473b70bc", "sha256": "0474719313558867efed1eefea518d8bcbb2914cc924fa2a908ecf839b84869e" }, "downloads": -1, "filename": "road_agent-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "225e31c0e8a1138105b704d3473b70bc", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18219, "upload_time": "2018-12-25T03:25:18", "url": "https://files.pythonhosted.org/packages/5d/39/1bdee2abcfea10400a726ecaece5d3486b113a6bba1525541badf7d4b89e/road_agent-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34716d2d89e36897fe9ee9bd26dfdf3c", "sha256": "cbbe0f72326767929e3d0977b091568040f578bc0d0ec65623a6cb0973e792d6" }, "downloads": -1, "filename": "road_agent-1.0.0.tar.gz", "has_sig": false, "md5_digest": "34716d2d89e36897fe9ee9bd26dfdf3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2018-12-25T03:25:20", "url": "https://files.pythonhosted.org/packages/7b/9e/48efa7faa1c54d91023408ce1d054f0aa8943bb3f69a215dd6460f3d729b/road_agent-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5e58501d4dc18f7d5a54b0d8cebdff10", "sha256": "730f23209ffa8a202df24d0908bd61bf407e64aaee6046a94d2758bdb63188a8" }, "downloads": -1, "filename": "road_agent-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "5e58501d4dc18f7d5a54b0d8cebdff10", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18963, "upload_time": "2019-04-12T19:27:47", "url": "https://files.pythonhosted.org/packages/ba/14/c6fa416cac4706530611af62f230f31f73f422bb1a17a37c72a90d22bb14/road_agent-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe22b24de69c7f124c1c06877d878b62", "sha256": "c8c023a4edb3fa5a53503cf825fd402c444cb16d15ab4406098d301a51a46007" }, "downloads": -1, "filename": "road_agent-1.0.1.tar.gz", "has_sig": false, "md5_digest": "fe22b24de69c7f124c1c06877d878b62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6375, "upload_time": "2019-04-12T19:27:49", "url": "https://files.pythonhosted.org/packages/1b/19/a219df760a7de48262bf1383b8fc2cbe67d0c982e408c51d7622b380a5c6/road_agent-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e58501d4dc18f7d5a54b0d8cebdff10", "sha256": "730f23209ffa8a202df24d0908bd61bf407e64aaee6046a94d2758bdb63188a8" }, "downloads": -1, "filename": "road_agent-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "5e58501d4dc18f7d5a54b0d8cebdff10", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18963, "upload_time": "2019-04-12T19:27:47", "url": "https://files.pythonhosted.org/packages/ba/14/c6fa416cac4706530611af62f230f31f73f422bb1a17a37c72a90d22bb14/road_agent-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe22b24de69c7f124c1c06877d878b62", "sha256": "c8c023a4edb3fa5a53503cf825fd402c444cb16d15ab4406098d301a51a46007" }, "downloads": -1, "filename": "road_agent-1.0.1.tar.gz", "has_sig": false, "md5_digest": "fe22b24de69c7f124c1c06877d878b62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6375, "upload_time": "2019-04-12T19:27:49", "url": "https://files.pythonhosted.org/packages/1b/19/a219df760a7de48262bf1383b8fc2cbe67d0c982e408c51d7622b380a5c6/road_agent-1.0.1.tar.gz" } ] }