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

Uploaded Python 3

File details

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

File metadata

  • Download URL: talend_task-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 995b6c6b4d59eeccd3bb4fe4de47a3268f38c75ebbcadc51795f4bc3d473d526
MD5 c904a1d9608cf0fc7f9ab3cc31314789
BLAKE2b-256 c34360c2888094cb819de0e920228632bf85951a8338c1d2f4e03377ee64ce23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: talend_task-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a2719ad547fe7b5f1acce1f11dfa40a1237d69cf95a00e628b2f5f41ebfc5194
MD5 f0832c0c0a2f0ea28149c6262efc8696
BLAKE2b-256 9179067cc03c09d40a12f1b907294b0e7f5dcffac0069a4dc93a436e7331e0a0

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