This release is a pre-release and may not be stable for production use.
Slots Class
A modern, efficient object model using __slots__.
Reap the performance benefits of slots-based objects while avoiding some of python's problematic dynamic behaviors.
Installation
pip install slots-class
Usage
Slots are assigned to the class statically at load time.
>>> from slots_class import SlotsClass
>>> class MyObject(SlotsClass):
... def __init__(self, x):
... self.x = x
... self.y = 10
...
... def set_z(self, value):
... self._z = value
>>> MyObject.__slots__
('_z', 'x', 'y')
Metadata
Release files for slots-class 0.1.0a2
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 |
|---|---|---|---|---|
| slots_class-0.1.0a2.tar.gz | 10.3 kB | With provenance | Details for slots_class-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slots_class-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for slots_class-0.1.0a2-py3-none-any.whl |
Total release size: 17.5 kB
Release files / slots_class-0.1.0a2.tar.gz
| Download URL | slots_class-0.1.0a2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b160566870eb513b4633b7985d9becb55df199839d75adfd4ca5270b16cc09d5
|
|
BLAKE2b-256 checksum How to use checksums |
2dfcedc711a4a480d2216016e14421072d9255ddf20a7429b2d9ffa32d08821a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.
Transparency logRelease files / slots_class-0.1.0a2-py3-none-any.whl
| Download URL | slots_class-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cacd1f70d156f84fd8aec69777fdd8466c73d14c8fdc593712964fbe4838bf3
|
|
BLAKE2b-256 checksum How to use checksums |
b177f66e7932f96f86683184c1cceabd809aade4f4f290ca67d14347669ecc81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.
Transparency logSecurity for slots-class 0.1.0a2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for slots_class-0.1.0a2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.
Transparency logA 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.