Skip to main content

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

Release files for ngen-tools 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngen-tools 0.1.1
File Size Uploaded
ngen_tools-0.1.1.tar.gz 5.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ngen-tools 0.1.1
File Interpreter ABI Platform
ngen_tools-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 MB

Release files / ngen_tools-0.1.1.tar.gz

Download URL ngen_tools-0.1.1.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7d070f55a90e4d3fc84e007c6ec2417872ee899820f56daad645f74b7aed46cd
BLAKE2b-256 checksum
How to use checksums
147f9c22aacec02718796b511dea826ae1bee118928517b3f4bcca22514bf34a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / ngen_tools-0.1.1-py3-none-any.whl

Download URL ngen_tools-0.1.1-py3-none-any.whl
Size 5.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fb206fec2d88d40b545ec49fa166e746fcff32e8b9948617621538c7bc49a5ef
BLAKE2b-256 checksum
How to use checksums
2d9860d7a1cb3396c06b85fc443e3e6efccdb7d388e6f10bd17cc6fc38666ae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page