Metadata-Version: 2.1
Name: desmod
Version: 0.5.6
Summary: Discrete Event Simulation Modeling using SimPy
Home-page: https://desmod.readthedocs.io/
Author: Peter Grayson
Author-email: pete@jpgrayson.net
License: MIT
Download-URL: https://github.com/SanDisk-Open-Source/desmod
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Scientific/Engineering
Requires-Dist: simpy
Requires-Dist: six
Requires-Dist: pyvcd
Requires-Dist: PyYAML

desmod
======

The desmod package provides a pythonic environment for composing
Discrete Event Simulation MODels. The excellent `SimPy`__ package
provides the discrete event simulation kernel. Desmod provides
additional capabilities useful for composing, monitoring, configuring,
and simulating arbitrarily complex models.

__ https://simpy.readthedocs.io/en/latest/

.. image:: https://readthedocs.org/projects/desmod/badge/?version=latest
    :target: https://desmod.readthedocs.io/en/latest/
    :alt: Documentation Status

.. image:: https://travis-ci.org/SanDisk-Open-Source/desmod.svg?branch=master
    :target: https://travis-ci.org/SanDisk-Open-Source/desmod
    :alt: Build Status

.. image:: https://coveralls.io/repos/github/SanDisk-Open-Source/desmod/badge.svg?branch=master
    :target: https://coveralls.io/github/SanDisk-Open-Source/desmod?branch=master
    :alt: Code Coverage


Installation
------------

Desmod is available on PyPI and can be installed with `pip`::

    pip install desmod


Resources
---------

* `Documentation on ReadTheDocs <http://desmod.readthedocs.io/>`_
* `Questions and development discussion Google Group
  <https://groups.google.com/forum/?hl=en#!forum/desmod>`_
* `Source code and issue tracker on GitHub
  <https://github.com/SanDisk-Open-Source/desmod>`_
* `Package on PyPI <https://pypi.python.org/pypi/desmod>`_
* `Continuous integration on TravisCI
  <https://travis-ci.org/SanDisk-Open-Source/desmod>`_


MIT License

Copyright (c) 2016 Western Digital Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Changelog
=========

