Skip to main content

A Python package for managing constants effectively.

Project description

setconstant

setconstant is a Python package designed to help developers manage constants with type safety, ensuring that constants are defined once and cannot be redefined. This package is perfect for maintaining clean and error-free code when working with immutable values.


Features

  • Type-safe constants: Supports integer, float, and string constants.
  • Prevents redefinition: Ensures constants cannot be reassigned after declaration.
  • Easy retrieval and deletion: Retrieve or delete constants as needed.
  • Custom error handling: Provides descriptive errors for invalid operations.

Installation

Install the package from PyPI:

pip install setconstant

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

setconstant-0.1.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

setconstant-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file setconstant-0.1.3.tar.gz.

File metadata

  • Download URL: setconstant-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for setconstant-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d640ed863ff02b350164c51464f1ccf11b5794488dd5305b8d5ce448a6935f02
MD5 3e8124abdc65f32fa87d5a1d58093ca8
BLAKE2b-256 57fb81a9a02e7a619cd65e7241f1ca1a511f9bffa21ff85e5270bc2d1b52feb9

See more details on using hashes here.

File details

Details for the file setconstant-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: setconstant-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for setconstant-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f523cc38eb820aa5896bf5fd87b45ad0141811a20b228137403d2bd41d1c4300
MD5 1175278371a84833c1a9ca2bc392be2c
BLAKE2b-256 1ebe2ef16b328d9aa2aa30957ad7a7fd9200b3344d2479338ba5e64616ce7a64

See more details on using hashes here.

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