{"id":38524094,"url":"https://github.com/simpx/simpy","last_synced_at":"2026-01-17T06:45:10.998Z","repository":{"id":54690769,"uuid":"216530191","full_name":"simpx/simpy","owner":"simpx","description":"fork from https://gitlab.com/team-simpy/simpy.git","archived":false,"fork":false,"pushed_at":"2021-02-03T18:01:30.000Z","size":1007,"stargazers_count":34,"open_issues_count":4,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-12T20:04:15.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simpx.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-21T09:32:59.000Z","updated_at":"2025-11-12T09:47:05.000Z","dependencies_parsed_at":"2022-08-14T00:10:25.235Z","dependency_job_id":null,"html_url":"https://github.com/simpx/simpy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simpx/simpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fsimpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fsimpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fsimpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fsimpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpx","download_url":"https://codeload.github.com/simpx/simpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fsimpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T06:45:09.120Z","updated_at":"2026-01-17T06:45:10.993Z","avatar_url":"https://github.com/simpx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SimPy\n=====\n\nSimPy is a process-based discrete-event simulation framework based on standard\nPython. Processes in SimPy are defined by Python `generator`__ functions and\ncan, for example, be used to model active components like customers, vehicles or\nagents.  SimPy also provides various types of shared resources to model\nlimited capacity congestion points (like servers, checkout counters and\ntunnels).\n\nSimulations can be performed “as fast as possible”, in real time (wall clock\ntime) or by manually stepping through the events.\n\nThough it is theoretically possible to do continuous simulations with SimPy, it\nhas no features that help you with that. Also, SimPy is not really required for\nsimulations with a fixed step size and where your processes don’t interact with\neach other or with shared resources.\n\nThe `documentation`__ contains a `tutorial`__, `several guides`__ explaining key\nconcepts, a number of `examples`__ and the `API reference`__.\n\nSimPy is released under the MIT License. Simulation model developers are\nencouraged to share their SimPy modeling techniques with the SimPy community.\nPlease post a message to the `SimPy mailing list`__.\n\nThere is an introductory talk that explains SimPy’s concepts and provides some\nexamples: `watch the video`__ or `get the slides`__.\n\n__ http://docs.python.org/3/glossary.html#term-generator\n__ https://simpy.readthedocs.io/en/latest/\n__ https://simpy.readthedocs.io/en/latest/simpy_intro/index.html\n__ https://simpy.readthedocs.io/en/latest/topical_guides/index.html\n__ https://simpy.readthedocs.io/en/latest/examples/index.html\n__ https://simpy.readthedocs.io/en/latest/api_reference/index.html\n__ https://groups.google.com/forum/#!forum/python-simpy\n__ https://www.youtube.com/watch?v=Bk91DoAEcjY\n__ http://stefan.sofa-rockers.org/downloads/simpy-ep14.pdf\n\n\nA Simple Example\n----------------\n\nOne of SimPy's main goals is to be easy to use. Here is an example for a simple\nSimPy simulation: a *clock* process that prints the current simulation time at\neach step:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import simpy\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e def clock(env, name, tick):\n    ...     while True:\n    ...         print(name, env.now)\n    ...         yield env.timeout(tick)\n    ...\n    \u003e\u003e\u003e env = simpy.Environment()\n    \u003e\u003e\u003e env.process(clock(env, 'fast', 0.5))\n    \u003cProcess(clock) object at 0x...\u003e\n    \u003e\u003e\u003e env.process(clock(env, 'slow', 1))\n    \u003cProcess(clock) object at 0x...\u003e\n    \u003e\u003e\u003e env.run(until=2)\n    fast 0\n    slow 0\n    fast 0.5\n    slow 1\n    fast 1.0\n    fast 1.5\n\n\nInstallation\n------------\n\nSimPy requires Python 2.7, 3.2, PyPy 2.0 or above.\n\nYou can install SimPy easily via `pip \u003chttp://pypi.python.org/pypi/pip\u003e`_:\n\n.. code-block:: bash\n\n    $ pip install -U simpy\n\nYou can also download and install SimPy manually:\n\n.. code-block:: bash\n\n    $ cd where/you/put/simpy/\n    $ python setup.py install\n\nTo run SimPy’s test suite on your installation, execute:\n\n.. code-block:: bash\n\n    $ py.test --pyargs simpy\n\n\nGetting started\n---------------\n\nIf you’ve never used SimPy before, the `SimPy tutorial`__ is a good starting\npoint for you. You can also try out some of the `Examples`__ shipped with\nSimPy.\n\n__ https://simpy.readthedocs.io/en/latest/simpy_intro/index.html\n__ https://simpy.readthedocs.io/en/latest/examples/index.html\n\n\nDocumentation and Help\n----------------------\n\nYou can find `a tutorial`__, `examples`__, `topical guides`__ and an `API\nreference`__, as well as some information about `SimPy and its history`__ in\nour `online documentation`__. For more help, contact the `SimPy mailing\nlist`__. SimPy users are pretty helpful. You can, of course, also dig through\nthe `source code`__.\n\nIf you find any bugs, please post them on our `issue tracker`__.\n\n__ https://simpy.readthedocs.io/en/latest/simpy_intro/index.html\n__ https://simpy.readthedocs.io/en/latest/examples/index.html\n__ https://simpy.readthedocs.io/en/latest/topical_guides/index.html\n__ https://simpy.readthedocs.io/en/latest/api_reference/index.html\n__ https://simpy.readthedocs.io/en/latest/about/index.html\n__ https://simpy.readthedocs.io/\n__ mailto:python-simpy@googlegroups.com\n__ https://bitbucket.org/simpy/simpy/src\n__ https://bitbucket.org/simpy/simpy/issues?status=new\u0026status=open\n\nEnjoy simulation programming in SimPy!\n\n\nPorts and comparable libraries\n------------------------------\n\nReimplementations of SimPy and libraries similar to SimPy are available in the\nfollowing languages:\n\n- C#: `SimSharp \u003chttps://github.com/abeham/SimSharp\u003e`_ (written by Andreas Beham)\n- Julia: `SimJulia \u003chttps://github.com/BenLauwens/SimJulia.jl\u003e`_\n- R: `Simmer \u003chttps://github.com/r-simmer/simmer\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpx%2Fsimpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpx%2Fsimpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpx%2Fsimpy/lists"}