Skip to main content

Compares expected environment variables to those set in production.

Project description

Unix: Unix Build Status Windows: Windows Build StatusMetrics: Coverage Status Scrutinizer Code QualityUsage: PyPI Version

Overview

Compares expected environment variables to those set in production.

Setup

Requirements

  • Python 3.6+

Installation

Install env-diff with pip:

$ pip install env-diff

or directly from the source code:

$ git clone https://github.com/jacebrowning/env-diff.git
$ cd env-diff
$ python setup.py install

Usage

Generate a sample config file:

$ env-diff --init

Customize this file to match your project:

  • sourcefiles: contain references to environment variables used in your project

    • path: relative path to source file

  • environments: the environments in which your project runs

    • name: name of the environment

    • command: command to display currently set environment variables

Display the differences between environment variables in your environments:

$ env-diff > env-diff.md

Open the generated Markdown table in an appropriate viewer.

Revision History

0.1 (2017-03-30)

  • Initial alpha release.

0.2 (2017-03-30)

  • Added detection of source variables matching export FOO=bar.

  • Added Markdown report generation.

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

env-diff-0.2.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

env_diff-0.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file env-diff-0.2.tar.gz.

File metadata

  • Download URL: env-diff-0.2.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for env-diff-0.2.tar.gz
Algorithm Hash digest
SHA256 1669cc901bbbb5bf92c76ee85546ae81e8b886de35117e947e774c2411207cfe
MD5 ae856d55226634c8ae2058e6a62d0794
BLAKE2b-256 3a32bc6a01f1847aa43589d62b1045d0fa0b66fade66e61084da5022ff75db6d

See more details on using hashes here.

File details

Details for the file env_diff-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for env_diff-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e64eb7fd0d449ac0ab39a53dffe57e9fde1e422a1220ecd0d3bcf1bbef2ca6dd
MD5 f74e872b48f4c7c4e8b420db28b2177e
BLAKE2b-256 5782f8fa58bb7f21ef6706cc85901c958e982f3c7be7bf62804f0d3fb1df7dc8

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