Application Settings
Project description
settings_jc
Application settings package, where defaults are located in a text file. The location of text file is root of project or available from environment variable SETTINGS_JC.
Installation
pip install settings_jc
Update
pip install -U settings_jc
Features
Documentation
The default default settings are in the form:
setting_name=value
For example, if you wish to save the default value for X then your default settings file would contain
the following:
X=123
Comments are lines starting with #, so an example file may be:
# # settings.txt # # default settings for my application # X=123
The actual settings are stored in the following folder depending on OS. The settings are stored in:
Windows: %appdata%\appname\settings
Unix/Linux: $HOME/appname/settings
The settings file is encrypted with a key derived from the computer's system id.
This system id should be specific to the execution system. Please note, it is
very unlikely you could copy the settings file from one system and use
on another system. Since the system id is unique to the system, the encryption key
will be different for each system.
ToDo
Bugs/Requests
License
Copyright Jim Carter, 2020. Distributed under the terms of the MIT License, settings_jc is free and open source software.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file settings-jc-0.0.2.tar.gz.
File metadata
- Download URL: settings-jc-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6624d0daa19bf706e3b76ec294fb20274f6df20396d86933d59b89079eadcb2c
|
|
| MD5 |
f75c0c7e0707b523f4de6d5cf45f0a5b
|
|
| BLAKE2b-256 |
f53ed512bdceb19a66c5e8e0cd7e8bc41c2bc7703ae69550c85b7c433b18e9bf
|
File details
Details for the file settings_jc-0.0.2-py3-none-any.whl.
File metadata
- Download URL: settings_jc-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
856e71ff084ef842328f4bd9e38f17163368454744a7ebbe7b9bae7e037c1c53
|
|
| MD5 |
1e3f0338a48bf31aa352f65bb6ba4a2d
|
|
| BLAKE2b-256 |
2964cf99f0b42abc5522c707a317b4c0723fa77bc82475b043af64dc030fab9e
|