Skip to main content

Configuration module from flask, for the rest of the world

Project description

[![Build Status](](

Itacatl: Provisión de comida que se lleva para un viaje o un paseo, o que ha sobrado de una fiesta y se da a algunos invitados.

El módulo de configuración de flask para el resto del mundo, por que me gusta cómo funciona. Escribe tus configuraciones en archivos python e impórtalas según el entorno, sobreescribiéndolas en cascada.

The config module from flask for the rest of the world, just because I like how it works. Write your config files in normal python files and import them depending on environment variables. Overwrite them in cascade.

Cómo usar / Usage

DEBUG = False
DEBUG = True
SECREY_KEY = 'lalala'
from itacate import Config
import os

config = Config(os.path.dirname(os.path.realpath(__file__)))
config.from_envvar('MY_APP_SETTINGS', silent=False) # export MY_APP_SETTINGS=/path/to/

assert config.DEBUG == True
assert config.BE_MAGIC == True
assert config.SECREY_KEY == 'lalala'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for itacate, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size itacate-1.0.0-py2.py3-none-any.whl (7.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size itacate-1.0.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page