Skip to main content

A module for SymuFlow inside Python

Project description

| Overview | Download | Instalation | License | Contact |

Symupy

Documentation Status PyPI PyPI - Python Version

A Python API to control and interact with SymuFlow. Please find more information in the documentation

Overview

SymuPy is a python package to perform and deploy traffic simulations within the SymuVia ecosystem via python without much effort.

Download

You can download the latest version in this link or clone this repository at

git clone https://github.com/licit-lab/symupy.git

Installation

There are two possibilities to install this package.

  1. To get the last stable release. You can install this package via anaconda:
conda install -c licit-lab symupy

Note: We recommend to use conda as a default environment for installation. An alternative version is also available via PyPI. But in this version the simulation platform symuflow is not distributed and it is required to be installed externally.

  1. To retrieve the edge version with latest changes. You can install from the source code:

    pip install https://github.com/licit-lab/symupy/archive/master.zip
    

Usage

For more details check the documentation or this repository with examples:

License

This code is licensed via an MIT license

Contact

If you run into problems or bugs, please let us know by creating an issue in this repository.

History

1.0.0

  • SymuPy is now available as a conda package
  • Default microsimulation library SymyViaSymuFlow
  • Add MonitorApp feature in order to monitor your network
  • New commands added:
    • AlterRoute
    • ``
  • New command line interface available
    • symuflow
    • symymaster

0.5.1 (2021-02-15)

  • Now detection of symuflow is based on default installation of symuflow (via conda)
  • Pining python version

0.5.0 (2020-12-8)

  • XML buffer parser has a new implementation
  • Now you can trace vehicle data inside the connector via connector.vehicles
  • Observer patterns to handle vehicle list
  • Sorted frozen sets to handle subset of vehicles

0.4.2 (2020-11-09)

  • Refactoring configurator
  • Updating constants
  • Changing signature of connector

0.4.1 (2020-10-06)

  • Adding basic tutorials

0.4.0 (2020-10-05)

  • The API is in process to be cleaned.
  • Tests are now launched in pytest

0.3.4 (2020-06-04)

  • Fix bug retrieve text from simulator request

0.3.3 (2020-05-23)

  • Now get_total_travel_distance/get_total_travel_time support list of sensors

0.3.2 (2020-05-23)

  • Fix bug of Network Add Control Zone.

0.3.1 (2020-04-22)

  • Fix bug of Network Control Zone by introducing SymApplyControlZonesEx

0.3.0 (2020-04-22)

  • Now a configurator can be declared at the declaration of a Simulator via multiple parameters
  • You can launch a simulation by passing a string to run_simulation method or register_simulation method
  • State machine has been internally implemented. Some Fixes are required in order to
  • Filenames are now handled by the scenario.
  • Simulation ends now by calling the method SymUnloadCurrentNetworkEx

0.2.5 (2020-04-10)

  • Fixes an error when creating an instance of Simulator
  • Adds documentation to the Simulator class

0.2.4 (2020-04-09)

  • A basic state machine has been implemented to handle simulation status
  • Now documentation is available
  • A configurator has been added to handle execution of the functions SymRunNextStepLiteEx and SymRunNextStepEx

0.2.3 (2020-03-27)

  • Fix bug entries on add/ modify control zone
  • Fix bug now simulationtime accessible before starting simulation

0.2.2 (2020-03-25)

  • Fix bug on vehicle time creation

0.2.1 (2020-03-20)

  • Adding control zones
  • Creating vehicles with routes
  • Extract indicators such as TTT, TTD and SPD for zones
  • Makefile now tests distribution

0.2.0 (2020-02-20)

  • Standardizing python package
  • Adding documentation
  • Makefile is now available for testing, cleaning, building, installing

0.1.1 (2019-06-14)

  • Small fixes on basic interfacing

0.1.0 (2019-06-19)

  • First release on PyPI.

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

symupy-1.0.0.tar.gz (111.4 kB view details)

Uploaded Source

Built Distribution

symupy-1.0.0-py2.py3-none-any.whl (71.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file symupy-1.0.0.tar.gz.

File metadata

  • Download URL: symupy-1.0.0.tar.gz
  • Upload date:
  • Size: 111.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for symupy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 67089478ea44202776078ef467af274d91f8000762b59fc52e7ecba298bcde8f
MD5 9a4464edfcba455809c1b512a11bae9d
BLAKE2b-256 da108897eb32e5b979c39d2b29c2ff62a71a3152281c35dd05b9c7281a9acb02

See more details on using hashes here.

File details

Details for the file symupy-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: symupy-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for symupy-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4370e386a8c4eb32fcfca0a2b78ee52d0468cdaa55307fae8a893b8e15e572bd
MD5 de47fa132bf1721718e355c2ada8f4fc
BLAKE2b-256 73e6aca1db1f62be430bf9588d2e7d3ded6a73827dc64250359523c1c2bfad36

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