{"id":15195113,"url":"https://github.com/juliapomdp/quickpomdps","last_synced_at":"2025-07-19T18:06:39.325Z","repository":{"id":46450648,"uuid":"226259722","full_name":"JuliaPOMDP/quickpomdps","owner":"JuliaPOMDP","description":"Interface for defining discrete and continuous-space MDPs and POMDPs in python. Compatible with the POMDPs.jl ecosystem.","archived":false,"fork":false,"pushed_at":"2023-08-03T22:00:47.000Z","size":34,"stargazers_count":24,"open_issues_count":3,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-08T13:06:44.011Z","etag":null,"topics":["julia","markov-decision-processes","mdps","pomdps","python","reinforcement-learning"],"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/JuliaPOMDP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-06T06:18:24.000Z","updated_at":"2025-02-16T16:02:17.000Z","dependencies_parsed_at":"2025-02-13T00:31:28.988Z","dependency_job_id":"08a77b16-7ef4-4453-a4c4-a4b2b249c9a5","html_url":"https://github.com/JuliaPOMDP/quickpomdps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JuliaPOMDP/quickpomdps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaPOMDP%2Fquickpomdps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaPOMDP%2Fquickpomdps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaPOMDP%2Fquickpomdps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaPOMDP%2Fquickpomdps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaPOMDP","download_url":"https://codeload.github.com/JuliaPOMDP/quickpomdps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaPOMDP%2Fquickpomdps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265982631,"owners_count":23859571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["julia","markov-decision-processes","mdps","pomdps","python","reinforcement-learning"],"created_at":"2024-09-27T23:06:36.020Z","updated_at":"2025-07-19T18:06:39.279Z","avatar_url":"https://github.com/JuliaPOMDP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![test](https://github.com/JuliaPOMDP/quickpomdps/actions/workflows/ci.yml/badge.svg)](https://github.com/JuliaPOMDP/quickpomdps/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/JuliaPOMDP/quickpomdps/branch/master/graph/badge.svg?token=MCbhOtnJBj)](https://codecov.io/gh/JuliaPOMDP/quickpomdps)\n[![Gitter](https://badges.gitter.im/JuliaPOMDP/Lobby.svg)](https://gitter.im/JuliaPOMDP/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Slack](https://img.shields.io/badge/Chat%20on%20Slack-with%20%23pomdp--bridged-ff69b4)](https://julialang.org/slack/)\n\n# quickpomdps - python\n\n`quickpomdps` is a package to quickly define [[PO]MDPs](https://en.wikipedia.org/wiki/Partially_observable_Markov_decision_process) in Python.\nYou can use any of the solvers in [POMDPs.jl](https://github.com/JuliaPOMDP/POMDPs.jl) ecosystem, directly in Python.\n\nA hybrid continuous-discrete light-dark problem definition and QMDP solution (taken from [`examples/lightdark.py`](examples/lightdark.py)) looks like this:\n```python\nr = 60\nlight_loc = 10\n\ndef transition(s, a):\n    if a == 0:\n        return Deterministic(r+1)\n    else:\n        return Deterministic(min(max(s+a, -r), r))\n\ndef observation(s, a, sp):\n    return Normal(sp, abs(sp - light_loc) + 0.0001)\n\ndef reward(s, a, sp):\n    if a == 0:\n        return 100.0 if s == 0 else -100.0\n    else:\n        return -1.0\n\nm = QuickPOMDP(\n    states = range(-r, r+2),\n    actions = [-10, -1, 0, 1, 10],\n    discount = 0.95,\n    isterminal = lambda s: s \u003c -r or s \u003e r,\n    obstype = Float64,\n    transition = transition,\n    observation = observation,\n    reward = reward,\n    initialstate = Uniform(range(-r//2, r//2+1))\n)\n\nsolver = QMDPSolver()\npolicy = solve(solver, m)\n```\n\n## Installation\n\n```bash\npip install quickpomdps\n```\n`quickpomdps` uses the [pyjulia package](https://github.com/JuliaPy/pyjulia) which requires julia to be installed. We recommend using [juliaup](https://github.com/JuliaLang/juliaup) for this purpose.\n\nUpon invocation of `import quickpomds` in Python, all Julia dependencies will be installed if they are not already present.\nPlease note that, by default, the Julia dependencies are added to the *global* environment.\nIf you want to install these dependencies to a local environment instead, export the `JULIA_PROJECT` with the desired path as documented [here](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_PROJECT).\n\n\n## Development\n\nThis package uses [python-poetry](https://python-poetry.org/) for dependency\nmanagement. Thus, it may be installed via one of the may [ways supported by poetry](https://python-poetry.org/docs/cli/#add), for example,\n```bash\ngit clone https://github.com/JuliaPOMDP/quickpomdps\ncd quickpomdps\npoetry install\npoetry run python examples/lightdark.py\n```\n\n## Usage\n\nSee [`examples/`](examples/) and [`tests/`](tests/). Documentation can be found at the [QuickPOMDPs.jl](https://github.com/JuliaPOMDP/QuickPOMDPs.jl) and [POMDPs.jl](https://github.com/JuliaPOMDP/POMDPs.jl/blob/master/README.md) packages.\n\n## Help\n\nIf you need help, please ask on the [POMDPs.jl discussions page](https://github.com/JuliaPOMDP/POMDPs.jl/discussions)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliapomdp%2Fquickpomdps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliapomdp%2Fquickpomdps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliapomdp%2Fquickpomdps/lists"}