Skip to main content

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 configparser module 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

pietro_settings_manager-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pietro_settings_manager-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for pietro_settings_manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b9629401452fd771615cd27750a2b3a6edb523492aaa869090d4abfc7ee3e673
MD5 22d1627e1aa79cccb0cfa7f4fc0df3ab
BLAKE2b-256 8f95ac726a933119600286ae30321be6c7bdbc3a85b0bcaa195be4ba3938ae80

See more details on using hashes here.

Provenance

The following attestation bundles were made for pietro_settings_manager-1.0.1.tar.gz:

Publisher: publish.yml on P1etrodev/settings-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pietro_settings_manager-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pietro_settings_manager-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3406c186de91acf8570890cb0de4149042d7ca3016e4f8d2cfc8142c8e0ac6b1
MD5 c36a2ee889c994a029b9cd7dd215e8ff
BLAKE2b-256 b5ecd14e15b528d4d5d9783dead255f04945d3c27ce4b38acdaa7e631cc192dc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page