go-env - a golang library to manage environment variables

  •        63

Package env provides an env struct field tag to marshal and unmarshal environment variables.




Related Projects

godotenv - A Go port of Ruby's dotenv library (Loads environment variables from `.env`.)

  •    Go

Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables. But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. Dotenv load variables from a .env file into ENV when the environment is bootstrapped.

cross-env - 🔀 Cross platform setting of environment scripts

  •    Javascript

Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's a difference in how windows and POSIX commands utilize environment variables. With POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%.cross-env makes it so you can have a single command without worrying about setting or using the environment variable properly for the platform. Just set it like you would if it's running on a POSIX system, and cross-env will take care of setting it properly.

env - A KISS way to deal with environment variables in Go.

  •    Go

A KISS way to deal with environment variables in Go. At first, it was boring for me to write down an entire function just to get some var from the environment and default to another in case it's missing.

sync-dotenv - Keep your .env in sync with .env.example

  •    TypeScript

Projects often rely on environmental variables stored in a .env file to run... and because these variables sometimes contain sensitive data, we never add them to source control. Instead, these variables are added e.g. to a .env.example file so it's easy to get the project running for other developers. However, it's very easy to forget to update this file when a variable is added/updated in .env (during development). This can make it difficult for devs to get the project running (locally) because they rely on .env.example file to setup their environment (with their own configs). sync-dotenv automates the process of keeping your .env in sync with .env.example.

dotenv - Loads environment variables from .env for nodejs projects.

  •    Javascript

Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.As early as possible in your application, require and configure dotenv.

dotenv - A Ruby gem to load environment variables from `.env`.

  •    Ruby

Shim to load environment variables from .env into ENV in development. Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.

dotenv-safe - Load environment variables from .env and ensure they are all present

  •    Javascript

Identical to dotenv, but ensures that all necessary environment variables are defined after reading from .env. These needed variables are read from .env.example, which should be commited along with your project. If all the required variables were successfully read but an error was thrown when trying to read the .env file, the error will be included in the result object under the error key.

envconsul - Launch a subprocess with environment variables using data from @HashiCorp Consul and Vault

  •    Go

Envconsul provides a convenient way to launch a subprocess with environment variables populated from HashiCorp Consul and Vault. The tool is inspired by envdir and envchain, but works on many major operating systems with no runtime requirements. It is also available via a Docker container for scheduled environments.Envconsul supports 12-factor applications which get their configuration via the environment. Environment variables are dynamically populated from Consul or Vault, but the application is unaware; applications just read environment variables. This enables extreme flexibility and portability for applications across systems.

phpdotenv - Loads environment variables from `

  •    PHP

Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically. This is a PHP version of the original Ruby dotenv.

direnv - Unclutter your .profile

  •    Go

direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file. Before each prompt, direnv checks for the existence of a ".envrc" file in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell.

go-envconfig - A Go library for parsing struct tags from environment variables.

  •    Go

Envconfig populates struct field values based on environment variables or arbitrary lookup functions. It supports pre-setting mutations, which is useful for things like converting values to uppercase, trimming whitespace, or looking up secrets. Note: Versions prior to v0.2 used a different import path. This README and examples are for v0.2+.

django-dotenv - Loads environment variables from .env

  •    Python

foreman reads from .env. manage.py doesn't. Let's fix that.Original implementation was written by @jacobian.

better-npm-run - Better NPM scripts runner

  •    Javascript

The betterScripts script definition can either be a string or sub-object with command and env attributes. Values defined in the env block will override previously set environment variables. Note that depending on the OS and terminal you're using, dots, spaces or other special characters in the command path may be treated as separators and the command will be parsed wrong.

envied - Ensures presence and type of your app's ENV-variables

  •    Ruby

For the rationale behind this project, see this blogpost.

qwandry - Qwandry gives you a single way to easily open all your projects and libraries.

  •    Ruby

Just type qw and the first few letters of what you're looking for. By default Qwandry is set up for locating and editing ruby libraries. Qwandry uses environment variables to launch your configured editor. The following env variables are checked, in this order. The first value found is used.

react-redux-realworld-example-app - Exemplary real world application built with React + Redux

  •    Javascript

Originally created for this GH issue. The codebase is now feature complete; please submit bug fixes via pull requests & feedback via issues.Local web server will use port 4100 instead of standard React's port 3000 to prevent conflicts with some backends like Node or Rails. You can configure port in scripts section of package.json: we use cross-env to set environment variable PORT for React scripts, this is Windows-compatible way of setting environment variables.

flag - Parse flags, environment variables and config files

  •    Go

Flag is a drop in replacement for Go's flag package with the addition to parse files and environment variables. If you support the twelve-factor app methodology, Flag complies with the third factor; "Store config in the environment". This package is a port of Go's flag package from the standard library with the addition of two functions ParseEnv and ParseFile.

CommAI-env - A platform for developing AI systems as described in A Roadmap towards Machine Intelligence - http://arxiv

  •    Python

CommAI-env (Environment for Communication-based AI) is an experimental platform for training and evaluating AI systems as described in A Roadmap towards Machine Intelligence. CommAI-env is a platform for training and testing an AI system, the Learner (coded in an arbitrary language of the system developer's choice), in a communication-based setup where it interacts via a bit-level interface with an Environment. The Environment asks the Learner to solve a number of communication-based Tasks, and assigns it a Reward for each task instance it successfully completes.

slackbot - Simple, pluggable bot framework for Slack chat.

  •    Go

Simple, pluggable bot framework for Slack chat. Slackbot uses environment variables for all configuration, with domain wide variables prefixed by the domain name in title case (e.g. MYDOMAIN_IN_URL for MyDomain's incoming webhook URL). This makes it easy to support multiple domains and deploy to Heroku. Make sure to set a PORT environment variable defining what port to run your bot on.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.