Solterón
Descripción
Solteron es un módulo de Python que incluye una meta-clase, del mismo nombre, que puede ser heredada para garantizar una correcta implementación del patrón 'Singleton' en tipos definidos por el usuario. Esto se logra interfiriendo con el curso de construcción de las instancias de clases marcadas con metaclass=Solteron, devolviendo la instancia ya creada o instanciando una nueva sólo en caso que no exista.
Instalación
Puede decargar e instalar solteron utilizando el manejador de paquetes PIP, según se indica a continuación:
Ejecute el siguiente comando en la terminal:
pip install solteron
Uso Básico
Puede emplear tanto Solteron como Singleton en la definición de la clase para garantizar que el patró se aplique.
from solteron import Solteron, Singleton
class MiSingleton(metaclass = Solteron):
...
class MiOtroSingleton(metaclass = Singleton)
Metadata
Release files for solteron 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solteron-0.1.5.tar.gz | 3.7 kB | Without provenance | Details for solteron-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solteron-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for solteron-0.1.5-py3-none-any.whl |
Total release size: 7.7 kB
Release files / solteron-0.1.5.tar.gz
| Download URL | solteron-0.1.5.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd98ce19767a057b6f5f0265fb371923f9853b232112a918cc3db5360fedfa72
|
|
BLAKE2b-256 checksum How to use checksums |
93519d0d7a4bb6e40256118260d5edebbc0e31b9e2ea4c896a67e76314632a58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / solteron-0.1.5-py3-none-any.whl
| Download URL | solteron-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
694d62464c4e9fcc4c3995ea958b89b664569a587bcf4daed2a275fbb10b9369
|
|
BLAKE2b-256 checksum How to use checksums |
ab79c2a74ea01fb4e3bc399daba7f6aa47cc79d1ac9fbc97a1884c4296539d3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for solteron 0.1.5
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.