Skip to main content

Python package for managing jobs using Ethiack's Public API

Project description


logo

Ethiack Job Manager

Python package for managing jobs using Ethiack's Public API

GitHub Release MIT License LinkedIn


IntroductionInstallationCredentials SetupUsageLicense

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.

(back to top)

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

(back to top)

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 setup 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)

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ethiack-job-manager-1.0.0rc1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ethiack_job_manager-1.0.0rc1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file ethiack-job-manager-1.0.0rc1.tar.gz.

File metadata

  • Download URL: ethiack-job-manager-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for ethiack-job-manager-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 3d5b423aee7ffe24d254c6e9d8a8ace59d25a2afcaf3e9ed04c8664dfc05b445
MD5 985fbcf4126bda1d39a44e61864a1e9c
BLAKE2b-256 e3aaf4b33831798c2272eb91f35ad6ee82fdfd4fbde536569bc07e056681c93d

See more details on using hashes here.

File details

Details for the file ethiack_job_manager-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for ethiack_job_manager-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccec859d9c055a48069c1769516b670cc52994b26424a10f7a2b4f3f2603651
MD5 39323d114d6565d3e39d62d30c26c6fa
BLAKE2b-256 62f7eaf8553cccbc6c18852d54dcc00dff89bc37fbbd05aee7617145a74e7f4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page