Python package for managing jobs using Ethiack's Public API
Project description
Introduction
This is Python package and command-line interface (CLI) designed as a wrapper around Ethiack's Public API (API docs). It simplifies the management of jobs by providing convenient access to the primary API endpoints related to job operations.
Features
- Manage jobs through the Ethiack API with ease.
- Command-line interface for quick interaction.
- Compatible with Python 3.8 and higher.
- Easy installation via PyPI.
Installation
You can install ethiack-job-manager using pip:
pip install ethiack-job-manager
Credentials Setup
Using Ethiack's API - and, therefore, this package - requires authentication using an API Key and API Secret, which can be retrieved in Ethiack's Portal settings page. These credentials must be available as environment variables ETHIACK_API_KEY and ETHIACK_API_SECRET, repectively, whenever the package is used.
To set up these credentials, you can either set the environment variables directly:
export ETHIACK_API_KEY=your_api_key
export ETHIACK_API_SECRET=your_api_secret
or create a .env file:
ETHIACK_API_KEY=your_api_key
ETHIACK_API_SECRET=your_api_secret
Usage
Command-line Interface
Run the CLI commands to manage jobs through the Ethiack API.
❯ ethiack-job-manager --help
Usage: ethiack-job-manager [OPTIONS] COMMAND [ARGS]...
Ethiack Job Manager CLI.
CLI for managing jobs using Ethiack's Public API.
╭─ Options ─────────────────────────────────────────────────────────────╮
│ --version Show the version and exit. │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────╮
│ await Wait for a job to finish. │
│ cancel Cancel a queued or running job. │
│ check Check if a URL is valid and a job can be submitted. │
│ info Get information about a job. │
│ launch Launch a job. │
│ list List all jobs. │
│ status Show the status of a job. │
│ success Show the success of a job. │
╰───────────────────────────────────────────────────────────────────────╯
Python Package
Import the package and use the available functions to manage jobs through the Ethiack API. For more information:
import ethiack_job_manager as manager
help(manager)
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ethiack_job_manager-1.1.3.tar.gz.
File metadata
- Download URL: ethiack_job_manager-1.1.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
242f61a0840f9bb96e6357ea8a17b8a9d1e48940917aa8d9b08861388c22eda1
|
|
| MD5 |
f7c0ad921ae50e58f8a857d17ec14e61
|
|
| BLAKE2b-256 |
3cacb5e7acb670ae7b01fe99c15148f2cf4ad78370e567633b2bd91ac109ad69
|
File details
Details for the file ethiack_job_manager-1.1.3-py3-none-any.whl.
File metadata
- Download URL: ethiack_job_manager-1.1.3-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5895347ebbcf6ead6c62a52a70cf81df66fc4385ee263c664286746aa4078a2
|
|
| MD5 |
1faa51959f2717f58185d5f6edbd6cfc
|
|
| BLAKE2b-256 |
77e7463ed11394cd57af630de3524507b6d48826831911f22fbb45d3082d21c5
|