Skip to main content

named-env

Class-based environment variables typed specification.

Installation

pip install named-env

Usage example

from named_env import EnvironmentNamespace, RequiredInteger
import os


class WebApplicationEnvironmentNamespace(EnvironmentNamespace):
    WEB_SERVER_PORT = RequiredInteger()


env = WebApplicationEnvironmentNamespace()

if __name__ == "__main__":
    os.environ["WEB_SERVER_PORT"] = "80"
    print(env.WEB_SERVER_PORT)  # 80
    print(type(env.WEB_SERVER_PORT))  # int

Metadata

Release files for named-env 2.4.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 named-env 2.4.1
File Size Uploaded Provenance Actions
named_env-2.4.1.tar.gz 6.1 kB Without provenance Details for named_env-2.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for named-env 2.4.1
File Interpreter ABI Platform Actions
named_env-2.4.1-py3-none-any.whl Python 3 none any Details for named_env-2.4.1-py3-none-any.whl

Total release size: 12.3 kB

Release files / named_env-2.4.1.tar.gz

Download URL named_env-2.4.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72b2cff18bb2c465fcd63bbf786b5d854900980f35b139259a36199d85756154
BLAKE2b-256 checksum
How to use checksums
f17ff54b1737c9450c61d8c395e0a62b63a21e801b0ae9edbc5cf97ce0652d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.16 Darwin/24.2.0

Release files / named_env-2.4.1-py3-none-any.whl

Download URL named_env-2.4.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0540a6a1361a7646b1b2b63cd0ec02a387b0d78e5338800d6e57619cd4218400
BLAKE2b-256 checksum
How to use checksums
1f23ec6d62385cd7d00bca9360869dfefe44a5f9f7cf78cecc399373d405e664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.16 Darwin/24.2.0

Security for named-env 2.4.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.

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