Skip to main content

A utility for managing multiple configurations & environments

Project description

A tool to help users manage multiple environments.

When launching a shell in the environment, it sets sets environment variables automatically.

It can also integrate with Python Virtual Environments, AWS Profiles (eg. Assume Role).

Once you’ve created an environment, edit the environment.json to configure additional environment variables.

Usage

$ nv
Usage: nv [OPTIONS] COMMAND [ARGS]...

Options:
  -n, --environment-name _VALID_ENVIRONMENT_NAME
  -d, --project-dir DIRECTORY     Path to the project project (defaults to
                                  current directory)
  -P
  -K
  --help                          Show this message and exit.

Commands:
  create  Create a new environment in...
  rm      Remove an environment.
  run     Runs a command in the specified environment.
  shell   Launch a new shell in the specified...
$ nv create --help

Usage: nv create [OPTIONS]

  Create a new environment in %PROJECT%/.nv-%ENVIRONMENT_NAME%

Options:
  -p, --project-name TEXT   Your project name (defaults to current directory
                            name)
  -py, --python-virtualenv  Activate a python virtualenv
  --aws-profile TEXT        Obtain credentials for the given profile.
  --env <TEXT TEXT>...      Name & Value of environment variables to set
  --help                    Show this message and exit.
$ nv shell --help

Usage: nv shell [OPTIONS]

  Launch a new shell in the specified environment.

Options:
  --help  Show this message and exit.
$ nv run --help

Usage: nv run [OPTIONS] COMMAND [ARGS]...

  Runs a command in the specified environment.

Options:
  --help  Show this message and exit.

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

nv-0.0.7.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

nv-0.0.7-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file nv-0.0.7.tar.gz.

File metadata

  • Download URL: nv-0.0.7.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for nv-0.0.7.tar.gz
Algorithm Hash digest
SHA256 68e1869df464073dc6aa13cc15bd17cdacdd497de2869bd207f7317462959479
MD5 72ea8b14d25e12a8b690abf4c2f2fe02
BLAKE2b-256 31b08b8cdac3d8933f23b2549ed6bab7fbea81c6ea03b4421920fb984495d48d

See more details on using hashes here.

File details

Details for the file nv-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: nv-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for nv-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ff05154dd81a188420f24d302586a5fd0532c628b99678bec268b6e798a97507
MD5 8d4a7b4e7b104d1a0a4aee5331f96563
BLAKE2b-256 a3dc328688288b21d5a14cd1e5e0705882bdfd79bed8f2fa4bc021867f6347b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page