Metadata-Version: 2.4
Name: slots-class
Version: 0.1.0a2
Summary: A modern object model that uses __slots__
Project-URL: Homepage, https://github.com/mkzeender/slots-class
Project-URL: Documentation, https://github.com/mkzeender/slots-class
Author-email: Marckie Zeender <mkzeender@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: __slots__,attr,attribute,class,dataclass,slots
Requires-Python: >=3.13
Description-Content-Type: text/markdown

# 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.

```python
>>> 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')

```
