{"id":28753471,"url":"https://github.com/google-deepmind/dm_env","last_synced_at":"2025-12-12T01:02:45.865Z","repository":{"id":37450926,"uuid":"195823304","full_name":"google-deepmind/dm_env","owner":"google-deepmind","description":"A Python interface for reinforcement learning environments","archived":false,"fork":false,"pushed_at":"2022-12-23T10:49:57.000Z","size":107,"stargazers_count":344,"open_issues_count":4,"forks_count":43,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-09-17T22:20:55.788Z","etag":null,"topics":["api","deep-learning","interface","machine-learning","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-deepmind.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-08T13:58:50.000Z","updated_at":"2024-09-04T03:48:31.000Z","dependencies_parsed_at":"2023-01-30T18:16:32.964Z","dependency_job_id":null,"html_url":"https://github.com/google-deepmind/dm_env","commit_stats":null,"previous_names":["google-deepmind/dm_env","deepmind/dm_env"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/google-deepmind/dm_env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fdm_env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fdm_env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fdm_env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fdm_env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-deepmind","download_url":"https://codeload.github.com/google-deepmind/dm_env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fdm_env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"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":["api","deep-learning","interface","machine-learning","python","reinforcement-learning"],"created_at":"2025-06-17T00:40:14.626Z","updated_at":"2025-12-12T01:02:45.762Z","avatar_url":"https://github.com/google-deepmind.png","language":"Python","readme":"# `dm_env`: The DeepMind RL Environment API\n\n![PyPI Python version](https://img.shields.io/pypi/pyversions/dm-env)\n![PyPI version](https://badge.fury.io/py/dm-env.svg)\n\nThis package describes an interface for Python reinforcement learning (RL)\nenvironments. It consists of the following core components:\n\n*   `dm_env.Environment`: An abstract base class for RL environments.\n*   `dm_env.TimeStep`: A container class representing the outputs of the\n    environment on each time step (transition).\n*   `dm_env.specs`: A module containing primitives that are used to describe the\n    format of the actions consumed by an environment, as well as the\n    observations, rewards, and discounts it returns.\n*   `dm_env.test_utils`: Tools for testing whether concrete environment\n    implementations conform to the `dm_env.Environment` interface.\n\nPlease see the documentation [here][api_docs] for more information about the\nsemantics of the environment interface and how to use it. The [examples]\nsubdirectory also contains illustrative examples of RL environments implemented\nusing the `dm_env` interface.\n\n## Installation\n\n`dm_env` can be installed from PyPI using `pip`:\n\n```bash\npip install dm-env\n```\n\nNote that from version 1.4 onwards, we support Python 3.6+ only.\n\nYou can also install it directly from our GitHub repository using `pip`:\n\n```bash\npip install git+git://github.com/deepmind/dm_env.git\n```\n\nor alternatively by checking out a local copy of our repository and running:\n\n```bash\npip install /path/to/local/dm_env/\n```\n\n[api_docs]: docs/index.md\n[examples]: examples/\n\n## Citing\n\nTo cite this repository:\n\n```bibtex\n@misc{dm_env2019,\n  author={Alistair Muldal and\n      Yotam Doron and\n      John Aslanides and\n      Tim Harley and\n      Tom Ward and\n      Siqi Liu},\n  title={dm\\_env: A Python interface for reinforcement learning environments},\n  year={2019},\n  url={http://github.com/deepmind/dm_env}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Fdm_env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-deepmind%2Fdm_env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Fdm_env/lists"}