SQL --> Spark
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')
=========
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
Release history Release notifications | RSS feed
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.1.tar.gz
(14.0 kB
view details)
File details
Details for the file dirigible-0.1.tar.gz.
File metadata
- Download URL: dirigible-0.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0662949e28e7bd781d51648df97ccf3bb8f43121546355fb970f193be6b47a2a
|
|
| MD5 |
810322d1b0919e70878d822ff74d1564
|
|
| BLAKE2b-256 |
874cbdb62b67f8a45b9c0cc8bc2cf9e9ae0f48b0fe822b847041c9acc3c31cff
|