{"id":28134,"library":"reasoning-gym","title":"reasoning-gym","description":"A library of procedural dataset generators for training reasoning models. Current version 0.1.25, with frequent releases (multiple per month). Requires Python >=3.10.","status":"active","version":"0.1.25","language":"python","source_language":"en","source_url":"https://github.com/open-thought/reasoning-gym","tags":["reasoning","datasets","procedural-generation","training"],"install":[{"cmd":"pip install reasoning-gym","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"used for symbolic math in some generators","package":"sympy","optional":false},{"reason":"used for array operations","package":"numpy","optional":false}],"imports":[{"note":"Top-level import does not expose submodules directly.","wrong":"from reasoning_gym import countdown","symbol":"countdown","correct":"from reasoning_gym.games.countdown import countdown"}],"quickstart":{"code":"import reasoning_gym\nfrom reasoning_gym.games.countdown import countdown\n\n# Create a dataset generator\ngen = countdown.CountdownGenerator()\n# Generate n items\nitems = list(gen.generate(num_items=5))\nfor item in items:\n    print(item)","lang":"python","description":"Import and use a generator from the games submodule."},"warnings":[{"fix":"Use `from reasoning_gym.games.countdown import countdown` instead of `import reasoning_gym.games.countdown`.","message":"Submodules like games, algebra, etc. are not imported at the top level. You must import from the full path (e.g., reasoning_gym.games.countdown).","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to the latest documentation or GitHub README for the correct import path.","message":"Some older generator classes have been renamed or moved. Check the CHANGELOG if you get ImportError.","severity":"deprecated","affected_versions":"<=0.1.23"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `import reasoning_gym.games.countdown` or `from reasoning_gym.games.countdown import countdown`.","cause":"Submodules are not automatically imported; you need an explicit import of the submodule.","error":"AttributeError: module 'reasoning_gym' has no attribute 'games'"},{"fix":"Ensure you have installed reasoning-gym via `pip install reasoning-gym` and are using Python >=3.10.","cause":"Library not installed or wrong environment.","error":"ModuleNotFoundError: No module named 'reasoning_gym'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}