Skip to main content

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 ───────────────────────────────────────────────────────────────────────────────────────╮
│ --dotenv                --no-dotenv          Use dotenv to load .env file. [default: dotenv]    │
│ --dotenv-file                          FILE  Optional .env file to use. [default: None]         │
│ --var                                  TEXT  Directly set variable value. E.g. FOO=BAR.         │
│                                              [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.                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────╯

Download files

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

Source Distribution

nocto-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

nocto-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nocto-1.0.0.tar.gz.

File metadata

  • Download URL: nocto-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for nocto-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9811c321cf0a33f219e7ebdd231781726842d6763435be74cbbdd441048029f8
MD5 be9fc84e435fb3b6725f734d314c34fe
BLAKE2b-256 3df77afede32a1c70b9e75c13994f5ec32a75d3d911b9eca322c5c7eecc87312

See more details on using hashes here.

File details

Details for the file nocto-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nocto-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for nocto-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72681c2f8f5a0311512c55e78e273d3f66eac2d04b49e7ddd60a1da768f8aa53
MD5 f046d7c273caf360f36ed02bdd750cdd
BLAKE2b-256 04801600fe937d48ef6b18af3abb798681e0425886c6e6895841d0c125f22ff3

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.0 This release

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 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