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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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