{"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,"search_vec":"'-1.0':30 '0.1.3':28 'action':1,10,19,37,38 'break':33 'build':8 'cd':41 'chang':34 'ci':40 'ci-cd':39 'command':23 'core':3,5 'current':26 'frequent':32 'github':9,36 'github-act':35 'input':21 'interact':16 'librari':6 'manipul':25 'output':22 'path':24 'pre':29 'provid':13 'python':2,12 'runtim':20 'util':14 'version':27","created_at":"2026-04-27T16:57:00.886907+00:00","updated_at":"2026-04-27T16:57:00.886907+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.1.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/actions-python/toolkit","docs":null,"changelog":null,"pypi":"https://pypi.org/project/actions-python-core/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-29","install_tag":null}}