{ "info": { "author": "Harold Fellermann", "author_email": "harold.fellermann@newcastle.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering :: Chemistry", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Scientific/Engineering :: Physics" ], "description": "# stocal\n\nA python framework for regular and rule-based stochastic simulations.\n\n\n## What is Stocal?\n\nStocal is a framework for stochastic simulation of continuous\ntime Markov processes (also known as [Gillespie simulations](https://en.wikipedia.org/wiki/Gillespie_algorithm)). \n\nFeatures of stocal:\n* support for reactions of any order\n* support for unique and periodic (deterministic) events\n* support for time-dependent reaction rates\n* support for rules that generate novel reactions on the fly\n* support for complex chemical states\n\nStocal works with python version 2.7 as well as version 3.5.\n\n\n### Basic Usage\n\nRunning a simple stochastic simulation is straight forward:\n```python\nimport stocal\n\n# Define a stochastic process\nprocess = stocal.Process([\n\tstocal.MassAction({'A': 2}, {'A2': 1}, 1.0),\n\tstocal.MassAction({'A2': 1}, {'A': 2}, 10.0),\n\tstocal.Event({}, {'A': 100}, 0.0, frequency=10.0),\n])\n\n# Sample a stochastic trajectory of the process\ninitial_state = {}\ntrajectory = process.sample(initial_state, tmax=100) :\nfor dt, transitions in trajectory:\n\tprint trajectory.time, trajectory.state['A2']\n```\n\n\n### API / Tutorial\n\nA tutorial on how to use stocal can be found [here](https://github.com/harfel/stocal/wiki).\nVarious usage examples are provided in stocal/examples.\nThe package API is thoroughly documented and can be accessed through\npydoc. The behavior of stocal is specified via tests. The test suite\ncan be run with `python setup.py test`.\n\n\n### Installation\n\nThe latest stable release of stocal is available from the python package index:\n```shell\npip install stocal\n```\nThe development version can be obtained from github using the following commands:\n```shell\ngit clone https://github.com/harfel/stocal.git\ncd stocal\ngit checkout develop\nsudo python setup.py install\n```\n\n\n## Issue Reporting and Contributing\n\nPlease post any issues that might occur with stocal on the\ngithub issue\ntracker.\nIf you are interested in contributing to stocal, pull requests\nand any other inquiries will be dealt with as soon as possible.\n\n\n## License\n\nStocal is distributed under the MIT Software license.\n(c) 2018 Harold Fellermann\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/harfel/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "stocal", "package_url": "https://pypi.org/project/stocal/", "platform": "", "project_url": "https://pypi.org/project/stocal/", "project_urls": { "Homepage": "https://github.com/harfel/" }, "release_url": "https://pypi.org/project/stocal/1.2/", "requires_dist": null, "requires_python": "", "summary": "simple rule-based stochastic simulation", "version": "1.2" }, "last_serial": 4156407, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "22f591cc9b55be880a1e4abe57818e09", "sha256": "0fea6e9b4b62943c84fb6f949ce93573e385ff0c39e8833dc1d714f1e7325f89" }, "downloads": -1, "filename": "stocal-1.0.1.tar.gz", "has_sig": false, "md5_digest": "22f591cc9b55be880a1e4abe57818e09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13758, "upload_time": "2018-02-05T15:43:29", "url": "https://files.pythonhosted.org/packages/8e/28/bd39f055de3ad50a7a2e7c48899ad464ee59290ccae948c53482d1cdaaa5/stocal-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "5ec5e161a6ef82beecf55c550be07ed9", "sha256": "03d73f5c32c7f62d1fd7bd1a80b55737367c5fa813cf9e273c79e76dcdf263dc" }, "downloads": -1, "filename": "stocal-1.0.2.tar.gz", "has_sig": false, "md5_digest": "5ec5e161a6ef82beecf55c550be07ed9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26303, "upload_time": "2018-02-07T13:16:27", "url": "https://files.pythonhosted.org/packages/4c/8a/34b75dd515595ebc0edf12139869a62cc5e55f3d07f04f5372dd11fca03f/stocal-1.0.2.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "36a0b8630de1a5ada0032decc4a70f44", "sha256": "b51d4e47d1fd84d11de1190837dbf6d7f0ba21b0c18dace7e7ecbb1dba9d8343" }, "downloads": -1, "filename": "stocal-1.1.tar.gz", "has_sig": false, "md5_digest": "36a0b8630de1a5ada0032decc4a70f44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29661, "upload_time": "2018-03-08T21:36:55", "url": "https://files.pythonhosted.org/packages/80/6d/26593a9d6f83bd7827e412aa10a680c2d7fdd3699c293e350f1128cc87cd/stocal-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "e2cab49804947ba9ab91cc9c25aa45ad", "sha256": "ca0a428e71b827c0636cda497677e54e19ad2bad2e4942f05476d462f137f5a9" }, "downloads": -1, "filename": "stocal-1.2.tar.gz", "has_sig": false, "md5_digest": "e2cab49804947ba9ab91cc9c25aa45ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68833, "upload_time": "2018-08-10T11:08:28", "url": "https://files.pythonhosted.org/packages/34/f9/d7d1ad61fb49cabab1ff717c0f0509d5eb2b9fdbd8a5ebec9255aa2cc885/stocal-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e2cab49804947ba9ab91cc9c25aa45ad", "sha256": "ca0a428e71b827c0636cda497677e54e19ad2bad2e4942f05476d462f137f5a9" }, "downloads": -1, "filename": "stocal-1.2.tar.gz", "has_sig": false, "md5_digest": "e2cab49804947ba9ab91cc9c25aa45ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68833, "upload_time": "2018-08-10T11:08:28", "url": "https://files.pythonhosted.org/packages/34/f9/d7d1ad61fb49cabab1ff717c0f0509d5eb2b9fdbd8a5ebec9255aa2cc885/stocal-1.2.tar.gz" } ] }