Skip to main content

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.

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)

Source distribution for settingsfile 1.0.2
File Size Uploaded
settingsfile-1.0.2.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for settingsfile 1.0.2
File Interpreter ABI Platform
settingsfile-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page