Skip to main content

CLI for running Talend Cloud jobs

Project description

talend-task

CLI for running Talend Cloud jobs


Status

Latest Version
Build/Tests (CI)
Supported Python Versions

About

talend_task is a Python CLI for running Talend Cloud jobs, including ETL pipelines, workflows, and tasks. It uses the Talend Cloud Processing API to trigger job runs and monitor status.

In the CLI, a "job" refers to a runnable Talend Task. Running a job creates a Talend Execution.

Select a job interactively, or specify one directly with --job.


Installation

Install the package from PyPI:

pip install talend-task

CLI

After installation, the talend_task command is available in your shell.

CLI Options:
$ talend_task --help
usage: talend_task [-h] [--debug] [--wait] [--activity] [--job NAME] [--timeout SECS]
                   [--poll-interval SECS]

Talend Cloud CLI

options:
  -h, --help            show this help message and exit
  --debug               enable debug logging
  --wait                wait for job to complete and return status
  --activity            show recent runs without executing job (cannot be used with --wait)
  --job NAME            job name
  --timeout SECS        timeout (requires --wait, default: none)
  --poll-interval SECS  polling interval (requires --wait, default: 5)

Configuration

The CLI requires an Access Token and an API URL for your Talend Cloud region.

Configuration is provided via environment variables:

export API_URL=https://api.<region>.cloud.talend.com
export ACCESS_TOKEN=<access-token>

(region = us, eu, us-west, etc)

Alternatively, define them in a .env file in the current directory:

API_URL=https://api.<region>.cloud.talend.com
ACCESS_TOKEN=<access-token>

Usage Examples

Direct mode

Run a job by providing --job <name>:

talend_task --wait --job Job1

Interactive mode

Run the CLI without specifying a job to select and execute one from a menu:

talend_task --wait

Activity mode

Show recent runs for a job without executing it:

talend_task --activity --job Job1

Screenshots

Interactive mode

Screenshot

Direct mode

Screenshot


Development

  • Install as editable package with required development/testing dependencies:

    pip install --editable --group dev --group test .
    
  • Run all tests:

    pytest
    
  • Run linting and formatting:

    tox -e lint
    
  • Run validation, linting, formatting, and all tests across all supported/installed Python environments:

    tox
    

Project Structure

./
├── .github/
│   └── workflows/
│       └── test.yml
├── src/
│   └── talend_task/
│       ├── __init__.py
│       ├── cli.py
│       └── talend_client.py
├── tests/
│   ├── test_cli.py
│   └── test_talend_client.py
├── pyproject.toml
└── tox.ini

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

talend_task-0.1.7.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

talend_task-0.1.7-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file talend_task-0.1.7.tar.gz.

File metadata

  • Download URL: talend_task-0.1.7.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for talend_task-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bf691d6ebbc952af6b9f264ae68be93efa08b93de1e8ed4660fe78543d53c782
MD5 4a73033752ba7d3950356b11047c5b6a
BLAKE2b-256 f72c35ebd28d00b7f1260bd90f1fe05ca4d96007c49f0416972e11537bcf16be

See more details on using hashes here.

File details

Details for the file talend_task-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: talend_task-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for talend_task-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 62457499a3da036d0927866dd2c7e4b140827232748efd2749cb58ae77e61208
MD5 6e07759f7dc8bd7384284dd67ec9ef14
BLAKE2b-256 04f4f918db9d6cf3b417e895af942df7e19e61c1834ef1cb50143eb1e2a8db13

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