Asynchronous rundeck API client
This is a rundeck API client implemeneted by aio-http and pydantic. All API parameters and responses are annotated and user-friendly!
Installation
pip install async-rundeck
How to use
import asyncio
from async_rundeck import Rundeck
async def main():
Rundeck(
url=rundeck_service, username="admin", password="admin", api_version=41
)
project_name = uuid4().hex
await rundeck.create_project(project_name)
job_content = (root_dir / "resource" / "Test_job.xml").read_text()
# Import job
status = await rundeck.import_jobs(
project_name,
job_content,
content_type="application/xml",
uuid_option="remove",
)
if len(status["succeeded"]) != 1:
print("Failed to import job")
return
jobs = await rundeck.list_jobs(project_name)
# Execute job
execution = await rundeck.execute_job(jobs[0].id)
assert execution is not None
asyncio.run_until_complete(main())
Features
The items checked in the following list are implemented.
- System Info
- List Metrics
- Metrics Links
- Metrics Data
- Metrics Healthcheck
- Metrics Threading
- Metrics Ping
- User Profile
- Log Storage
- Execution Mode
- Cluster Mode
- ACLs
- Jobs
- List job
- Run job
- Import job from file
- Export job from file
- Executions
- Get Executions for a Job
- Delete all Executions for a Job
- Listing Running Executions
- Execution Info
- Upload files for an Execution.
- List Input Files for an Execution
- Delete an Execution
- Bulk Delete Executions
- Execution Query
- Execution State
- Execution Output
- Execution Output with State
- Aborting Executions
- Adhoc
- Key Storage
- Upload keys
- List keys
- Get Key Metadata
- Get Key Contents
- Delete Keys
- Projects
- Listing Projects
- Project Creation
- Getting Project Info
- Project Deletion
- Project Configuration
- Project Configuration Keys
- Project Archive Export
- Project Archive Export Async
- Project Archive Export Status
- Project Archive Import
- Updating and Listing Resources for a Project
- Project Readme File
- Project ACLs
- Listing History
- Resources/Nodes
- SCM
Metadata
Release files for async-rundeck 0.1.7
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 | Actions |
|---|---|---|---|---|
| async_rundeck-0.1.7.tar.gz | 24.3 kB | Without provenance | Details for async_rundeck-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_rundeck-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for async_rundeck-0.1.7-py3-none-any.whl |
Total release size: 55.9 kB
Release files / async_rundeck-0.1.7.tar.gz
| Download URL | async_rundeck-0.1.7.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bdf1f2e3e1e42912d42e4118fc24d81a5005ee5a3a6a22e36c38fd929582cb8
|
|
BLAKE2b-256 checksum How to use checksums |
34559053dff6a41b93e97345d5d21adad3d1d55495a12c984242b4868ff08810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.9 Windows/10
|
Release files / async_rundeck-0.1.7-py3-none-any.whl
| Download URL | async_rundeck-0.1.7-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
675511298b8d0add6245c2b5388c2e596fc36f532deef35f10555b38c6b6e6c6
|
|
BLAKE2b-256 checksum How to use checksums |
16e43f26a5557bdb9b1306e691b6b875f416c423c6e7aa0ff516943379b3e3b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.9 Windows/10
|
Security for async-rundeck 0.1.7
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.