ngen
Universal command wrapper package that dispatches to /usr/local/bin/ngen-* scripts.
Installation
Install from PyPI:
pip install ngen-cli
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-cli rancher --help
ngen-cli rancher version
If you have a script at /usr/local/bin/ngen-git, you can use it as:
ngen-cli git clone https://github.com/user/repo.git
ngen-cli git status
How It Works
- When you run
ngen-tools {command}, the CLI dispatcher looks for a script at/usr/local/bin/ngen-{command} - If found, it executes the script with any additional arguments passed
- The script can be any executable file (bash, sh, Python, or binary)
Adding New Commands
To add a new command:
- Place a script at
/usr/local/bin/ngen-{your-command} - Make sure it's executable:
chmod +x /usr/local/bin/ngen-{your-command} - Use it with:
ngen-cli {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
Metadata
Release files for ngen-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ngen_cli-0.1.2.tar.gz | 5.0 MB | Without provenance | Details for ngen_cli-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ngen_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ngen_cli-0.1.2-py3-none-any.whl |
Total release size: 10.1 MB
Release files / ngen_cli-0.1.2.tar.gz
| Download URL | ngen_cli-0.1.2.tar.gz |
|---|---|
| Size | 5.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60e9679bef7d47f4868bcffccc139f971c808619dbc2be333da5ada3dd255087
|
|
BLAKE2b-256 checksum How to use checksums |
a49da61e67aeec31c025fa3fca769c6d72da5766c0e06ff36210cd37cd6d2250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / ngen_cli-0.1.2-py3-none-any.whl
| Download URL | ngen_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36a8199311f2057da6724ab4f0af2f6761cc052d79c477a6858c070dd8adedb8
|
|
BLAKE2b-256 checksum How to use checksums |
e145e20034d753dd50d7d6a3a454dc0c795ba2feafad54d6c1fdffac28fbe3a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for ngen-cli 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.