==========
A parser for /etc/default configuration files which parses these files with a
bash subshell in order to have 100% of the bash features when including this
configuration into an python driven init script.
Example
-------
root@host # cat /etc/default/rcS
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.
TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=no
RAMRUN=no
RAMLOCK=no
root@host # python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import etcDefault
>>> etcDefault.read('/etc/default/rcS')
{
'UTC': 'yes',
'RAMLOCK': 'no',
'SULOGIN': 'no',
'VERBOSE': 'no',
'TMPTIME': '0',
'RAMRUN': 'no',
'FSCKFIX': 'no',
'DELAYLOGIN': 'no',
'PIPESTATUS': ['0']
}
>>>
You get all variables set during the run of the /etc/default script into a dict.
Metadata
Release files for etcDefaultParser 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| etcDefaultParser-1.0.0-py2.6.egg | Legacy Egg format | - | - | Details for etcDefaultParser-1.0.0-py2.6.egg |
Release files / etcDefaultParser-1.0.0-py2.6.egg
| Download URL | etcDefaultParser-1.0.0-py2.6.egg |
|---|---|
| Size | 9.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
796d3bd2dec0c7745577f8bb9a71eafc47c2fec3c2f75c57f599d00a108fa77d
|
|
BLAKE2b-256 checksum How to use checksums |
2021c67ef9b7edac3ceb90c9615bfb4096bd21666c698377c434db73c11b66fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for etcDefaultParser 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.