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.8.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.8-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: talend_task-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 de5775fee6dcfe63a7eee57fab0ff722fcae40fd18eb071fc7568ae4bf08cc07
MD5 e0233aa23f9c2487c25f97dd025ba77a
BLAKE2b-256 f23216da09419f962517f40b6f192b0fa8995c72372e8b9a958b1db82ad6e74c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: talend_task-0.1.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28f436bfd2c657ae6fe3489f36499af4de9650b4e4885df161e4a36ba044b393
MD5 d6514029e3aea5557695e2a6aa5ea26a
BLAKE2b-256 5ab9e1a22355f8bd628101cc9f0351cf0bf75f8bf9ef9f2221aaa8e00e53c277

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