{"id":20900,"library":"actions-python-core","title":"Actions Python Core","description":"A core library for building GitHub Actions in Python, providing utilities for interacting with the Actions runtime (inputs, outputs, commands, path manipulation). Current version 0.1.3, pre-1.0 with frequent breaking changes.","status":"active","version":"0.1.3","language":"python","source_language":"en","source_url":"https://github.com/actions-python/toolkit","tags":["github-actions","actions","ci-cd"],"install":[{"cmd":"pip install actions-python-core","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"'core' is a module under 'actions' package, not top-level.","wrong":"import core","symbol":"core","correct":"from actions import core"},{"note":"Direct import of 'core' module without 'actions' package fails.","wrong":"from core import get_input","symbol":"get_input","correct":"from actions.core import get_input"}],"quickstart":{"code":"from actions import core\ntry:\n    name = core.get_input('who-to-greet')\n    print(f'Hello {name}')\n    core.set_output('time', '2023-01-01')\nexcept Exception as e:\n    core.set_failed(f'Action failed: {e}')","lang":"python","description":"Minimal GitHub Action that reads input and sets output."},"warnings":[{"fix":"Use 'from actions import core' or 'from actions.core import ...'.","message":"Top-level import path changed from 'core' to 'actions.core' in v0.1.0.","severity":"breaking","affected_versions":"<0.1.0"},{"fix":"Use core.get_input('name', required=True) to enforce presence.","message":"core.get_input() returns empty string for missing inputs (previously raised error). Rely on required=True for validation.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Wrap action logic in try/except and call core.set_failed in except.","message":"set_output and set_failed must be called inside try block or will not propagate error correctly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from actions import core' or 'from actions.core import ...'.","cause":"Importing 'core' directly instead of 'actions.core'.","error":"ModuleNotFoundError: No module named 'core'"},{"fix":"Run 'pip install actions-python-core' and import as 'from actions import core'.","cause":"Missing 'actions-python-core' installation or wrong import path.","error":"AttributeError: module 'actions' has no attribute 'core'"},{"fix":"Provide input name: core.get_input('input-name')","cause":"Calling get_input() without any arguments.","error":"TypeError: get_input() missing 1 required positional argument: 'name'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}