PyAction - Create GitHub Actions Using Python! :sparkles: 

PyAction helps you to develop GitHub Actions using Python. It's delivered as an installable package with the ability to run and test the action locally before any deployment.
- name: Using the python action
uses: you/your-python-action@v2
with:
name: Jane
age: 20
from pyaction import PyAction
workflow = PyAction()
@workflow.action
def greetings_action(name: str, age: int) -> None:
workflow.write(
{
"phrase": f"Hello {name}. You are {age}!"
}
)
# $ pyaction run
# [
# {
# "var": "phrase",
# "value": "Hello Jane. You are 20!",
# "type": "<class 'str'>",
# "usage": "${{ steps.STEP_ID.outputs.phrase }}"
# }
# ]
Check out the official docs for more detailed information. There is also a Quickstart demo tutorial that walks you through a simple hello-world action.
Installation
Run the following command in a fresh CLI tab.
pip install -U "pyaction[cli]"
To make sure the installation process was successful, run the following command.
pyaction --version
The pyaction release is made to be super light which will make your workflow run very fast. The pyaction[cli] that you install on your local machine has some additional packages for local development.
Usage
It's recommended to initialize a template, then going along the development process. Thus, run the init command.
pyaction init
Answer the prompts and your template will be generated. Check out the docs for the further steps.
Contribution
All your contributions and assistance are welcome. For more information about how you can contribute to the project, please follow the instructions here. :sparkles:
License
PyAction is licensed under the MIT License terms.
Metadata
Release files for pyaction 0.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyaction-0.8.5.tar.gz | 18.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyaction-0.8.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / pyaction-0.8.5.tar.gz
| Download URL | pyaction-0.8.5.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6009a79ec4b73a390456eec47699b40960b15b8d6ef60afad8f89e9b7f8ce27
|
|
BLAKE2b-256 checksum How to use checksums |
235d5022674fec7f737e949ff60e9c07269bbb4d91c4e46711beffbdecb6b7c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyaction-0.8.5-py3-none-any.whl
| Download URL | pyaction-0.8.5-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d121a59fc03ca8b3203b3a231e97ba151bb4fa3868eb476885355fc9ae65f148
|
|
BLAKE2b-256 checksum How to use checksums |
1ef8e98e0af09f9ba87f222f9aabb065692b733352f50ab09e907621b5931226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pyaction 0.8.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.