Skip to main content

PySingletonMeta

A lightweight singleton metaclass for clean and comfy imports.


Installation

pip install PySingletonMeta

Example

from pysingletonmeta import SingletonMeta

class StreamingService(metaclass=SingletonMeta):
    pass

a = StreamingService()
b = StreamingService()

assert a is b  # True

That’s all you need.

Metadata

Release files for PySingletonMeta 0.1.0.3

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

Source distribution (sdist)

Source distribution for PySingletonMeta 0.1.0.3
File Size Uploaded
pysingletonmeta-0.1.0.3.tar.gz 2.8 kB Details

Release files / pysingletonmeta-0.1.0.3.tar.gz

Download URL pysingletonmeta-0.1.0.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d991b8986feb8513f1ae31115e16760582e640e44e725d54a19f39ec97e01566
BLAKE2b-256 checksum
How to use checksums
7a08a03706ff2aaf82ad64f2caacb4cb4123cb714a727e77ee3dd24216b85e3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0.3 This release

1 release file

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