Skip to main content

Universal command wrapper package that dispatches to /usr/local/bin/ngen-* scripts

Project description

ngen

Universal command wrapper package that dispatches to /usr/local/bin/ngen-* scripts.

Installation

Install from PyPI:

pip install ngen-tools

Or install from source:

pip install .

Note: Installation to /usr/local/bin requires sudo/root permissions. The package will automatically install bundled scripts to /usr/local/bin/ngen-* during installation.

Usage

The ngen command dispatches to scripts located at /usr/local/bin/ngen-{command}.

Format

  • Script location: /usr/local/bin/ngen-{command}
  • Command usage: ngen {command}

Examples

If you have a script at /usr/local/bin/ngen-rancher, you can use it as:

ngen-tools rancher --help
ngen-tools rancher version

If you have a script at /usr/local/bin/ngen-git, you can use it as:

ngen-tools git clone https://github.com/user/repo.git
ngen-tools git status

How It Works

  1. When you run ngen-tools {command}, the CLI dispatcher looks for a script at /usr/local/bin/ngen-{command}
  2. If found, it executes the script with any additional arguments passed
  3. The script can be any executable file (bash, sh, Python, or binary)

Adding New Commands

To add a new command:

  1. Place a script at /usr/local/bin/ngen-{your-command}
  2. Make sure it's executable: chmod +x /usr/local/bin/ngen-{your-command}
  3. Use it with: ngen-tools {your-command}

Development

Building the Package

python -m build

Publishing to PyPI

Menggunakan script otomatis:

./publish.sh --test      # Publish ke Test PyPI
./publish.sh --publish   # Publish ke PyPI production

Atau manual:

python -m build
python -m twine check dist/*
python -m twine upload dist/*

Untuk panduan lengkap, lihat PUBLISH.md.

License

MIT

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

ngen_tools-0.1.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

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

ngen_tools-0.1.0-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

Details for the file ngen_tools-0.1.0.tar.gz.

File metadata

  • Download URL: ngen_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngen_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa4b38876e004bf4f1bb3f29ea97ed838cbc0970ae2a81b2a0122c7f1b3ea1b4
MD5 c05cc5fbba9040326c9843aa2a59210a
BLAKE2b-256 ddcd451c1b6acb4ce07d9e0f5a7a96b8cf5224edcb0ed9ea60ea87c00dd5d86f

See more details on using hashes here.

File details

Details for the file ngen_tools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ngen_tools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngen_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d96f1506fc0b04ddd33b9627d5fef7b388c6fae256cbd852d00569989bdeaf23
MD5 6701e29be4e4b4bf887ddbb38e8cce6c
BLAKE2b-256 b6ccf70ed503df1c55ef0b5574464c1c0aab569bc13de5d4a091ff3b9a1af538

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