SettingsFile
Autoload and autoupdate your configuration with native implementation
Installation
$ pip install settingsfile
Quickstart
from settingsfile import Settings
settings = Settings('config.json')
# use settings object instance as a dict
settings['language'] = 'fr'
# however, you can use it via class attributes too with caution
settings.language = 'fr'
print(settings['language']) # 'fr'
print(settings.language) # 'fr'
While using the module via class attributes, there are some names that are reserved and cannot be used as they would conflict. Hence, avoid using commonplace names via attributes such as path, json, name. Of course, you can use these names in peace via dict-like assignment.
Metadata
Release files for settingsfile 1.0.2
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 |
|---|---|---|---|---|
| settingsfile-1.0.2.tar.gz | 2.0 kB | Without provenance | Details for settingsfile-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| settingsfile-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for settingsfile-1.0.2-py3-none-any.whl |
Total release size: 5.3 kB
Release files / settingsfile-1.0.2.tar.gz
| Download URL | settingsfile-1.0.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
070e4edd3968003a422ccfff2c2764dca765341152b5ee129ffaf889fda43fe3
|
|
BLAKE2b-256 checksum How to use checksums |
86e9c21a138c222a34628c1850a5a2459d0e9220a367d78b7213ceb3563f0bf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.6.9
|
Release files / settingsfile-1.0.2-py3-none-any.whl
| Download URL | settingsfile-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2aff107ea202e70197f632084e95fc75f47c09f2f81cc76098e95ac68d286a1
|
|
BLAKE2b-256 checksum How to use checksums |
2069bce28236fb0ef2fc821c7f996ea7c7b29c7a88d82ef912164916ebc6af1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.6.9
|
Security for settingsfile 1.0.2
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.