{"id":26397301,"url":"https://github.com/thalesgroup/open-the-chests","last_synced_at":"2025-08-25T14:04:42.873Z","repository":{"id":246864005,"uuid":"818131822","full_name":"ThalesGroup/open-the-chests","owner":"ThalesGroup","description":"Open-the-chests is a training environment for event-patterns recognition.","archived":false,"fork":false,"pushed_at":"2024-07-11T16:02:44.000Z","size":1561,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T20:03:25.577Z","etag":null,"topics":["activity-recognition","artificial-intelligence","event-processing","gymnasium-environment","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThalesGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-21T07:03:24.000Z","updated_at":"2025-06-24T21:00:00.000Z","dependencies_parsed_at":"2024-07-05T16:01:52.279Z","dependency_job_id":"6a95f8cd-0104-4f5f-8d84-d7acdcb449ab","html_url":"https://github.com/ThalesGroup/open-the-chests","commit_stats":null,"previous_names":["thalesgroup/open-the-chests"],"tags_count":9,"template":false,"template_full_name":"ThalesGroup/template-project","purl":"pkg:github/ThalesGroup/open-the-chests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fopen-the-chests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fopen-the-chests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fopen-the-chests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fopen-the-chests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThalesGroup","download_url":"https://codeload.github.com/ThalesGroup/open-the-chests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fopen-the-chests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272077690,"owners_count":24869288,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["activity-recognition","artificial-intelligence","event-processing","gymnasium-environment","reinforcement-learning"],"created_at":"2025-03-17T12:17:19.706Z","updated_at":"2025-08-25T14:04:42.834Z","avatar_url":"https://github.com/ThalesGroup.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](./docs/otc_logo.png)\n\n# Open The Chests Project\n\nOpen the Chests is a game that mimics the problem of situation recognition in a concurrent event-based environment.\nThe player is confronted with a number of boxes, each one associated with a button. Pressing a button sometimes leads \nto a box opening, sometimes leads to nothing. The player also observes events being displayed on a screen.\nThe goal of the player is to deduce a set of interpretable event-based rules that allow them to determine with confidence \nat which moment the chests can be opened.\n\n## Quick Start\n\n**Open-the-Chests** is available on [Pypi](https://pypi.org/project/openthechests/). To install it and all its libraries simply run:\n```shell\npip install openthechests\n```\nThe environment is then ready to execute by simply running the `demo.py` file.\n\n## Running the Demo\nTo test the environment, download the `docs` and `demo.py` folders.\nThe `docs` folder contains examples of usage of the environment that are representative of its functioning as well as an example configuration for the demonstration. \nThe execution of the `demo.py` file generates an environment using a `YAML` configuration\nfile and allows you to interact with the environment manually.\nTo run the demonstration, use the following command:\n```shell\npython demo.py\n```\nThis will initialize the environment and start the interactive session where you can input actions to interact with the boxes.\n\n\n\n## Folder Structure\nThe `openthechests` module contains several folders and files of interest:\n```plaintext\nopenthechests/\n│\n├── docs/\n│   └── examples/\n│\n├── openthechests/\n│   └── src/\n│       ├── elements/\n│       ├── utils/\n│       ├── OpenTheChests.py\n│       └── OpenTheChestsGym.py\n│\n├── demo.py\n├── README.md\n└── requirements.txt\n\n```\n\n## Descriptions of Key Files and Folders\n\n- **docs/**: Contains documentation related to the project.\n  - **examples/**: Example configurations and usage of the environment.\n    - `__init__.py`: Initializes the examples module.\n\n- **openthechests/**: The main code for the environment.\n  - **src/**: Contains the main environment elements.\n    - **elements/**: Contains classes that define the environment elements.\n    - **utils/**: Contains useful functions used by other modules.\n    - `OpenTheChests.py`: Defines the core environment logic.\n    - `OpenTheChestsGym.py`: Provides the Gym interface for the environment.\n\n- `demo.py`: Demonstration script for the environment.\n\n- `requirements.txt`: Lists the dependencies required to run the project.\n\n- `third_parties_licences.txt`: Lists the licences to apply from the dependencies\n\n# Licence\n\nOpen-the-chests applies the 3-clauses BSD licence.\n\n# Citation\n\nIf you use this training environmenet please cite:\n\n```\n@inproceedings{stoy24otc,\n    author = {Stoyanova, Ivelina and Museux, Nicolas and Nguyen, Sao-Maï and Filliat, David},\n    title = {Open the {C}hests: An {E}nvironment for {A}ctivity {R}ecognition and {S}equential {D}ecision {P}roblems {U}sing {T}emporal {L}ogic},\n    year = {2024},\n    month = {October},\n    booktitle = {31st International Symposium on Temporal Representation and Reasoning},\n    address = {Montpellier, France},\n    location =\t{Dagstuhl, Germany},\n    publisher =\t{Schloss Dagstuhl -- Leibniz-Zentrum f{\\\"u}r Informatik},\n    series =\t{Leibniz International Proceedings in Informatics (LIPIcs)},\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesgroup%2Fopen-the-chests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesgroup%2Fopen-the-chests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesgroup%2Fopen-the-chests/lists"}