Skip to main content

Self-contained Python launcher for the General Translation CLI

Project description

gtx-cli

gtx-cli is the PyPI distribution for the General Translation CLI. It installs small Python entry points that run the bundled standalone gt binary for your platform.

Installation

pip install gtx-cli

Usage

gt init
gt translate
gt upload

The package installs gt, gtx, and gtx-cli command aliases.

How it works

PyPI hosts one wheel per supported platform. Each wheel contains the Bun-compiled CLI binary for that platform. At runtime, the Python launcher execs the bundled binary directly.

Documentation

Full CLI documentation is available at generaltranslation.com/docs/cli.

Release

Build the Bun executables first from packages/cli, then build and publish the platform wheels:

pnpm --filter gt run build:bin:clean
cd packages/cli/pypi
python -m pip install --upgrade build twine
python scripts/build_platform_wheels.py \
  --version 2.14.22 \
  --source ../binaries \
  --check \
  --upload \
  --skip-existing \
  --token-file ~/Documents/dev/secrets/pypi-api-token.txt

The script restores gtx_cli.__version__ and removes copied binaries from the source tree after building.

License

FSL-1.1-ALv2. See LICENSE.md.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gtx_cli-2.14.22-py3-none-win_amd64.whl (44.2 MB view details)

Uploaded Python 3Windows x86-64

gtx_cli-2.14.22-py3-none-manylinux_2_17_x86_64.whl (42.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

gtx_cli-2.14.22-py3-none-manylinux_2_17_aarch64.whl (40.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

gtx_cli-2.14.22-py3-none-macosx_13_0_x86_64.whl (27.4 MB view details)

Uploaded Python 3macOS 13.0+ x86-64

gtx_cli-2.14.22-py3-none-macosx_13_0_arm64.whl (24.9 MB view details)

Uploaded Python 3macOS 13.0+ ARM64

File details

Details for the file gtx_cli-2.14.22-py3-none-win_amd64.whl.

File metadata

  • Download URL: gtx_cli-2.14.22-py3-none-win_amd64.whl
  • Upload date:
  • Size: 44.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gtx_cli-2.14.22-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c8c04589a6813c3fab90ae4ae9656e8b3afc89ffd183ccee0405346097751641
MD5 07f74c4184616e9a60a7bee6a5886b23
BLAKE2b-256 554ca42b0849de39f4480828a57787b0c204eb30028c4e8051f091657b06473f

See more details on using hashes here.

File details

Details for the file gtx_cli-2.14.22-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtx_cli-2.14.22-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cd855d7a4235c1e8e0c3cc807d7525f03061026bc739ff43f88737feb3a512da
MD5 363f8dd06770b9b47a65dfd0a475c5a8
BLAKE2b-256 f08a9c714ea7c9fa4dcf185f018943b353aa8bb127702053a712b4fb5ff2cc37

See more details on using hashes here.

File details

Details for the file gtx_cli-2.14.22-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtx_cli-2.14.22-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 57154ba7ad01ba1632bc9eedb1eda0ac941103abbeef874e170369a3373fab06
MD5 875679fd91e753d34066ffa497946511
BLAKE2b-256 90db126d8e245b99d8dd3eb9c480dc514e2632f98fb25c62870c6b299afed1d8

See more details on using hashes here.

File details

Details for the file gtx_cli-2.14.22-py3-none-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gtx_cli-2.14.22-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c21879392e6da688f34b455dc8f933422c86929c09e7c570ac064100b2e63def
MD5 262bea06ef5d8e8e0437f06b20016183
BLAKE2b-256 4d6ff626ad40af777e5283905e9353dc745c55a42a4555d535cd28e8647a0df5

See more details on using hashes here.

File details

Details for the file gtx_cli-2.14.22-py3-none-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gtx_cli-2.14.22-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a460f2215784e1a2da0268f19e6a0c640ea50f9d7e80cf141b5c47ad41be56cd
MD5 d6300f1b5745ae7c9cfc632b7072c856
BLAKE2b-256 11cd94d45c4defa19f418bcd514e027d27e797039ed0ca11f0ea4700b83e5cb0

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