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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d640ed863ff02b350164c51464f1ccf11b5794488dd5305b8d5ce448a6935f02
|
|
| MD5 |
3e8124abdc65f32fa87d5a1d58093ca8
|
|
| BLAKE2b-256 |
57fb81a9a02e7a619cd65e7241f1ca1a511f9bffa21ff85e5270bc2d1b52feb9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f523cc38eb820aa5896bf5fd87b45ad0141811a20b228137403d2bd41d1c4300
|
|
| MD5 |
1175278371a84833c1a9ca2bc392be2c
|
|
| BLAKE2b-256 |
1ebe2ef16b328d9aa2aa30957ad7a7fd9200b3344d2479338ba5e64616ce7a64
|