This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.1 instead.
Reason given by maintainers: Bugs when nested dictionaries in PREFS file.
PREFS
PREFS is a Python library to store and manage preferences and settings.
PREFS stores a Python dictionary in a total human-readable file, the PREFS file is created when it can't find it (normally the first time you run the program), otherwise if the file already exists it just read it's content.
Installation:
On windows:
pip install PREFS
On MacOS and Linux:
pip3 install PREFS
Syntax:
Each PREFS file is an instance of the PREFS class:
The PREFS class has one required parameter, which is a dictionary with the default preferences (used to create the file when it can't it).
default_prefs = {
"theme": "light",
"lang": "en",
"keybindings": {"Ctrl+C": "Copy", "Ctrl+V": "Paste", "Ctrl+X": "Cut"}
}
user_prefs = PREFS.Prefs(default_prefs)
This code will create a file like this:
#PREFS
theme='light'
lang='en'
keybindings=>
Ctrl+C='Copy'
Ctrl+V='Paste'
Ctrl+X='Cut'
A total human readable file that supports cascade/tree in nested dictionaries.
Other functions
read_json_file().read_yaml_file().read_prefs_file().convert_to_prefs().
Documentation
PREFS documentation can be found at https://patitotective.github.io/PREFS/docs/ with more examples and information.
About
-
GitHub page: https://github.com/Patitotective/PREFS.
-
Pypi page: https://pypi.org/project/PREFS/.
-
Contact me:
- Discord: Patitotective#0127.
- Email: cristobalriaga@gmail.com.
v0.2.60
Metadata
Release files for prefs 0.2.60
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PREFS-0.2.60.tar.gz | 16.3 kB | Without provenance | Details for PREFS-0.2.60.tar.gz |
Release files / PREFS-0.2.60.tar.gz
| Download URL | PREFS-0.2.60.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95d83c1662d4ca77844d917e7dbe5967f0692e829fe9159eb9c0044131023e88
|
|
BLAKE2b-256 checksum How to use checksums |
fffd91a54bbdd7c6bdff80e909d334b25549016fd4238f8db6191a01ed0a241c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
|
Security for prefs 0.2.60
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.