desmod-0.5.6 (2019-02-12)
-------------------------
* [NEW] PriorityPool for prioritized get/put requests
* [NEW] Queue.when_at_most() and when_at_least() events (#18)
* [NEW] Pool.when_at_most() and when_at_least() events (#18)
* [CHANGE] Remove Queue.when_new() event
* [CHANGE] Gas station example uses Pool/Pool.when_at_most() (#18)
* [FIX] Add API docs for desmod.pool

desmod-0.5.5 (2018-12-19)
-------------------------
* [NEW] Add Queue.when_not_full() and Pool.when_not_full()
* [NEW] Context manager protocol for Queue and Pool
* [CHANGE] Pool checks validity of get/put amounts
* [CHANGE] Pool getters/putters are not strictly FIFO
* [CHANGE] __repr__() for Queue and Pool
* [FIX] Pool no longer allows capacity to be exceeded
* [FIX] Pool and Queue trigger all getters and putters
* [FIX] Pool and Queue trigger from callbacks
* [FIX] Repair deprecated import from collections
* [FIX] Various Pool docstrings
* [FIX] Complete unit test coverage for Queue and Pool

desmod-0.5.4 (2018-08-20)
-------------------------
* [NEW] Add desmod.pool.Pool for modeling pool of resources

desmod-0.5.3 (2018-05-25)
-------------------------
* [FIX] Repair silent truncation of config override
* [CHANGE] Update dev requirements
* [CHANGE] Do not use bare except
* [CHANGE] Modernize travis-ci config

desmod-0.5.2 (2017-09-08)
-------------------------
* [FIX] Join worker processes in simulate_many()
* [FIX] Ensure PriorityQueue's items are heapified

desmod-0.5.1 (2017-04-27)
-------------------------
* [NEW] Add config_filter param to simulate_factors() (#14)
* [FIX] Use pyenv for travis builds

desmod-0.5.0 (2017-04-27)
-------------------------
* [NEW] Add desmod.dot.generate_dot()
* [NEW] Add "persist" option for tracers
* [NEW] Add SQLiteTracer
* [NEW] Add grocery store example
* [NEW] Support probing a Resource's queue
* [FIX] Stable sort order in DOT generation
* [CHANGE] Rearrange doc index page
* [CHANGE] Change examples hierarchy
* [CHANGE] Add DOT to Gas Station example
* [CHANGE] Tests and cleanup for desmod.probe

desmod-0.4.0 (2017-03-20)
-------------------------
* [CHANGE] meta.sim.index and meta.sim.special
* [CHANGE] Add meta.sim.workspace
* [FIX] Check simulate_many() jobs
* [CHANGE] Add named configuration categories and doc strings

desmod-0.3.3 (2017-02-28)
-------------------------
* [CHANGE] Make NamedManager.name() deps argument optional
* [FIX] Add test for desmod.config.parse_user_factors()
* [FIX] More testing for tracer.py

desmod-0.3.2 (2017-02-24)
-------------------------
* [FIX] Documentation repairs for desmod.config
* [FIX] Add tests for sim.config.file
* [FIX] Annotate no coverage line in test_dot.py
* [NEW] Add desmod.config.apply_user_config()
* [NEW] Support dumping JSON or Python config and result

desmod-0.3.1 (2017-02-10)
-------------------------
* [NEW] Add sim.vcd.start_time and sim.vcd.stop_time
* [NEW] Add unit tests for desmod.tracer
* [NEW] Dump configuration to file in workspace
* [NEW] Add unit tests for desmod.dot
* [FIX] Use component scope instead of id() for DOT nodes
* [NEW] Colored component hierarchy in DOT
* [FIX] Repair typo in fuzzy_match() exception

desmod-0.3.0 (2017-01-23)
-------------------------
* [CHANGE] Overhaul progress display
* [NEW] Flexible control of simulation stop criteria
* [FIX] Support progress notification on spawned processes
* [FIX] Remove dead path in test_simulation.py
* [FIX] Various doc repairs to SimEnvironment
* [CHANGE] Add t parameter to SimEnvironment.time()
* [CHANGE Parse unit in SimEnvironment.time()
* [NEW] Add desmod.config.fuzzy_match()
* [REMOVE] Remove desmod.config.short_special()
* [NEW] Add coveralls to travis test suite
* [NEW] Add flush() to tracing subsystem
* [CHANGE] Do not use tox with travis
* [NEW] Add Python 3.6 support in travis
* [FIX] Repair gas_station.py for Python 2

desmod-0.2.0 (2016-10-25)
-------------------------
* [CHANGE] simulate_factors() now has factors parameter
* [NEW] simulate() can suppress exceptions
* [FIX] simulate_factors() respects sim.workspace.overwrite
* [CHANGE] Update config with missing defaults at runtime

desmod-0.1.6 (2016-10-25)
-------------------------
* [NEW] Add env.time() and 'sim.now' result
* [FIX] Enter workspace directory before instantiating env
* [CHANGE] Use yaml.safe_dump()
* [FIX] Add dist to .gitignore
* [FIX] Squash warning in setup.cfg

desmod-0.1.5 (2016-10-17)
-------------------------
* [NEW] Add Queue.size and Queue.remaining properties (#9)
* [NEW] Trace Queue's remaining capacity (#10)
* [NEW] Add Queue.when_new() event (#11)

desmod-0.1.4 (2016-09-21)
-------------------------
* [NEW] Add desmod.simulation.simulate_many()
* [FIX] Repair various docstring typos
* [FIX] Disable progress bar for simulate_factors() on Windows
* [NEW] Add CHANGELOG.txt to long description in setup.py

desmod-0.1.3 (2016-07-28)
-------------------------
* [NEW] Cancelable Queue events
* [CHANGE] Connection errors now raise ConnectError
* [FIX] Update pytest-flake8 and flake8 dependencies (yet again)

desmod-0.1.2 (2016-07-26)
-------------------------
* [NEW] Add "sim.log.buffering" configuration
* [FIX] Repair unit tests (pytest-flake8 dependency)
* [NEW] New optional `Queue.name` attribute
* [FIX] Use `repr()` for exception string in result dict

desmod-0.1.1 (2016-07-14)
-------------------------
* [FIX] Using 'True' and 'False' in expressions from the command line
* [CHANGE] Improve simulation workspace handling (sim.workspace.overwrite)
* [CHANGE] Make some 'sim.xxx' configuration keys optional
* [NEW] Gas Station example in docs
* [NEW] Add this CHANGELOG.rst and History page in docs

desmod-0.1.0 (2016-07-06)
-------------------------
* Initial public release


