A Python settings manager package that allows you to make settings handling easy.
Project description
SettingsManager
A simple Python class for managing configuration settings using an INI file. The class provides methods to load, save, get, and set configuration values, with support for default settings and type conversion.
Features
- Load and save settings from/to an INI file.
- Apply default settings if the configuration file does not exist.
- Get configuration values with optional type conversion (
bool,int,float). - Set configuration values, ensuring the section exists before setting the key-value pair.
- Uses Python's
configparsermodule for parsing INI files.
Installation
You can install the package via pip (once it's published to PyPi):
pip install settingsmanager
Project details
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 pietro_settings_manager-1.0.1.tar.gz.
File metadata
- Download URL: pietro_settings_manager-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9629401452fd771615cd27750a2b3a6edb523492aaa869090d4abfc7ee3e673
|
|
| MD5 |
22d1627e1aa79cccb0cfa7f4fc0df3ab
|
|
| BLAKE2b-256 |
8f95ac726a933119600286ae30321be6c7bdbc3a85b0bcaa195be4ba3938ae80
|
Provenance
The following attestation bundles were made for pietro_settings_manager-1.0.1.tar.gz:
Publisher:
publish.yml on P1etrodev/settings-manager
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pietro_settings_manager-1.0.1.tar.gz -
Subject digest:
b9629401452fd771615cd27750a2b3a6edb523492aaa869090d4abfc7ee3e673 - Sigstore transparency entry: 175308838
- Sigstore integration time:
-
Permalink:
P1etrodev/settings-manager@864a6340e370c629c3d199d29e506645064fcc7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/P1etrodev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@864a6340e370c629c3d199d29e506645064fcc7b -
Trigger Event:
push
-
Statement type:
File details
Details for the file pietro_settings_manager-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pietro_settings_manager-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3406c186de91acf8570890cb0de4149042d7ca3016e4f8d2cfc8142c8e0ac6b1
|
|
| MD5 |
c36a2ee889c994a029b9cd7dd215e8ff
|
|
| BLAKE2b-256 |
b5ecd14e15b528d4d5d9783dead255f04945d3c27ce4b38acdaa7e631cc192dc
|
Provenance
The following attestation bundles were made for pietro_settings_manager-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on P1etrodev/settings-manager
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pietro_settings_manager-1.0.1-py3-none-any.whl -
Subject digest:
3406c186de91acf8570890cb0de4149042d7ca3016e4f8d2cfc8142c8e0ac6b1 - Sigstore transparency entry: 175308839
- Sigstore integration time:
-
Permalink:
P1etrodev/settings-manager@864a6340e370c629c3d199d29e506645064fcc7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/P1etrodev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@864a6340e370c629c3d199d29e506645064fcc7b -
Trigger Event:
push
-
Statement type: