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.6.tar.gz (14.6 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.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: talend_task-0.1.6.tar.gz
  • Upload date:
  • Size: 14.6 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.6.tar.gz
Algorithm Hash digest
SHA256 adab1f59f9906143f52a5ce86c967e72cc8df7bb5c45d3256d45a684cda4420b
MD5 4d178f0dba1a8fc06ae39e2c574e556e
BLAKE2b-256 2717c5b615fc3c541a63199a48799b64538aa3e659aeff958a39444f7ca5c50a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: talend_task-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a0194de630b4a3d486123a96af5b5f95e50caa67e02ff5b9ff058d801780072a
MD5 d9bd6145f522e0ce8753fa51414b79da
BLAKE2b-256 886fc6ba232fd5a4e039b504b88ce6c6ab4b571423608747d47413ca2364b53b

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