Skip to main content

pyconstlock

A simple Python utility to enforce constant variables.

Installation

pip install pyconstlock


Usage

from pyconstlock import Const

const = Const()

const.API_KEY = "abc123"
const.MAX_USERS = 50
const.APP_NAME = "My App"

print(const.API_KEY)
print(const.MAX_USERS)
print(const.APP_NAME)

const.MAX_USERS = 100  # error

Features

-Prevent reassignment
-Prevent deletion
-Enforce uppercase naming

Metadata

Release files for pyconstlock 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyconstlock 0.1.1
File Size Uploaded Provenance Actions
pyconstlock-0.1.1.tar.gz 1.7 kB Without provenance Details for pyconstlock-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 3.7 kB

Release files / pyconstlock-0.1.1.tar.gz

Download URL pyconstlock-0.1.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3246b734ebbf1ef843c096d1f95621fd8c2c025ec1fd173ac1d648bbbdf8d8af
BLAKE2b-256 checksum
How to use checksums
4695de79017f0c6e9817ed8594cb7809a43a49d4f6613b28efc81e788391c130
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pyconstlock-0.1.1-py3-none-any.whl

Download URL pyconstlock-0.1.1-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d50d8d6ce68f164ef07986c1eb57c208529f9846862c0a4337a33707d58a95e9
BLAKE2b-256 checksum
How to use checksums
823c38dccb3ffceb81ef9441568f8526715d883da59768e328c086db4d102694
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for pyconstlock 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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