nocto
Simple CLI tool to replace Octopus-style templated variables in file from local environment.
Simple example:
kubectl apply -f $(nocto deployment.yaml)
Installation
pipx install nocto
# OR
pip install --user nocto
Usage
Usage: nocto [OPTIONS] FILE
Replaces all Octopus-style template variables in `file` and writes it to temporary file.
Returns path to temporary file.
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────╮
│ * file FILE File in which to replace variables [default: None] [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --var TEXT Directly set variable value. E.g. FOO=BAR. │
│ [default: (dynamic)] │
│ --dotenv --no-dotenv Use dotenv to load .env file. │
│ [default: dotenv] │
│ --dotenv-file FILE Optional .env file to use. [default: None] │
│ --stdout --no-stdout Write output to stdout instead of temporary │
│ file. │
│ [default: no-stdout] │
│ --test --no-test Only test if local environment has all │
│ required variables, don't replace variables. │
│ [default: no-test] │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy │
│ it or customize the installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
Metadata
Release files for nocto 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nocto-1.1.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nocto-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / nocto-1.1.0.tar.gz
| Download URL | nocto-1.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61db4b8a4de91ded365e4289329b1b03f260b5fc6baa7433be08c34cf17564a9
|
|
BLAKE2b-256 checksum How to use checksums |
7991e073c9c0a63c538c9c893919bb86dbb7aac3acda62c93a1b7e8be83c0e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
|
Release files / nocto-1.1.0-py3-none-any.whl
| Download URL | nocto-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e83293d04abc0f74f69421befb285350f57be5560ff0b9cc88b158c499e3b43
|
|
BLAKE2b-256 checksum How to use checksums |
428b53f717f21448b38f3dcbd8d101646083d959f9d7d76e9e0a3d752e92af22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
|