defaultsettings - Handle settings with default for python. Serialized to JSON
Handle settings files in python. Serialize to JSON.
Usage
import defaultsettings
# Create new settings template
settings = defaultsettings.Settings()
# Set default values
Settings.default("key", "one")
settings.default("key2", range(5))
# Save settings to file
settings.save("pathname.json")
# Load settings
settings.load("pathname.json")
# Current settings, default and loaded config
print settings.data
# Change data
settings.data["key"] = "two"
# Save config file with new data
settings.save("pathname.json")
Metadata
Release files for defaultsettings 0.0.3
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 |
|---|---|---|---|---|
| defaultsettings-0.0.3.tar.gz | 2.6 kB | Without provenance | Details for defaultsettings-0.0.3.tar.gz |
Release files / defaultsettings-0.0.3.tar.gz
| Download URL | defaultsettings-0.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c76ff48f402ea381d53c574ff387814575e32d1a8429692f13ab1324ebd51aa
|
|
BLAKE2b-256 checksum How to use checksums |
8c0e25de84f404f0576a965a8352891d906ea48344f60b40d80bc257f1100531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for defaultsettings 0.0.3
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.