Skip to main content

Config encryption

Project description

Dirigible
=========

Dirigible is a minimal python package the provides two shortcuts for working
with config files:

1) it can transparently read config files encrypted with Ansible Vault, and
2) shortcuts for finding and loading configs files in common locations, like
~/.{{appname}} or /etc/{{appname}}, or looking in a location specified by
an environment variable "${{appname|upper}}_CONFIG_DIR" if defined.

Examples
++++++++

Load a basic, unencrypted config file from

from os.path import join, abspath, dirname
import digible

class MyConfig(dirigible.Config):

appname = 'testapp'
defaults = join(dirname(abspath(__file__)), 'defaults')

@CachedAttr
def cfg(self):
return self.load_config_filename('myapp.cfg')



Dirigible
=========

Dirigible is a minimal python package the provides two shortcuts for working
with config files:

1) it can transparently read config files encrypted with Ansible Vault, and
2) shortcuts for finding and loading configs files in common locations, like
~/.{{appname}} or /etc/{{appname}}, or looking in a location specified by
an environment variable "${{appname|upper}}_CONFIG_DIR" if defined.

Examples
++++++++

Load a basic, unencrypted config file from

from os.path import join, abspath, dirname
import digible

class MyConfig(dirigible.Config):

appname = 'testapp'
defaults = join(dirname(abspath(__file__)), 'defaults')

@CachedAttr
def cfg(self):
return self.load_config_filename('myapp.cfg')

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

dirigible-0.2.6.tar.gz (14.2 kB view details)

Uploaded Source

File details

Details for the file dirigible-0.2.6.tar.gz.

File metadata

  • Download URL: dirigible-0.2.6.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dirigible-0.2.6.tar.gz
Algorithm Hash digest
SHA256 aa6605ac8866cd371e94b3cfb53ed11c43e7b0f6d358b13d61b99d51370ddf14
MD5 e63e32f7acca11b399694cffedf0fec3
BLAKE2b-256 c46c5d795740c6d91aa5d2cf89a91ea235541ef298b210752c24a2f45b96f971

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page