Skip to main content

Secrets manager

Project description

Contributor Covenant License Code style: black

Python version Python wheels PyPI version

Commit history Code size Top language

CAVALRY

Quickly load secrets as environment variables

Getting Started

pip3 install cavalry

Usage

Run cav -h to see options. Note: the script is not POSIX compatible and requires /bin/bash.

Loading variables

The load command will run an eval on the variables exported from the function. To get these into your current scope, the file must be run with source .... Shorthand in most terminals is to simply prepend a dot: . cav load .... TL;DR: to load variables, run . cav load ...

usage: cav [-h] [-s FILE] {store,delete,load,list,clear} ...

Utility to load environment variables. To persist the variables into your
scope, run 'source cav {load,clear} [options]' or '. cav {load,clear} [options]'

positional arguments:
  {store,delete,load,list,clear}
    store               store variables
    delete              delete variables
    load                load variables
    list                list stored data
    clear               clear variables from environment

optional arguments:
  -h, --help            show this help message and exit
  -s FILE, --secrets FILE
                        specify an alternate secrets file

© 2020 Sean Christians

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

cavalry-2.1.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

cavalry-2.1.1-py3-none-any.whl (16.3 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