recordclass


Namerecordclass JSON
Version 0.21.1 PyPI version JSON
download
home_pagehttps://github.com/intellimath/recordclass
SummaryMutable variant of namedtuple -- recordclass, which support assignments, compact dataclasses and other memory saving variants.
upload_time2023-11-27 16:44:07
maintainerZaur Shibzukhov
docs_urlNone
authorZaur Shibzukhov
requires_python
licenseMIT License
keywords namedtuple recordclass dataclass dataobject
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Recordclass library

**Recordclass** is [MIT Licensed](http://opensource.org/licenses/MIT) python library.
It was started as a "proof of concept" for the problem of fast "mutable"
alternative of `namedtuple` (see [question](https://stackoverflow.com/questions/29290359/existence-of-mutable-named-tuple-in-python) on [stackoverflow](https://stackoverflow.com)).
It was evolved further in order to provide more memory saving, fast and flexible types.

**Recordclass** library provide record/data-like classes that do not participate in cyclic *garbage collection* (GC) mechanism by default, but support only *reference counting* for garbage collection.
The instances of such classes havn't `PyGC_Head` prefix in the memory, which decrease their size and have a little faster path for the instance creation and deallocation.
This may make sense in cases where it is necessary to limit the size of the objects as much as possible, provided that they will never be part of references cycles in the application.
For example, when an object represents a record with fields with values of simple types by convention (`int`, `float`, `str`, `date`/`time`/`datetime`, `timedelta`, etc.).

In order to illustrate this, consider a simple class with type hints:

    class Point:
        x: int
        y: int

By tacit agreement instances of the class `Point` is supposed to have attributes `x` and `y` with values of `int` type. Assigning other types of values, which are not subclass of `int`, should be considered as a violation of the agreement.

Other examples are non-recursive data structures in which all leaf elements represent a value of an atomic type.
Of course, in python, nothing prevent you from “shooting yourself in the foot" by creating the reference cycle in the script or application code.
But in many cases, this can still be avoided provided that the developer understands what he is doing and uses such classes in the codebase with care.
Another option is to use static code analyzers along with type annotations to monitor compliance with typehints.

The library is built on top of the base class `dataobject`. The type of `dataobject` is special metaclass `datatype`.
   It control creation  of subclasses, which  will not participate in cyclic GC and do not contain `PyGC_Head`-prefix, `__dict__`  and `__weakref__`  by default.
   As the result the instance of such class need less memory.
   It's memory footprint is similar to memory footprint of instances of the classes with `__slots__` but without `PyGC_Head`. So the difference in memory size is equal to the size of `PyGC_Head`.
   It also tunes `basicsize` of the instances, creates descriptors for the fields and etc.
   All subclasses of `dataobject` created by `class statement` support `attrs`/`dataclasses`-like API.
   For example:

        from recordclass import dataobject, astuple, asdict
        class Point(dataobject):
            x:int
            y:int

        >>> p = Point(1, 2)
        >>> astuple(p)
        (1, 2)
        >>> asdict(p)
        {'x':1, 'y':2}

The `recordclass` factory create dataobject-based subclass with specified fields and the support of `namedtuple`-like API.
   By default it will not participate in cyclic GC too.

        >>> from recordclass import recordclass
        >>> Point = recordclass('Point', 'x y')
        >>> p = Point(1, 2)
        >>> p.y = -1
        >>> print(p._astuple)
        (1, -1)
        >>> x, y = p
        >>> print(p._asdict)
        {'x':1, 'y':-1}

It also provide a factory function `make_dataclass` for creation of subclasses of `dataobject` with the specified field names.
   These subclasses support `attrs`/`dataclasses`-like API. It's equivalent to creating subclasses of dataobject using `class statement`.
   For example:

        >>> Point = make_dataclass('Point', 'x y')
        >>> p = Point(1, 2)
        >>> p.y = -1
        >>> print(p.x, p.y)
        1 -1

   If one want to use some sequence for initialization then:

        >>> p = Point(*sequence)


There is also a factory function `make_arrayclass` for creation of the subclass of `dataobject`, which can be considered as a compact array of simple objects.
   For example:

        >>> Pair = make_arrayclass(2)
        >>> p = Pair(2, 3)
        >>> p[1] = -1
        >>> print(p)
        Pair(2, -1)

The library provide in addition the classes `lightlist` (immutable) and `litetuple`, which considers as list-like and tuple-like *light* containers in order to save memory. They do not supposed to participate in cyclic GC too. Mutable variant of litetuple is called by `mutabletuple`.
    For example:

        >>> lt = litetuple(1, 2, 3)
        >>> mt = mutabletuple(1, 2, 3)
        >>> lt == mt
        True
        >>> mt[-1] = -3
        >>> lt == mt
        False
        >>> print(sys.getsizeof((1,2,3)), sys.getsizeof(litetuple(1,2,3)))
        64 48

Note if one like create `litetuple` or `mutabletuple` from some iterable then:

        >>> seq = [1,2,3]
        >>> lt = litetuple(*seq)
        >>> mt = mutabletuple(*seq)

### Memory footprint

The following table explain memory footprints of the  `dataobject`-based objects and litetuples:

<table border="1" class="dataframe">
  <thead>
    <tr style="text-align: right;">
      <th>tuple/namedtuple</th>
      <th>class with __slots__</th>
      <th>recordclass/dataobject</th>
      <th>litetuple/mutabletuple</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>g+b+s+n&times;p</td>
      <td>g+b+n&times;p</td>
      <td>b+n&times;p</td>
      <td>b+s+n&times;p</td>
    </tr>
  </tbody>
</table>

where:

 * b = sizeof(PyObject)
 * s = sizeof(Py_ssize_t)
 * n = number of items
 * p = sizeof(PyObject*)
 * g = sizeof(PyGC_Head)

This is useful in that case when you absolutely sure that reference cycle isn't supposed.
For example, when all field values are instances of atomic types.
As a result the size of the instance is decreased by 24-32 bytes for cpython 3.4-3.7 and by 16 bytes for cpython >=3.8.

### Performance counters

Here is the table with performance counters, which was measured using `tools/perfcounts.py` script:

* recordclass 0.21, python 3.10, debian/testing linux, x86-64:

<table border="1" class="dataframe">
  <thead>
    <tr style="text-align: right;">
      <th>id</th>
      <th>size</th>
      <th>new</th>
      <th>getattr</th>
      <th>setattr</th>
      <th>getitem</th>
      <th>setitem</th>
      <th>getkey</th>
      <th>setkey</th>
      <th>iterate</th>
      <th>copy</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>litetuple</td>
      <td>48</td>
      <td>0.18</td>
      <td></td>
      <td></td>
      <td>0.2</td>
      <td></td>
      <td></td>
      <td></td>
      <td>0.33</td>
      <td>0.19</td>
    </tr>
    <tr>
      <td>mutabletuple</td>
      <td>48</td>
      <td>0.18</td>
      <td></td>
      <td></td>
      <td>0.21</td>
      <td>0.21</td>
      <td></td>
      <td></td>
      <td>0.33</td>
      <td>0.18</td>
    </tr>
    <tr>
      <td>tuple</td>
      <td>64</td>
      <td>0.24</td>
      <td></td>
      <td></td>
      <td>0.21</td>
      <td></td>
      <td></td>
      <td></td>
      <td>0.37</td>
      <td>0.16</td>
    </tr>
    <tr>
      <td>namedtuple</td>
      <td>64</td>
      <td>0.75</td>
      <td>0.23</td>
      <td></td>
      <td>0.21</td>
      <td></td>
      <td></td>
      <td></td>
      <td>0.33</td>
      <td>0.21</td>
    </tr>
    <tr>
      <td>class+slots</td>
      <td>56</td>
      <td>0.68</td>
      <td>0.29</td>
      <td>0.33</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>dataobject</td>
      <td>40</td>
      <td>0.25</td>
      <td>0.23</td>
      <td>0.29</td>
      <td>0.2</td>
      <td>0.22</td>
      <td></td>
      <td></td>
      <td>0.33</td>
      <td>0.2</td>
    </tr>
    <tr>
      <td>dataobject+gc</td>
      <td>56</td>
      <td>0.27</td>
      <td>0.22</td>
      <td>0.29</td>
      <td>0.19</td>
      <td>0.21</td>
      <td></td>
      <td></td>
      <td>0.35</td>
      <td>0.22</td>
    </tr>
    <tr>
      <td>dict</td>
      <td>232</td>
      <td>0.32</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>0.2</td>
      <td>0.24</td>
      <td>0.35</td>
      <td>0.25</td>
    </tr>
    <tr>
      <td>dataobject+map</td>
      <td>40</td>
      <td>0.25</td>
      <td>0.23</td>
      <td>0.3</td>
      <td></td>
      <td></td>
      <td>0.29</td>
      <td>0.29</td>
      <td>0.32</td>
      <td>0.2</td>
    </tr>
  </tbody>
</table>

* recordclass 0.21, python 3.11, debian/testing linux, x86-64:

<table>
    <thead>
        <tr>
            <th>id</th>
            <th>size</th>
            <th>new</th>
            <th>getattr</th>
            <th>setattr</th>
            <th>getitem</th>
            <th>setitem</th>
            <th>getkey</th>
            <th>setkey</th>
            <th>iterate</th>
            <th>copy</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>litetuple</td>
            <td>48</td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.18</td>
            <td>0.09</td>
        </tr>
        <tr>
            <td>mutabletuple</td>
            <td>48</td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td>0.11</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.18</td>
            <td>0.08</td>
        </tr>
        <tr>
            <td>tuple</td>
            <td>64</td>
            <td>0.1</td>
            <td> </td>
            <td> </td>
            <td>0.08</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.17</td>
            <td>0.1</td>
        </tr>
        <tr>
            <td>namedtuple</td>
            <td>64</td>
            <td>0.49</td>
            <td>0.13</td>
            <td> </td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.17</td>
            <td>0.13</td>
        </tr>
        <tr>
            <td>class+slots</td>
            <td>56</td>
            <td>0.31</td>
            <td>0.06</td>
            <td>0.06</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td>dataobject</td>
            <td>40</td>
            <td>0.13</td>
            <td>0.06</td>
            <td>0.06</td>
            <td>0.11</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.16</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>dataobject+gc</td>
            <td>56</td>
            <td>0.14</td>
            <td>0.06</td>
            <td>0.06</td>
            <td>0.1</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.16</td>
            <td>0.14</td>
        </tr>
        <tr>
            <td>dict</td>
            <td>184</td>
            <td>0.2</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.12</td>
            <td>0.13</td>
            <td>0.19</td>
            <td>0.13</td>
        </tr>
        <tr>
            <td>dataobject+map</td>
            <td>40</td>
            <td>0.12</td>
            <td>0.07</td>
            <td>0.06</td>
            <td> </td>
            <td> </td>
            <td>0.15</td>
            <td>0.16</td>
            <td>0.16</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>class</td>
            <td>56</td>
            <td>0.35</td>
            <td>0.06</td>
            <td>0.06</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
        </tr>
    </tbody>
</table>

* recordclas 0.21, python3.12, debian/testing linux, x86-64:

<table>
    <thead>
        <tr>
            <th>id</th>
            <th>size</th>
            <th>new</th>
            <th>getattr</th>
            <th>setattr</th>
            <th>getitem</th>
            <th>setitem</th>
            <th>getkey</th>
            <th>setkey</th>
            <th>iterate</th>
            <th>copy</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>litetuple</td>
            <td>48</td>
            <td>0.13</td>
            <td> </td>
            <td> </td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.19</td>
            <td>0.09</td>
        </tr>
        <tr>
            <td>mutabletuple</td>
            <td>48</td>
            <td>0.13</td>
            <td> </td>
            <td> </td>
            <td>0.11</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.18</td>
            <td>0.09</td>
        </tr>
        <tr>
            <td>tuple</td>
            <td>64</td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td>0.09</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.16</td>
            <td>0.09</td>
        </tr>
        <tr>
            <td>namedtuple</td>
            <td>64</td>
            <td>0.52</td>
            <td>0.13</td>
            <td> </td>
            <td>0.11</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.16</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>class+slots</td>
            <td>56</td>
            <td>0.34</td>
            <td>0.08</td>
            <td>0.07</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td>dataobject</td>
            <td>40</td>
            <td>0.14</td>
            <td>0.08</td>
            <td>0.08</td>
            <td>0.11</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.17</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>dataobject+gc</td>
            <td>56</td>
            <td>0.15</td>
            <td>0.08</td>
            <td>0.07</td>
            <td>0.12</td>
            <td>0.12</td>
            <td> </td>
            <td> </td>
            <td>0.17</td>
            <td>0.13</td>
        </tr>
        <tr>
            <td>dict</td>
            <td>184</td>
            <td>0.19</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td>0.11</td>
            <td>0.14</td>
            <td>0.2</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>dataobject+map</td>
            <td>40</td>
            <td>0.14</td>
            <td>0.08</td>
            <td>0.08</td>
            <td> </td>
            <td> </td>
            <td>0.16</td>
            <td>0.17</td>
            <td>0.17</td>
            <td>0.12</td>
        </tr>
        <tr>
            <td>class</td>
            <td>48</td>
            <td>0.41</td>
            <td>0.08</td>
            <td>0.08</td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
        </tr>
    </tbody>
</table>


Main repository for `recordclass` is on [github](https://github.com/intellimath/recordclass).

Here is also a simple [example](https://github.com/intellimath/recordclass/blob/main/examples/what_is_recordclass.ipynb).

More examples can be found in the folder [examples](https://github.com/intellimath/recordclass/tree/main/examples).

## Quick start

### Installation

#### Installation from directory with sources

Install:

    >>> python3 setup.py install

Run tests:

    >>> python3 test_all.py

#### Installation from PyPI

Install:

    >>> pip3 install recordclass

Run tests:

    >>> python3 -c "from recordclass.test import *; test_all()"

### Quick start with dataobject

`Dataobject` is the base class for creation of data classes with fast instance creation and small memory footprint. They provide `dataclass`-like API.

First load inventory:

    >>> from recordclass import dataobject, asdict, astuple, as_dataclass, as_record

Define class one of the ways:

    class Point(dataobject):
        x: int
        y: int

or

    @as_dataclass()
    class Point:
        x: int
        y: int

or

    @as_record
    def Point(x:int, y:int): pass

or

    >>> Point = make_dataclass("Point", [("x",int), ("y",int)])

or

    >>> Point = make_dataclass("Point", {"x":int, "y",int})

Annotations of the fields are defined as a dict in `__annotations__`:

    >>> print(Point.__annotations__)
    {'x': <class 'int'>, 'y': <class 'int'>}

There is default text representation:

    >>> p = Point(1, 2)
    >>> print(p)
    Point(x=1, y=2)

The instances has a minimum memory footprint that is possible for CPython object, which contain only Python objects:

    >>> sys.getsizeof(p) # the output below for python 3.8+ (64bit)
    40
    >>> p.__sizeof__() == sys.getsizeof(p) # no additional space for cyclic GC support
    True

The instance is mutable by default:

    >>> p_id = id(p)
    >>> p.x, p.y = 10, 20
    >>> id(p) == p_id
    True
    >>> print(p)
    Point(x=10, y=20)

There are functions `asdict` and `astuple` for converting to `dict` and to `tuple`:

    >>> asdict(p)
    {'x':10, 'y':20}
    >>> astuple(p)
    (10, 20)

By default subclasses of dataobject are mutable. If one want make it immutable then there is the option `readonly=True`:

    class Point(dataobject, readonly=True):
        x: int
        y: int

    >>> p = Point(1,2)
    >>> p.x = -1
    . . . . . . . . . . . . .
    TypeError: item is readonly

By default subclasses of dataobject are not iterable by default.
If one want make it iterable then there is the option `iterable=True`:

    class Point(dataobject, iterable=True):
        x: int
        y: int

    >>> p = Point(1,2)
    >>> for x in p: print(x)
    1
    2

Default values are also supported::

    class CPoint(dataobject):
        x: int
        y: int
        color: str = 'white'

or

    >>> CPoint = make_dataclass("CPoint", [("x",int), ("y",int), ("color",str)], defaults=("white",))

    >>> p = CPoint(1,2)
    >>> print(p)
    Point(x=1, y=2, color='white')

But

    class PointInvalidDefaults(dataobject):
        x:int = 0
        y:int

is not allowed. A fields without default value may not appear after a field with default value.

There is an option `copy_default` (starting from 0.21) in order to assign a copy of the default value when creating an instance:

     class Polygon(dataobject, copy_default=True):
        points: list = []

    >>> pg1 = Polygon()
    >>> pg2 = Polygon()
    >>> assert pg1.points == pg2.points
    True
    >>> assert id(pg1.points) != id(pg2.points)
    True

A `Factory` (starting from 0.21) allows you to setup a factory function to calculate the default value:

    from recordclass import Factory

    class A(dataobject, copy_default=True):
        x: tuple = Factory( lambda: (list(), dict()) )

    >>> a = A()
    >>> b = A()
    >>> assert a.x == b.x
    True
    >>> assert id(a.x[0]) != id(b.x[0])
    True
    >>> assert id(a.x[1]) != id(b.x[1])
    True

If someone wants to define a class attribute, then there is a `ClassVar` trick:

    class Point(dataobject):
        x:int
        y:int
        color:ClassVar[int] = 0

    >>> print(Point.__fields__)
    ('x', 'y')
    >>> print(Point.color)
    0

If the default value for the `ClassVar`-attribute is not specified, 
it will just be excluded from the `__fields___`.

Starting with python 3.10 `__match_args__` is specified by default so that `__match_args__` == `__fields`.
User can define it's own during definition:

    class User(dataobject):
        first_name: str
        last_name: str
        age: int
        __match_args__ = 'first_name', 'last_name'

or        

    from recordclass import MATCH
    class User(dataobject):
        first_name: str
        last_name: str
        _: MATCH
        age: int

or

    User = make_dataclass("User", "first_name last_name * age")

### Quick start with recordclass

The `recordclass` factory function is designed to create classes that support `namedtuple`'s API, can be mutable and immutable, provide fast creation of the instances and have a minimum memory footprint.

First load inventory:

    >>> from recordclass import recordclass

Example with `recordclass`:

    >>> Point = recordclass('Point', 'x y')
    >>> p = Point(1,2)
    >>> print(p)
    Point(1, 2)
    >>> print(p.x, p.y)
    1 2
    >>> p.x, p.y = 1, 2
    >>> print(p)
    Point(1, 2)
    >>> sys.getsizeof(p) # the output below is for 64bit cpython3.8+
    32

Example with class statement and typehints:

    >>> from recordclass import RecordClass

    class Point(RecordClass):
       x: int
       y: int

    >>> print(Point.__annotations__)
    {'x': <class 'int'>, 'y': <class 'int'>}
    >>> p = Point(1, 2)
    >>> print(p)
    Point(1, 2)
    >>> print(p.x, p.y)
    1 2
    >>> p.x, p.y = 1, 2
    >>> print(p)
    Point(1, 2)

By default `recordclass`-based class instances doesn't participate in cyclic GC and therefore they are smaller than `namedtuple`-based ones. If one want to use it in scenarios with reference cycles then one have to use option `gc=True` (`gc=False` by default):

    >>> Node = recordclass('Node', 'root children', gc=True)

or

    class Node(RecordClass, gc=True):
         root: 'Node'
         chilren: list

The `recordclass` factory can also specify type of the fields:

    >>> Point = recordclass('Point', [('x',int), ('y',int)])

or

    >>> Point = recordclass('Point', {'x':int, 'y':int})

### Using dataobject-based classes with mapping protocol

    class FastMapingPoint(dataobject, mapping=True):
        x: int
        y: int

or

    FastMapingPoint = make_dataclass("FastMapingPoint", [("x", int), ("y", int)], mapping=True)

    >>> p = FastMappingPoint(1,2)
    >>> print(p['x'], p['y'])
    1 2
    >>> sys.getsizeof(p) # the output below for python 3.10 (64bit)
    32

### Using dataobject-based classes for recursive data without reference cycles

There is the option `deep_dealloc` (default value is `False`) for deallocation of recursive datastructures.
Let consider simple example:

    class LinkedItem(dataobject):
        val: object
        next: 'LinkedItem'

    class LinkedList(dataobject, deep_dealloc=True):
        start: LinkedItem = None
        end: LinkedItem = None

        def append(self, val):
            link = LinkedItem(val, None)
            if self.start is None:
                self.start = link
            else:
                self.end.next = link
            self.end = link

Without `deep_dealloc=True` deallocation of the instance of `LinkedList` will be failed if the length of the linked list is too large.
But it can be resolved with `__del__` method for clearing the linked list:

    def __del__(self):
        curr = self.start
        while curr is not None:
            next = curr.next
            curr.next = None
            curr = next

There is builtin more fast deallocation method using finalization mechanizm when `deep_dealloc=True`. In such case one don't need `__del__`  method for clearing the linked list.

> Note that for classes with `gc=True` this method is disabled: the python's cyclic GC is used in these cases.

For more details see notebook [example_datatypes](https://github.com/intellimath/recordclass/tree/main/examples/example_datatypes.ipynb).

### Changes:

#### 0.21.1

* Allow to specify `__match_args__`. For example,

         class User(dataobject):
             first_name: str
             last_name: str
             age: int
             __match_args__ = 'first_name', 'last_name'

  or

          User = make_dataclass("User", "first_name last_name * age")
  
* Add `@as_record` adapter for `def`-style decalarations of dataclasses
  that are considered as just a struct. For example:

        @as_record()
        def Point(x:float, y:float, meta=None): pass

        >>> p = Point(1,2)
        >>> print(p)
        Point(x=1, y=2, meta=None)

  It's almost equivalent to:
  
        Point = make_dataclass('Point', [('x':float), ('y',float),'meta'], (None,))

* The option `fast_new` will be removed in 0.22. It will be always as `fast_new=True` by creation.

        class Point(dataobject):
            x:int
            y:int

            def __new__(cls, x=0, y=0):
                 return dataobject.__new__(cls, x, y)
* Fix issues with `_PyUnicodeWriter` for python3.13.

#### 0.21

* Add a new option `copy_default` (default `False`) to allow assigning a copy of the default
  value for the field. For example:
  
       class A(dataobject, copy_default=True):
            l: list = []

       a = A()
       b = A()
       assert(a.l == b.l)
       assert(id(a.l) != id(b.l))

* Allow to inherit the options: `copy_default`, `gc`, `iterable`. For example:
  
       class Base(dataobject, copy_default=True):
          pass

      class A(Base):
            l: list = []

       a = A()
       b = A()
       assert a.l == b.l
       assert id(a.l) != id(b.l)

* Add `Factory` to specify factory function for default values. For example:

        from recordclass import Factory
        class A(dataobject):
            x: tuple = Factory(lambda: (list(), dict()))

        a = A()
        b = A()
        assert a.x == ([],{})
        assert id(a.x) != id(b.x)
        assert id(a.x[0]) != id(b.x[0])
        assert id(a.x[1]) != id(b.x[1])

        from recordclass import Factory
        class A(dataobject, copy_default=True):
            l: list = []
            x: tuple = Factory(lambda: (list(), dict()))

        a = A()
        b = A()
        assert a.x == ([],{})
        assert id(a.x) != id(b.x)
        assert a.l == []
        assert id(a.l) != id(b.l)

  * Recordclass supports python 3.12 (tested on linux/debian 11/12 and windows via appveyor).
  
#### 0.20.1

* Improve row_factory for `sqlite` on the ground of `dataobject`-based classes.
* Move recordclass repository to [github](https://github.com/intellimath/recordclass) from [bitbucket](hhtps://bitbucket.org).

#### 0.20

* Library codebase is compatible with python 3.12
  (tested for linux only, windows until python3.12 support on appveyor).
* Fix error with update of readonly attribute via `update` function.

#### 0.19.2

* Exception message for Cls(**kwargs) with invalid kweyword argument is more precise (#37).
* Add parameter `immutable_type` for python >= 3.11. If `immutable_type=True` then a generated class
  (not an instance) will be immutable. If class do not contain user defuned `__init__` and `__new__`
  then instance creation will be faster (via vectorcall protocol).

#### 0.19.1

* Fix regression with `C.attr=value` (with immutable class by default).

#### 0.19

* Add vectorcall protocal to `litetuple` and `mutabletuple`.
* Add vectorcall protocal to `dataobject`.
* Now dataobject's `op.__hash__` return `id(op)` by default.
  The option `hashable=True` make dataobject hashably by value.
* Now `dataobject`-based classes, `litetuple` and `mutabletuple` are support
  bytecode specializations since Python 3.11 for instance creation and for getattr/setattr.
* Fix `make` function for cases, when subclass have nontrivial `__init__`.
* Note for `dataobject`-based subclasses with non-trivial `__init__` one may want define also `__reduce__`.
  For example:

      def __reduce__(self):
        from recordclass import dataobject, make
        tp, args = dataobject.__reduce__(self)
        return make, (tp, args)


#### 0.18.4

* Fix a bug #35 with duplicating the field name during inheritance and mixing it with class level attributes.
* Allow use of ClassVar to define class level field.

#### 0.18.3

* Fix bug with a tuple as default value of the field.
* Fix defaults propagtion to subclasses.
* Fix some issues with pickling in the context of dill.

#### 0.18.2

* Slightly improve performance in the default `__init__`  when fields have default values or kwargs.
* Remove experimental pypy support: slow and difficult to predict memory footprint.
* Exclude experimental cython modules.

#### 0.18.1.1

* Repackage 0.18.1 with `use_cython=0`

#### 0.18.1

* Allow to initialize fields in the user defined `__init__`  method instead of `__new__`  (issue 29).
  If `__init__`  is defined by user then it's responsible for initialization of all fields.
  Note that this feature only work for mutable fields.
  Instances of the class with `readonly=True` must be initialized only in the default `__new__`.
  For example:

        class A(dataobject):
              x:int
              y:int

              def __init__(self, x, y):
                  self.x = x
                  self.y = y

* `fast_new=True` by default.
* Add `make_row_factory` for `sqlite3` :

        class Planet(dataobject):
            name:str
            radius:int

        >>> con = sql.connect(":memory:")
        >>> cur = con.execute("SELECT 'Earth' AS name, 6378 AS radius")
        >>> cur.row_factory = make_row_factory(Planet)
        >>> row = cur.fetchone()
        >>> print(row)
        Planet(name='Earth', radius=6378)

#### 0.18.0.1

* Exclude test_dataobject_match.py (for testing `match` statement) for python < 3.10.

#### 0.18

* Python 3.11 support.
* Adapt data object to take benefit from bytecode specialization in 3.11.
* Fix issue for argument with default value in `__new__`, which havn't `__repr__`
  that can be interpreted as valid python expression
  for creation of the default value.
* Add support for typing.ClassVar.
* Add `Py_TPFLAGS_SEQUENCE`  and `Py_TPFLAGS_MAPPING`.
* Add `__match_args__`  to support match protocol for dataobject-based subclasses.

#### 0.17.5

* Make to compile, to build and to test successfully for python 3.11.

#### 0.17.4

* Fixed error with missing `_PyObject_GC_Malloc` in 3.11.

#### 0.17.3

* Fix compatibility issue: restore gnu98 C-syntax.
* Fix remained issues with use of "Py_SIZE(op)" and "Py_TYPE(op)" as l-value.

#### 0.17.2

* Add support for python 3.10.
* There are no use of "Py_SIZE(op)" and "Py_TYPE(op)" as l-value.

#### 0.17.1

* Fix packaging issue with cython=1 in setup.py

#### 0.17

* Now recordclass library may be compiled for pypy3, but there is still no complete runtime compatibility with pypy3.
* Slighly imporove performance of `litetuple` / `mutabletuple`.
* Slighly imporove performance of `dataobject`-based subclasses.
* Add adapter `as_dataclass`. For example:

        @as_dataclass()
        class Point:
            x:int
            y:int

* Module _litelist is implemented in pure C.
* Make dataobject.__copy__ faster.

#### 0.16.3

* Add possibility for recordclasses to assighn values by key:

        A = recordclass("A", "x y", mapping=True)
        a = A(1,2)
        a['x'] = 100
        a['y'] = 200

#### 0.16.2

* Fix the packaging bug in 0.16.1.

#### 0.16.1

* Add `dictclass` factory function to generate class with `dict-like` API and without attribute access to the fields.
  Features: fast instance creation, small memory footprint.

#### 0.16

* `RecordClass` started to be a direct subclass of dataobject with `sequence=True` and support
  of `namedtuple`-like API.
  Insted of `RecordClass(name, fields, **kw)` for class creation
  use factory function `recordclass(name, fields, **kw)`
  (it allows to specify types).
* Add option api='dict'  to `make_dataclass` for creating class that support dict-like API.
* Now one can't remove dataobject's property from it's class using del or builting delattr.
  For example:

        >>> Point = make_dataclass("Point", "x y")
        >>> del Point.x
        ...........
        AttributeError: Attribute x of the class Point can't be deleted

* Now one can't delete field's value using del or builting delattr.
  For example:

        >>> p = Point(1, 2)
        >>> del p.x
        ...........
        AttributeError: The value can't be deleted"
  Insted one can use assighnment to None:

        >>> p = Point(1, 2)
        >>> p.x = None

* Slightly improve performance of the access by index of dataobject-based classes with option `sequence=True`.


#### 0.15.1

* Options `readonly` and `iterable` now can be sspecified via keyword arguments in class statement.
  For example:

        class Point(dataobject, readonly=True, iterable=True):
             x:int
             y:int

* Add `update(cls, **kwargs)` function to update attribute values.`


#### 0.15

* Now library supports only Python >= 3.6
* 'gc' and 'fast_new' options now can be specified as kwargs in class statement.
* Add a function `astuple(ob)` for transformation dataobject instance `ob` to a tuple.
* Drop datatuple based classes.
* Add function `make(cls, args, **kwargs)` to create instance of the class `cls`.
* Add function `clone(ob, **kwargs)` to clone dataobject instance `ob`.
* Make structclass as alias of make_dataclass.
* Add option 'deep_dealloc' (@clsconfig(deep_dealloc=True)) for deallocation
  instances of dataobject-based recursive subclasses.

#### 0.14.3:

* Subclasses of `dataobject` now support iterable and hashable protocols by default.

#### 0.14.2:

* Fix compilation issue for python 3.9.

#### 0.14.1:

* Fix issue with __hash__ when subclassing recordclass-based classes.

#### 0.14:

* Add __doc__ to generated  `dataobject`-based class in order to support `inspect.signature`.
* Add `fast_new` argument/option for fast instance creation.
* Fix refleak in `litelist`.
* Fix sequence protocol ability for `dataobject`/`datatuple`.
* Fix typed interface for `StructClass`.

#### 0.13.2

* Fix issue #14 with deepcopy of dataobjects.

#### 0.13.1

* Restore ``join_classes` and add new function `join_dataclasses`.

#### 0.13.0.1

* Remove redundant debug code.


#### 0.13

* Make `recordclass` compiled and work with cpython 3.8.
* Move repository to **git** instead of mercurial since bitbucket will drop support of mercurial repositories.
* Fix some potential reference leaks.


#### 0.12.0.1

* Fix missing .h files.

#### 0.12

* `clsconfig` now become the main decorator for tuning dataobject-based classes.
* Fix concatenation of mutabletuples (issue `#10`).

#### 0.11.1:

* `dataobject` instances may be deallocated faster now.

#### 0.11:

* Rename `memoryslots` to `mutabletuple`.
* `mutabletuple` and `immutabletuple` dosn't participate in cyclic garbage collection.
* Add `litelist` type for list-like objects, which doesn't participate in cyglic garbage collection.

#### 0.10.3:

* Introduce DataclassStorage and RecordclassStorage.
  They allow cache classes and used them without creation of new one.
* Add `iterable` decorator and argument. Now dataobject with fields isn't iterable by default.
* Move `astuple` to `dataobject.c`.

#### 0.10.2

* Fix error with dataobject's `__copy__`.
* Fix error with pickling of recordclasses and structclasses, which was appeared since 0.8.5
  (Thanks to Connor Wolf).

#### 0.10.1

* Now by default sequence protocol is not supported by default if dataobject has fields,
  but iteration is supported.
* By default argsonly=False for usability reasons.

#### 0.10

* Invent new factory function `make_class` for creation of different kind of dataobject classes
  without GC support by default.
* Invent new metaclass `datatype` and new base class `dataobject` for creation dataobject class using
  `class` statement.
  It have disabled GC support, but could be enabled by decorator `dataobject.enable_gc`.
  It support type hints (for python >= 3.6) and default values.
  It may not specify sequence of field names in `__fields__` when type hints are applied to all
  data attributes (for python >= 3.6).
* Now `recordclass`-based classes may not support cyclic garbage collection too.
  This reduces the memory footprint by the size of `PyGC_Head`.
  Now by default recordclass-based classes doesn't support cyclic garbage collection.

#### 0.9

* Change version to 0.9 to indicate a step forward.
* Cleanup `dataobject.__cinit__`.

#### 0.8.5

* Make `arrayclass`-based objects support setitem/getitem and `structclass`-based objects able
  to not support them. By default, as before `structclass`-based objects support setitem/getitem protocol.
* Now only instances of `dataobject` are comparable to 'arrayclass'-based and `structclass`-based instances.
* Now generated classes can be hashable.


#### 0.8.4

* Improve support for readonly mode for structclass and arrayclass.
* Add tests for arrayclass.

#### 0.8.3

* Add typehints support to structclass-based classes.


#### 0.8.2

* Remove `usedict`, `gc`, `weaklist` from the class `__dict__`.

#### 0.8.1

* Remove Cython dependence by default for building `recordclass` from the sources [Issue #7].

#### 0.8

* Add `structclass` factory function. It's analog of `recordclass` but with less memory
  footprint for it's instances (same as for instances of classes with `__slots__`) in the camparison
  with `recordclass` and `namedtuple`
  (it currently implemented with `Cython`).
* Add `arrayclass` factory function which produce a class for creation fixed size array.
  The benefit of such approach is also less memory footprint
  (it currently currently implemented with `Cython`).
* `structclass` factory has argument `gc` now. If `gc=False` (by default) support of cyclic garbage collection
  will switched off for instances of the created class.
* Add function `join(C1, C2)` in order to join two `structclass`-based classes C1 and C2.
* Add `sequenceproxy` function for creation of immutable and hashable proxy object from class instances,
  which implement access by index
  (it currently currently implemented with `Cython`).
* Add support for access to recordclass object attributes by idiom: `ob['attrname']` (Issue #5).
* Add argument `readonly` to recordclass factory to produce immutable namedtuple.
  In contrast to `collection.namedtuple` it use same descriptors as for
  regular recordclasses for performance increasing.

#### 0.7

* Make mutabletuple objects creation faster. As a side effect: when number of fields >= 8
  recordclass instance creation time is not biger than creation time of instaces of
  dataclasses with `__slots__`.
* Recordclass factory function now create new recordclass classes in the same way as namedtuple in 3.7
  (there is no compilation of generated python source of class).

#### 0.6

* Add support for default values in recordclass factory function in correspondence
  to same addition to namedtuple in python 3.7.

#### 0.5

* Change version to 0.5

#### 0.4.4

* Add support for default values in RecordClass (patches from Pedro von Hertwig)
* Add tests for RecorClass (adopted from python tests for NamedTuple)

#### 0.4.3

* Add support for typing for python 3.6 (patches from Vladimir Bolshakov).
* Resolve memory leak issue.

#### 0.4.2

* Fix memory leak in property getter/setter



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/intellimath/recordclass",
    "name": "recordclass",
    "maintainer": "Zaur Shibzukhov",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "szport@gmail.com",
    "keywords": "namedtuple,recordclass,dataclass,dataobject",
    "author": "Zaur Shibzukhov",
    "author_email": "szport@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/47/46aad629d64479c14a8c806c3a0ab2cd98214e940ab740e72e75b424b1a2/recordclass-0.21.1.tar.gz",
    "platform": "Linux",
    "description": "# Recordclass library\r\n\r\n**Recordclass** is [MIT Licensed](http://opensource.org/licenses/MIT) python library.\r\nIt was started as a \"proof of concept\" for the problem of fast \"mutable\"\r\nalternative of `namedtuple` (see [question](https://stackoverflow.com/questions/29290359/existence-of-mutable-named-tuple-in-python) on [stackoverflow](https://stackoverflow.com)).\r\nIt was evolved further in order to provide more memory saving, fast and flexible types.\r\n\r\n**Recordclass** library provide record/data-like classes that do not participate in cyclic *garbage collection* (GC) mechanism by default, but support only *reference counting* for garbage collection.\r\nThe instances of such classes havn't `PyGC_Head` prefix in the memory, which decrease their size and have a little faster path for the instance creation and deallocation.\r\nThis may make sense in cases where it is necessary to limit the size of the objects as much as possible, provided that they will never be part of references cycles in the application.\r\nFor example, when an object represents a record with fields with values of simple types by convention (`int`, `float`, `str`, `date`/`time`/`datetime`, `timedelta`, etc.).\r\n\r\nIn order to illustrate this, consider a simple class with type hints:\r\n\r\n    class Point:\r\n        x: int\r\n        y: int\r\n\r\nBy tacit agreement instances of the class `Point` is supposed to have attributes `x` and `y` with values of `int` type. Assigning other types of values, which are not subclass of `int`, should be considered as a violation of the agreement.\r\n\r\nOther examples are non-recursive data structures in which all leaf elements represent a value of an atomic type.\r\nOf course, in python, nothing prevent you from \u201cshooting yourself in the foot\" by creating the reference cycle in the script or application code.\r\nBut in many cases, this can still be avoided provided that the developer understands what he is doing and uses such classes in the codebase with care.\r\nAnother option is to use static code analyzers along with type annotations to monitor compliance with typehints.\r\n\r\nThe library is built on top of the base class `dataobject`. The type of `dataobject` is special metaclass `datatype`.\r\n   It control creation  of subclasses, which  will not participate in cyclic GC and do not contain `PyGC_Head`-prefix, `__dict__`  and `__weakref__`  by default.\r\n   As the result the instance of such class need less memory.\r\n   It's memory footprint is similar to memory footprint of instances of the classes with `__slots__` but without `PyGC_Head`. So the difference in memory size is equal to the size of `PyGC_Head`.\r\n   It also tunes `basicsize` of the instances, creates descriptors for the fields and etc.\r\n   All subclasses of `dataobject` created by `class statement` support `attrs`/`dataclasses`-like API.\r\n   For example:\r\n\r\n        from recordclass import dataobject, astuple, asdict\r\n        class Point(dataobject):\r\n            x:int\r\n            y:int\r\n\r\n        >>> p = Point(1, 2)\r\n        >>> astuple(p)\r\n        (1, 2)\r\n        >>> asdict(p)\r\n        {'x':1, 'y':2}\r\n\r\nThe `recordclass` factory create dataobject-based subclass with specified fields and the support of `namedtuple`-like API.\r\n   By default it will not participate in cyclic GC too.\r\n\r\n        >>> from recordclass import recordclass\r\n        >>> Point = recordclass('Point', 'x y')\r\n        >>> p = Point(1, 2)\r\n        >>> p.y = -1\r\n        >>> print(p._astuple)\r\n        (1, -1)\r\n        >>> x, y = p\r\n        >>> print(p._asdict)\r\n        {'x':1, 'y':-1}\r\n\r\nIt also provide a factory function `make_dataclass` for creation of subclasses of `dataobject` with the specified field names.\r\n   These subclasses support `attrs`/`dataclasses`-like API. It's equivalent to creating subclasses of dataobject using `class statement`.\r\n   For example:\r\n\r\n        >>> Point = make_dataclass('Point', 'x y')\r\n        >>> p = Point(1, 2)\r\n        >>> p.y = -1\r\n        >>> print(p.x, p.y)\r\n        1 -1\r\n\r\n   If one want to use some sequence for initialization then:\r\n\r\n        >>> p = Point(*sequence)\r\n\r\n\r\nThere is also a factory function `make_arrayclass` for creation of the subclass of `dataobject`, which can be considered as a compact array of simple objects.\r\n   For example:\r\n\r\n        >>> Pair = make_arrayclass(2)\r\n        >>> p = Pair(2, 3)\r\n        >>> p[1] = -1\r\n        >>> print(p)\r\n        Pair(2, -1)\r\n\r\nThe library provide in addition the classes `lightlist` (immutable) and `litetuple`, which considers as list-like and tuple-like *light* containers in order to save memory. They do not supposed to participate in cyclic GC too. Mutable variant of litetuple is called by `mutabletuple`.\r\n    For example:\r\n\r\n        >>> lt = litetuple(1, 2, 3)\r\n        >>> mt = mutabletuple(1, 2, 3)\r\n        >>> lt == mt\r\n        True\r\n        >>> mt[-1] = -3\r\n        >>> lt == mt\r\n        False\r\n        >>> print(sys.getsizeof((1,2,3)), sys.getsizeof(litetuple(1,2,3)))\r\n        64 48\r\n\r\nNote if one like create `litetuple` or `mutabletuple` from some iterable then:\r\n\r\n        >>> seq = [1,2,3]\r\n        >>> lt = litetuple(*seq)\r\n        >>> mt = mutabletuple(*seq)\r\n\r\n### Memory footprint\r\n\r\nThe following table explain memory footprints of the  `dataobject`-based objects and litetuples:\r\n\r\n<table border=\"1\" class=\"dataframe\">\r\n  <thead>\r\n    <tr style=\"text-align: right;\">\r\n      <th>tuple/namedtuple</th>\r\n      <th>class with __slots__</th>\r\n      <th>recordclass/dataobject</th>\r\n      <th>litetuple/mutabletuple</th>\r\n    </tr>\r\n  </thead>\r\n  <tbody>\r\n    <tr>\r\n      <td>g+b+s+n&times;p</td>\r\n      <td>g+b+n&times;p</td>\r\n      <td>b+n&times;p</td>\r\n      <td>b+s+n&times;p</td>\r\n    </tr>\r\n  </tbody>\r\n</table>\r\n\r\nwhere:\r\n\r\n * b = sizeof(PyObject)\r\n * s = sizeof(Py_ssize_t)\r\n * n = number of items\r\n * p = sizeof(PyObject*)\r\n * g = sizeof(PyGC_Head)\r\n\r\nThis is useful in that case when you absolutely sure that reference cycle isn't supposed.\r\nFor example, when all field values are instances of atomic types.\r\nAs a result the size of the instance is decreased by 24-32 bytes for cpython 3.4-3.7 and by 16 bytes for cpython >=3.8.\r\n\r\n### Performance counters\r\n\r\nHere is the table with performance counters, which was measured using `tools/perfcounts.py` script:\r\n\r\n* recordclass 0.21, python 3.10, debian/testing linux, x86-64:\r\n\r\n<table border=\"1\" class=\"dataframe\">\r\n  <thead>\r\n    <tr style=\"text-align: right;\">\r\n      <th>id</th>\r\n      <th>size</th>\r\n      <th>new</th>\r\n      <th>getattr</th>\r\n      <th>setattr</th>\r\n      <th>getitem</th>\r\n      <th>setitem</th>\r\n      <th>getkey</th>\r\n      <th>setkey</th>\r\n      <th>iterate</th>\r\n      <th>copy</th>\r\n    </tr>\r\n  </thead>\r\n  <tbody>\r\n    <tr>\r\n      <td>litetuple</td>\r\n      <td>48</td>\r\n      <td>0.18</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.2</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.33</td>\r\n      <td>0.19</td>\r\n    </tr>\r\n    <tr>\r\n      <td>mutabletuple</td>\r\n      <td>48</td>\r\n      <td>0.18</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.21</td>\r\n      <td>0.21</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.33</td>\r\n      <td>0.18</td>\r\n    </tr>\r\n    <tr>\r\n      <td>tuple</td>\r\n      <td>64</td>\r\n      <td>0.24</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.21</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.37</td>\r\n      <td>0.16</td>\r\n    </tr>\r\n    <tr>\r\n      <td>namedtuple</td>\r\n      <td>64</td>\r\n      <td>0.75</td>\r\n      <td>0.23</td>\r\n      <td></td>\r\n      <td>0.21</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.33</td>\r\n      <td>0.21</td>\r\n    </tr>\r\n    <tr>\r\n      <td>class+slots</td>\r\n      <td>56</td>\r\n      <td>0.68</td>\r\n      <td>0.29</td>\r\n      <td>0.33</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n    </tr>\r\n    <tr>\r\n      <td>dataobject</td>\r\n      <td>40</td>\r\n      <td>0.25</td>\r\n      <td>0.23</td>\r\n      <td>0.29</td>\r\n      <td>0.2</td>\r\n      <td>0.22</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.33</td>\r\n      <td>0.2</td>\r\n    </tr>\r\n    <tr>\r\n      <td>dataobject+gc</td>\r\n      <td>56</td>\r\n      <td>0.27</td>\r\n      <td>0.22</td>\r\n      <td>0.29</td>\r\n      <td>0.19</td>\r\n      <td>0.21</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.35</td>\r\n      <td>0.22</td>\r\n    </tr>\r\n    <tr>\r\n      <td>dict</td>\r\n      <td>232</td>\r\n      <td>0.32</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.2</td>\r\n      <td>0.24</td>\r\n      <td>0.35</td>\r\n      <td>0.25</td>\r\n    </tr>\r\n    <tr>\r\n      <td>dataobject+map</td>\r\n      <td>40</td>\r\n      <td>0.25</td>\r\n      <td>0.23</td>\r\n      <td>0.3</td>\r\n      <td></td>\r\n      <td></td>\r\n      <td>0.29</td>\r\n      <td>0.29</td>\r\n      <td>0.32</td>\r\n      <td>0.2</td>\r\n    </tr>\r\n  </tbody>\r\n</table>\r\n\r\n* recordclass 0.21, python 3.11, debian/testing linux, x86-64:\r\n\r\n<table>\r\n    <thead>\r\n        <tr>\r\n            <th>id</th>\r\n            <th>size</th>\r\n            <th>new</th>\r\n            <th>getattr</th>\r\n            <th>setattr</th>\r\n            <th>getitem</th>\r\n            <th>setitem</th>\r\n            <th>getkey</th>\r\n            <th>setkey</th>\r\n            <th>iterate</th>\r\n            <th>copy</th>\r\n        </tr>\r\n    </thead>\r\n    <tbody>\r\n        <tr>\r\n            <td>litetuple</td>\r\n            <td>48</td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.18</td>\r\n            <td>0.09</td>\r\n        </tr>\r\n        <tr>\r\n            <td>mutabletuple</td>\r\n            <td>48</td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.18</td>\r\n            <td>0.08</td>\r\n        </tr>\r\n        <tr>\r\n            <td>tuple</td>\r\n            <td>64</td>\r\n            <td>0.1</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.08</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.17</td>\r\n            <td>0.1</td>\r\n        </tr>\r\n        <tr>\r\n            <td>namedtuple</td>\r\n            <td>64</td>\r\n            <td>0.49</td>\r\n            <td>0.13</td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.17</td>\r\n            <td>0.13</td>\r\n        </tr>\r\n        <tr>\r\n            <td>class+slots</td>\r\n            <td>56</td>\r\n            <td>0.31</td>\r\n            <td>0.06</td>\r\n            <td>0.06</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject</td>\r\n            <td>40</td>\r\n            <td>0.13</td>\r\n            <td>0.06</td>\r\n            <td>0.06</td>\r\n            <td>0.11</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.16</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject+gc</td>\r\n            <td>56</td>\r\n            <td>0.14</td>\r\n            <td>0.06</td>\r\n            <td>0.06</td>\r\n            <td>0.1</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.16</td>\r\n            <td>0.14</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dict</td>\r\n            <td>184</td>\r\n            <td>0.2</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.12</td>\r\n            <td>0.13</td>\r\n            <td>0.19</td>\r\n            <td>0.13</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject+map</td>\r\n            <td>40</td>\r\n            <td>0.12</td>\r\n            <td>0.07</td>\r\n            <td>0.06</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.15</td>\r\n            <td>0.16</td>\r\n            <td>0.16</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>class</td>\r\n            <td>56</td>\r\n            <td>0.35</td>\r\n            <td>0.06</td>\r\n            <td>0.06</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n        </tr>\r\n    </tbody>\r\n</table>\r\n\r\n* recordclas 0.21, python3.12, debian/testing linux, x86-64:\r\n\r\n<table>\r\n    <thead>\r\n        <tr>\r\n            <th>id</th>\r\n            <th>size</th>\r\n            <th>new</th>\r\n            <th>getattr</th>\r\n            <th>setattr</th>\r\n            <th>getitem</th>\r\n            <th>setitem</th>\r\n            <th>getkey</th>\r\n            <th>setkey</th>\r\n            <th>iterate</th>\r\n            <th>copy</th>\r\n        </tr>\r\n    </thead>\r\n    <tbody>\r\n        <tr>\r\n            <td>litetuple</td>\r\n            <td>48</td>\r\n            <td>0.13</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.19</td>\r\n            <td>0.09</td>\r\n        </tr>\r\n        <tr>\r\n            <td>mutabletuple</td>\r\n            <td>48</td>\r\n            <td>0.13</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.18</td>\r\n            <td>0.09</td>\r\n        </tr>\r\n        <tr>\r\n            <td>tuple</td>\r\n            <td>64</td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.09</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.16</td>\r\n            <td>0.09</td>\r\n        </tr>\r\n        <tr>\r\n            <td>namedtuple</td>\r\n            <td>64</td>\r\n            <td>0.52</td>\r\n            <td>0.13</td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.16</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>class+slots</td>\r\n            <td>56</td>\r\n            <td>0.34</td>\r\n            <td>0.08</td>\r\n            <td>0.07</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject</td>\r\n            <td>40</td>\r\n            <td>0.14</td>\r\n            <td>0.08</td>\r\n            <td>0.08</td>\r\n            <td>0.11</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.17</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject+gc</td>\r\n            <td>56</td>\r\n            <td>0.15</td>\r\n            <td>0.08</td>\r\n            <td>0.07</td>\r\n            <td>0.12</td>\r\n            <td>0.12</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.17</td>\r\n            <td>0.13</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dict</td>\r\n            <td>184</td>\r\n            <td>0.19</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.11</td>\r\n            <td>0.14</td>\r\n            <td>0.2</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>dataobject+map</td>\r\n            <td>40</td>\r\n            <td>0.14</td>\r\n            <td>0.08</td>\r\n            <td>0.08</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td>0.16</td>\r\n            <td>0.17</td>\r\n            <td>0.17</td>\r\n            <td>0.12</td>\r\n        </tr>\r\n        <tr>\r\n            <td>class</td>\r\n            <td>48</td>\r\n            <td>0.41</td>\r\n            <td>0.08</td>\r\n            <td>0.08</td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n            <td> </td>\r\n        </tr>\r\n    </tbody>\r\n</table>\r\n\r\n\r\nMain repository for `recordclass` is on [github](https://github.com/intellimath/recordclass).\r\n\r\nHere is also a simple [example](https://github.com/intellimath/recordclass/blob/main/examples/what_is_recordclass.ipynb).\r\n\r\nMore examples can be found in the folder [examples](https://github.com/intellimath/recordclass/tree/main/examples).\r\n\r\n## Quick start\r\n\r\n### Installation\r\n\r\n#### Installation from directory with sources\r\n\r\nInstall:\r\n\r\n    >>> python3 setup.py install\r\n\r\nRun tests:\r\n\r\n    >>> python3 test_all.py\r\n\r\n#### Installation from PyPI\r\n\r\nInstall:\r\n\r\n    >>> pip3 install recordclass\r\n\r\nRun tests:\r\n\r\n    >>> python3 -c \"from recordclass.test import *; test_all()\"\r\n\r\n### Quick start with dataobject\r\n\r\n`Dataobject` is the base class for creation of data classes with fast instance creation and small memory footprint. They provide `dataclass`-like API.\r\n\r\nFirst load inventory:\r\n\r\n    >>> from recordclass import dataobject, asdict, astuple, as_dataclass, as_record\r\n\r\nDefine class one of the ways:\r\n\r\n    class Point(dataobject):\r\n        x: int\r\n        y: int\r\n\r\nor\r\n\r\n    @as_dataclass()\r\n    class Point:\r\n        x: int\r\n        y: int\r\n\r\nor\r\n\r\n    @as_record\r\n    def Point(x:int, y:int): pass\r\n\r\nor\r\n\r\n    >>> Point = make_dataclass(\"Point\", [(\"x\",int), (\"y\",int)])\r\n\r\nor\r\n\r\n    >>> Point = make_dataclass(\"Point\", {\"x\":int, \"y\",int})\r\n\r\nAnnotations of the fields are defined as a dict in `__annotations__`:\r\n\r\n    >>> print(Point.__annotations__)\r\n    {'x': <class 'int'>, 'y': <class 'int'>}\r\n\r\nThere is default text representation:\r\n\r\n    >>> p = Point(1, 2)\r\n    >>> print(p)\r\n    Point(x=1, y=2)\r\n\r\nThe instances has a minimum memory footprint that is possible for CPython object, which contain only Python objects:\r\n\r\n    >>> sys.getsizeof(p) # the output below for python 3.8+ (64bit)\r\n    40\r\n    >>> p.__sizeof__() == sys.getsizeof(p) # no additional space for cyclic GC support\r\n    True\r\n\r\nThe instance is mutable by default:\r\n\r\n    >>> p_id = id(p)\r\n    >>> p.x, p.y = 10, 20\r\n    >>> id(p) == p_id\r\n    True\r\n    >>> print(p)\r\n    Point(x=10, y=20)\r\n\r\nThere are functions `asdict` and `astuple` for converting to `dict` and to `tuple`:\r\n\r\n    >>> asdict(p)\r\n    {'x':10, 'y':20}\r\n    >>> astuple(p)\r\n    (10, 20)\r\n\r\nBy default subclasses of dataobject are mutable. If one want make it immutable then there is the option `readonly=True`:\r\n\r\n    class Point(dataobject, readonly=True):\r\n        x: int\r\n        y: int\r\n\r\n    >>> p = Point(1,2)\r\n    >>> p.x = -1\r\n    . . . . . . . . . . . . .\r\n    TypeError: item is readonly\r\n\r\nBy default subclasses of dataobject are not iterable by default.\r\nIf one want make it iterable then there is the option `iterable=True`:\r\n\r\n    class Point(dataobject, iterable=True):\r\n        x: int\r\n        y: int\r\n\r\n    >>> p = Point(1,2)\r\n    >>> for x in p: print(x)\r\n    1\r\n    2\r\n\r\nDefault values are also supported::\r\n\r\n    class CPoint(dataobject):\r\n        x: int\r\n        y: int\r\n        color: str = 'white'\r\n\r\nor\r\n\r\n    >>> CPoint = make_dataclass(\"CPoint\", [(\"x\",int), (\"y\",int), (\"color\",str)], defaults=(\"white\",))\r\n\r\n    >>> p = CPoint(1,2)\r\n    >>> print(p)\r\n    Point(x=1, y=2, color='white')\r\n\r\nBut\r\n\r\n    class PointInvalidDefaults(dataobject):\r\n        x:int = 0\r\n        y:int\r\n\r\nis not allowed. A fields without default value may not appear after a field with default value.\r\n\r\nThere is an option `copy_default` (starting from 0.21) in order to assign a copy of the default value when creating an instance:\r\n\r\n     class Polygon(dataobject, copy_default=True):\r\n        points: list = []\r\n\r\n    >>> pg1 = Polygon()\r\n    >>> pg2 = Polygon()\r\n    >>> assert pg1.points == pg2.points\r\n    True\r\n    >>> assert id(pg1.points) != id(pg2.points)\r\n    True\r\n\r\nA `Factory` (starting from 0.21) allows you to setup a factory function to calculate the default value:\r\n\r\n    from recordclass import Factory\r\n\r\n    class A(dataobject, copy_default=True):\r\n        x: tuple = Factory( lambda: (list(), dict()) )\r\n\r\n    >>> a = A()\r\n    >>> b = A()\r\n    >>> assert a.x == b.x\r\n    True\r\n    >>> assert id(a.x[0]) != id(b.x[0])\r\n    True\r\n    >>> assert id(a.x[1]) != id(b.x[1])\r\n    True\r\n\r\nIf someone wants to define a class attribute, then there is a `ClassVar` trick:\r\n\r\n    class Point(dataobject):\r\n        x:int\r\n        y:int\r\n        color:ClassVar[int] = 0\r\n\r\n    >>> print(Point.__fields__)\r\n    ('x', 'y')\r\n    >>> print(Point.color)\r\n    0\r\n\r\nIf the default value for the `ClassVar`-attribute is not specified, \r\nit will just be excluded from the `__fields___`.\r\n\r\nStarting with python 3.10 `__match_args__` is specified by default so that `__match_args__` == `__fields`.\r\nUser can define it's own during definition:\r\n\r\n    class User(dataobject):\r\n        first_name: str\r\n        last_name: str\r\n        age: int\r\n        __match_args__ = 'first_name', 'last_name'\r\n\r\nor        \r\n\r\n    from recordclass import MATCH\r\n    class User(dataobject):\r\n        first_name: str\r\n        last_name: str\r\n        _: MATCH\r\n        age: int\r\n\r\nor\r\n\r\n    User = make_dataclass(\"User\", \"first_name last_name * age\")\r\n\r\n### Quick start with recordclass\r\n\r\nThe `recordclass` factory function is designed to create classes that support `namedtuple`'s API, can be mutable and immutable, provide fast creation of the instances and have a minimum memory footprint.\r\n\r\nFirst load inventory:\r\n\r\n    >>> from recordclass import recordclass\r\n\r\nExample with `recordclass`:\r\n\r\n    >>> Point = recordclass('Point', 'x y')\r\n    >>> p = Point(1,2)\r\n    >>> print(p)\r\n    Point(1, 2)\r\n    >>> print(p.x, p.y)\r\n    1 2\r\n    >>> p.x, p.y = 1, 2\r\n    >>> print(p)\r\n    Point(1, 2)\r\n    >>> sys.getsizeof(p) # the output below is for 64bit cpython3.8+\r\n    32\r\n\r\nExample with class statement and typehints:\r\n\r\n    >>> from recordclass import RecordClass\r\n\r\n    class Point(RecordClass):\r\n       x: int\r\n       y: int\r\n\r\n    >>> print(Point.__annotations__)\r\n    {'x': <class 'int'>, 'y': <class 'int'>}\r\n    >>> p = Point(1, 2)\r\n    >>> print(p)\r\n    Point(1, 2)\r\n    >>> print(p.x, p.y)\r\n    1 2\r\n    >>> p.x, p.y = 1, 2\r\n    >>> print(p)\r\n    Point(1, 2)\r\n\r\nBy default `recordclass`-based class instances doesn't participate in cyclic GC and therefore they are smaller than `namedtuple`-based ones. If one want to use it in scenarios with reference cycles then one have to use option `gc=True` (`gc=False` by default):\r\n\r\n    >>> Node = recordclass('Node', 'root children', gc=True)\r\n\r\nor\r\n\r\n    class Node(RecordClass, gc=True):\r\n         root: 'Node'\r\n         chilren: list\r\n\r\nThe `recordclass` factory can also specify type of the fields:\r\n\r\n    >>> Point = recordclass('Point', [('x',int), ('y',int)])\r\n\r\nor\r\n\r\n    >>> Point = recordclass('Point', {'x':int, 'y':int})\r\n\r\n### Using dataobject-based classes with mapping protocol\r\n\r\n    class FastMapingPoint(dataobject, mapping=True):\r\n        x: int\r\n        y: int\r\n\r\nor\r\n\r\n    FastMapingPoint = make_dataclass(\"FastMapingPoint\", [(\"x\", int), (\"y\", int)], mapping=True)\r\n\r\n    >>> p = FastMappingPoint(1,2)\r\n    >>> print(p['x'], p['y'])\r\n    1 2\r\n    >>> sys.getsizeof(p) # the output below for python 3.10 (64bit)\r\n    32\r\n\r\n### Using dataobject-based classes for recursive data without reference cycles\r\n\r\nThere is the option `deep_dealloc` (default value is `False`) for deallocation of recursive datastructures.\r\nLet consider simple example:\r\n\r\n    class LinkedItem(dataobject):\r\n        val: object\r\n        next: 'LinkedItem'\r\n\r\n    class LinkedList(dataobject, deep_dealloc=True):\r\n        start: LinkedItem = None\r\n        end: LinkedItem = None\r\n\r\n        def append(self, val):\r\n            link = LinkedItem(val, None)\r\n            if self.start is None:\r\n                self.start = link\r\n            else:\r\n                self.end.next = link\r\n            self.end = link\r\n\r\nWithout `deep_dealloc=True` deallocation of the instance of `LinkedList` will be failed if the length of the linked list is too large.\r\nBut it can be resolved with `__del__` method for clearing the linked list:\r\n\r\n    def __del__(self):\r\n        curr = self.start\r\n        while curr is not None:\r\n            next = curr.next\r\n            curr.next = None\r\n            curr = next\r\n\r\nThere is builtin more fast deallocation method using finalization mechanizm when `deep_dealloc=True`. In such case one don't need `__del__`  method for clearing the linked list.\r\n\r\n> Note that for classes with `gc=True` this method is disabled: the python's cyclic GC is used in these cases.\r\n\r\nFor more details see notebook [example_datatypes](https://github.com/intellimath/recordclass/tree/main/examples/example_datatypes.ipynb).\r\n\r\n### Changes:\r\n\r\n#### 0.21.1\r\n\r\n* Allow to specify `__match_args__`. For example,\r\n\r\n         class User(dataobject):\r\n             first_name: str\r\n             last_name: str\r\n             age: int\r\n             __match_args__ = 'first_name', 'last_name'\r\n\r\n  or\r\n\r\n          User = make_dataclass(\"User\", \"first_name last_name * age\")\r\n  \r\n* Add `@as_record` adapter for `def`-style decalarations of dataclasses\r\n  that are considered as just a struct. For example:\r\n\r\n        @as_record()\r\n        def Point(x:float, y:float, meta=None): pass\r\n\r\n        >>> p = Point(1,2)\r\n        >>> print(p)\r\n        Point(x=1, y=2, meta=None)\r\n\r\n  It's almost equivalent to:\r\n  \r\n        Point = make_dataclass('Point', [('x':float), ('y',float),'meta'], (None,))\r\n\r\n* The option `fast_new` will be removed in 0.22. It will be always as `fast_new=True` by creation.\r\n\r\n        class Point(dataobject):\r\n            x:int\r\n            y:int\r\n\r\n            def __new__(cls, x=0, y=0):\r\n                 return dataobject.__new__(cls, x, y)\r\n* Fix issues with `_PyUnicodeWriter` for python3.13.\r\n\r\n#### 0.21\r\n\r\n* Add a new option `copy_default` (default `False`) to allow assigning a copy of the default\r\n  value for the field. For example:\r\n  \r\n       class A(dataobject, copy_default=True):\r\n            l: list = []\r\n\r\n       a = A()\r\n       b = A()\r\n       assert(a.l == b.l)\r\n       assert(id(a.l) != id(b.l))\r\n\r\n* Allow to inherit the options: `copy_default`, `gc`, `iterable`. For example:\r\n  \r\n       class Base(dataobject, copy_default=True):\r\n          pass\r\n\r\n      class A(Base):\r\n            l: list = []\r\n\r\n       a = A()\r\n       b = A()\r\n       assert a.l == b.l\r\n       assert id(a.l) != id(b.l)\r\n\r\n* Add `Factory` to specify factory function for default values. For example:\r\n\r\n        from recordclass import Factory\r\n        class A(dataobject):\r\n            x: tuple = Factory(lambda: (list(), dict()))\r\n\r\n        a = A()\r\n        b = A()\r\n        assert a.x == ([],{})\r\n        assert id(a.x) != id(b.x)\r\n        assert id(a.x[0]) != id(b.x[0])\r\n        assert id(a.x[1]) != id(b.x[1])\r\n\r\n        from recordclass import Factory\r\n        class A(dataobject, copy_default=True):\r\n            l: list = []\r\n            x: tuple = Factory(lambda: (list(), dict()))\r\n\r\n        a = A()\r\n        b = A()\r\n        assert a.x == ([],{})\r\n        assert id(a.x) != id(b.x)\r\n        assert a.l == []\r\n        assert id(a.l) != id(b.l)\r\n\r\n  * Recordclass supports python 3.12 (tested on linux/debian 11/12 and windows via appveyor).\r\n  \r\n#### 0.20.1\r\n\r\n* Improve row_factory for `sqlite` on the ground of `dataobject`-based classes.\r\n* Move recordclass repository to [github](https://github.com/intellimath/recordclass) from [bitbucket](hhtps://bitbucket.org).\r\n\r\n#### 0.20\r\n\r\n* Library codebase is compatible with python 3.12\r\n  (tested for linux only, windows until python3.12 support on appveyor).\r\n* Fix error with update of readonly attribute via `update` function.\r\n\r\n#### 0.19.2\r\n\r\n* Exception message for Cls(**kwargs) with invalid kweyword argument is more precise (#37).\r\n* Add parameter `immutable_type` for python >= 3.11. If `immutable_type=True` then a generated class\r\n  (not an instance) will be immutable. If class do not contain user defuned `__init__` and `__new__`\r\n  then instance creation will be faster (via vectorcall protocol).\r\n\r\n#### 0.19.1\r\n\r\n* Fix regression with `C.attr=value` (with immutable class by default).\r\n\r\n#### 0.19\r\n\r\n* Add vectorcall protocal to `litetuple` and `mutabletuple`.\r\n* Add vectorcall protocal to `dataobject`.\r\n* Now dataobject's `op.__hash__` return `id(op)` by default.\r\n  The option `hashable=True` make dataobject hashably by value.\r\n* Now `dataobject`-based classes, `litetuple` and `mutabletuple` are support\r\n  bytecode specializations since Python 3.11 for instance creation and for getattr/setattr.\r\n* Fix `make` function for cases, when subclass have nontrivial `__init__`.\r\n* Note for `dataobject`-based subclasses with non-trivial `__init__` one may want define also `__reduce__`.\r\n  For example:\r\n\r\n      def __reduce__(self):\r\n        from recordclass import dataobject, make\r\n        tp, args = dataobject.__reduce__(self)\r\n        return make, (tp, args)\r\n\r\n\r\n#### 0.18.4\r\n\r\n* Fix a bug #35 with duplicating the field name during inheritance and mixing it with class level attributes.\r\n* Allow use of ClassVar to define class level field.\r\n\r\n#### 0.18.3\r\n\r\n* Fix bug with a tuple as default value of the field.\r\n* Fix defaults propagtion to subclasses.\r\n* Fix some issues with pickling in the context of dill.\r\n\r\n#### 0.18.2\r\n\r\n* Slightly improve performance in the default `__init__`  when fields have default values or kwargs.\r\n* Remove experimental pypy support: slow and difficult to predict memory footprint.\r\n* Exclude experimental cython modules.\r\n\r\n#### 0.18.1.1\r\n\r\n* Repackage 0.18.1 with `use_cython=0`\r\n\r\n#### 0.18.1\r\n\r\n* Allow to initialize fields in the user defined `__init__`  method instead of `__new__`  (issue 29).\r\n  If `__init__`  is defined by user then it's responsible for initialization of all fields.\r\n  Note that this feature only work for mutable fields.\r\n  Instances of the class with `readonly=True` must be initialized only in the default `__new__`.\r\n  For example:\r\n\r\n        class A(dataobject):\r\n              x:int\r\n              y:int\r\n\r\n              def __init__(self, x, y):\r\n                  self.x = x\r\n                  self.y = y\r\n\r\n* `fast_new=True` by default.\r\n* Add `make_row_factory` for `sqlite3` :\r\n\r\n        class Planet(dataobject):\r\n            name:str\r\n            radius:int\r\n\r\n        >>> con = sql.connect(\":memory:\")\r\n        >>> cur = con.execute(\"SELECT 'Earth' AS name, 6378 AS radius\")\r\n        >>> cur.row_factory = make_row_factory(Planet)\r\n        >>> row = cur.fetchone()\r\n        >>> print(row)\r\n        Planet(name='Earth', radius=6378)\r\n\r\n#### 0.18.0.1\r\n\r\n* Exclude test_dataobject_match.py (for testing `match` statement) for python < 3.10.\r\n\r\n#### 0.18\r\n\r\n* Python 3.11 support.\r\n* Adapt data object to take benefit from bytecode specialization in 3.11.\r\n* Fix issue for argument with default value in `__new__`, which havn't `__repr__`\r\n  that can be interpreted as valid python expression\r\n  for creation of the default value.\r\n* Add support for typing.ClassVar.\r\n* Add `Py_TPFLAGS_SEQUENCE`  and `Py_TPFLAGS_MAPPING`.\r\n* Add `__match_args__`  to support match protocol for dataobject-based subclasses.\r\n\r\n#### 0.17.5\r\n\r\n* Make to compile, to build and to test successfully for python 3.11.\r\n\r\n#### 0.17.4\r\n\r\n* Fixed error with missing `_PyObject_GC_Malloc` in 3.11.\r\n\r\n#### 0.17.3\r\n\r\n* Fix compatibility issue: restore gnu98 C-syntax.\r\n* Fix remained issues with use of \"Py_SIZE(op)\" and \"Py_TYPE(op)\" as l-value.\r\n\r\n#### 0.17.2\r\n\r\n* Add support for python 3.10.\r\n* There are no use of \"Py_SIZE(op)\" and \"Py_TYPE(op)\" as l-value.\r\n\r\n#### 0.17.1\r\n\r\n* Fix packaging issue with cython=1 in setup.py\r\n\r\n#### 0.17\r\n\r\n* Now recordclass library may be compiled for pypy3, but there is still no complete runtime compatibility with pypy3.\r\n* Slighly imporove performance of `litetuple` / `mutabletuple`.\r\n* Slighly imporove performance of `dataobject`-based subclasses.\r\n* Add adapter `as_dataclass`. For example:\r\n\r\n        @as_dataclass()\r\n        class Point:\r\n            x:int\r\n            y:int\r\n\r\n* Module _litelist is implemented in pure C.\r\n* Make dataobject.__copy__ faster.\r\n\r\n#### 0.16.3\r\n\r\n* Add possibility for recordclasses to assighn values by key:\r\n\r\n        A = recordclass(\"A\", \"x y\", mapping=True)\r\n        a = A(1,2)\r\n        a['x'] = 100\r\n        a['y'] = 200\r\n\r\n#### 0.16.2\r\n\r\n* Fix the packaging bug in 0.16.1.\r\n\r\n#### 0.16.1\r\n\r\n* Add `dictclass` factory function to generate class with `dict-like` API and without attribute access to the fields.\r\n  Features: fast instance creation, small memory footprint.\r\n\r\n#### 0.16\r\n\r\n* `RecordClass` started to be a direct subclass of dataobject with `sequence=True` and support\r\n  of `namedtuple`-like API.\r\n  Insted of `RecordClass(name, fields, **kw)` for class creation\r\n  use factory function `recordclass(name, fields, **kw)`\r\n  (it allows to specify types).\r\n* Add option api='dict'  to `make_dataclass` for creating class that support dict-like API.\r\n* Now one can't remove dataobject's property from it's class using del or builting delattr.\r\n  For example:\r\n\r\n        >>> Point = make_dataclass(\"Point\", \"x y\")\r\n        >>> del Point.x\r\n        ...........\r\n        AttributeError: Attribute x of the class Point can't be deleted\r\n\r\n* Now one can't delete field's value using del or builting delattr.\r\n  For example:\r\n\r\n        >>> p = Point(1, 2)\r\n        >>> del p.x\r\n        ...........\r\n        AttributeError: The value can't be deleted\"\r\n  Insted one can use assighnment to None:\r\n\r\n        >>> p = Point(1, 2)\r\n        >>> p.x = None\r\n\r\n* Slightly improve performance of the access by index of dataobject-based classes with option `sequence=True`.\r\n\r\n\r\n#### 0.15.1\r\n\r\n* Options `readonly` and `iterable` now can be sspecified via keyword arguments in class statement.\r\n  For example:\r\n\r\n        class Point(dataobject, readonly=True, iterable=True):\r\n             x:int\r\n             y:int\r\n\r\n* Add `update(cls, **kwargs)` function to update attribute values.`\r\n\r\n\r\n#### 0.15\r\n\r\n* Now library supports only Python >= 3.6\r\n* 'gc' and 'fast_new' options now can be specified as kwargs in class statement.\r\n* Add a function `astuple(ob)` for transformation dataobject instance `ob` to a tuple.\r\n* Drop datatuple based classes.\r\n* Add function `make(cls, args, **kwargs)` to create instance of the class `cls`.\r\n* Add function `clone(ob, **kwargs)` to clone dataobject instance `ob`.\r\n* Make structclass as alias of make_dataclass.\r\n* Add option 'deep_dealloc' (@clsconfig(deep_dealloc=True)) for deallocation\r\n  instances of dataobject-based recursive subclasses.\r\n\r\n#### 0.14.3:\r\n\r\n* Subclasses of `dataobject` now support iterable and hashable protocols by default.\r\n\r\n#### 0.14.2:\r\n\r\n* Fix compilation issue for python 3.9.\r\n\r\n#### 0.14.1:\r\n\r\n* Fix issue with __hash__ when subclassing recordclass-based classes.\r\n\r\n#### 0.14:\r\n\r\n* Add __doc__ to generated  `dataobject`-based class in order to support `inspect.signature`.\r\n* Add `fast_new` argument/option for fast instance creation.\r\n* Fix refleak in `litelist`.\r\n* Fix sequence protocol ability for `dataobject`/`datatuple`.\r\n* Fix typed interface for `StructClass`.\r\n\r\n#### 0.13.2\r\n\r\n* Fix issue #14 with deepcopy of dataobjects.\r\n\r\n#### 0.13.1\r\n\r\n* Restore ``join_classes` and add new function `join_dataclasses`.\r\n\r\n#### 0.13.0.1\r\n\r\n* Remove redundant debug code.\r\n\r\n\r\n#### 0.13\r\n\r\n* Make `recordclass` compiled and work with cpython 3.8.\r\n* Move repository to **git** instead of mercurial since bitbucket will drop support of mercurial repositories.\r\n* Fix some potential reference leaks.\r\n\r\n\r\n#### 0.12.0.1\r\n\r\n* Fix missing .h files.\r\n\r\n#### 0.12\r\n\r\n* `clsconfig` now become the main decorator for tuning dataobject-based classes.\r\n* Fix concatenation of mutabletuples (issue `#10`).\r\n\r\n#### 0.11.1:\r\n\r\n* `dataobject` instances may be deallocated faster now.\r\n\r\n#### 0.11:\r\n\r\n* Rename `memoryslots` to `mutabletuple`.\r\n* `mutabletuple` and `immutabletuple` dosn't participate in cyclic garbage collection.\r\n* Add `litelist` type for list-like objects, which doesn't participate in cyglic garbage collection.\r\n\r\n#### 0.10.3:\r\n\r\n* Introduce DataclassStorage and RecordclassStorage.\r\n  They allow cache classes and used them without creation of new one.\r\n* Add `iterable` decorator and argument. Now dataobject with fields isn't iterable by default.\r\n* Move `astuple` to `dataobject.c`.\r\n\r\n#### 0.10.2\r\n\r\n* Fix error with dataobject's `__copy__`.\r\n* Fix error with pickling of recordclasses and structclasses, which was appeared since 0.8.5\r\n  (Thanks to Connor Wolf).\r\n\r\n#### 0.10.1\r\n\r\n* Now by default sequence protocol is not supported by default if dataobject has fields,\r\n  but iteration is supported.\r\n* By default argsonly=False for usability reasons.\r\n\r\n#### 0.10\r\n\r\n* Invent new factory function `make_class` for creation of different kind of dataobject classes\r\n  without GC support by default.\r\n* Invent new metaclass `datatype` and new base class `dataobject` for creation dataobject class using\r\n  `class` statement.\r\n  It have disabled GC support, but could be enabled by decorator `dataobject.enable_gc`.\r\n  It support type hints (for python >= 3.6) and default values.\r\n  It may not specify sequence of field names in `__fields__` when type hints are applied to all\r\n  data attributes (for python >= 3.6).\r\n* Now `recordclass`-based classes may not support cyclic garbage collection too.\r\n  This reduces the memory footprint by the size of `PyGC_Head`.\r\n  Now by default recordclass-based classes doesn't support cyclic garbage collection.\r\n\r\n#### 0.9\r\n\r\n* Change version to 0.9 to indicate a step forward.\r\n* Cleanup `dataobject.__cinit__`.\r\n\r\n#### 0.8.5\r\n\r\n* Make `arrayclass`-based objects support setitem/getitem and `structclass`-based objects able\r\n  to not support them. By default, as before `structclass`-based objects support setitem/getitem protocol.\r\n* Now only instances of `dataobject` are comparable to 'arrayclass'-based and `structclass`-based instances.\r\n* Now generated classes can be hashable.\r\n\r\n\r\n#### 0.8.4\r\n\r\n* Improve support for readonly mode for structclass and arrayclass.\r\n* Add tests for arrayclass.\r\n\r\n#### 0.8.3\r\n\r\n* Add typehints support to structclass-based classes.\r\n\r\n\r\n#### 0.8.2\r\n\r\n* Remove `usedict`, `gc`, `weaklist` from the class `__dict__`.\r\n\r\n#### 0.8.1\r\n\r\n* Remove Cython dependence by default for building `recordclass` from the sources [Issue #7].\r\n\r\n#### 0.8\r\n\r\n* Add `structclass` factory function. It's analog of `recordclass` but with less memory\r\n  footprint for it's instances (same as for instances of classes with `__slots__`) in the camparison\r\n  with `recordclass` and `namedtuple`\r\n  (it currently implemented with `Cython`).\r\n* Add `arrayclass` factory function which produce a class for creation fixed size array.\r\n  The benefit of such approach is also less memory footprint\r\n  (it currently currently implemented with `Cython`).\r\n* `structclass` factory has argument `gc` now. If `gc=False` (by default) support of cyclic garbage collection\r\n  will switched off for instances of the created class.\r\n* Add function `join(C1, C2)` in order to join two `structclass`-based classes C1 and C2.\r\n* Add `sequenceproxy` function for creation of immutable and hashable proxy object from class instances,\r\n  which implement access by index\r\n  (it currently currently implemented with `Cython`).\r\n* Add support for access to recordclass object attributes by idiom: `ob['attrname']` (Issue #5).\r\n* Add argument `readonly` to recordclass factory to produce immutable namedtuple.\r\n  In contrast to `collection.namedtuple` it use same descriptors as for\r\n  regular recordclasses for performance increasing.\r\n\r\n#### 0.7\r\n\r\n* Make mutabletuple objects creation faster. As a side effect: when number of fields >= 8\r\n  recordclass instance creation time is not biger than creation time of instaces of\r\n  dataclasses with `__slots__`.\r\n* Recordclass factory function now create new recordclass classes in the same way as namedtuple in 3.7\r\n  (there is no compilation of generated python source of class).\r\n\r\n#### 0.6\r\n\r\n* Add support for default values in recordclass factory function in correspondence\r\n  to same addition to namedtuple in python 3.7.\r\n\r\n#### 0.5\r\n\r\n* Change version to 0.5\r\n\r\n#### 0.4.4\r\n\r\n* Add support for default values in RecordClass (patches from Pedro von Hertwig)\r\n* Add tests for RecorClass (adopted from python tests for NamedTuple)\r\n\r\n#### 0.4.3\r\n\r\n* Add support for typing for python 3.6 (patches from Vladimir Bolshakov).\r\n* Resolve memory leak issue.\r\n\r\n#### 0.4.2\r\n\r\n* Fix memory leak in property getter/setter\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Mutable variant of namedtuple -- recordclass, which support assignments, compact dataclasses and other memory saving variants.",
    "version": "0.21.1",
    "project_urls": {
        "Download": "https://pypi.org/project/recordclass/#files",
        "Homepage": "https://github.com/intellimath/recordclass"
    },
    "split_keywords": [
        "namedtuple",
        "recordclass",
        "dataclass",
        "dataobject"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7fa24dff3d0c573ab67734aa13c5cac720cb8c8ad9a98dc863159e0730eb229d",
                "md5": "5f2eb111180f6d709178d766452f4af2",
                "sha256": "cb75c1362eb1f7e1197d61eed23890ec0dd06b5e19497253cf23e145e847a660"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp310-cp310-win32.whl",
            "has_sig": false,
            "md5_digest": "5f2eb111180f6d709178d766452f4af2",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 121834,
            "upload_time": "2023-11-27T16:43:33",
            "upload_time_iso_8601": "2023-11-27T16:43:33.861601Z",
            "url": "https://files.pythonhosted.org/packages/7f/a2/4dff3d0c573ab67734aa13c5cac720cb8c8ad9a98dc863159e0730eb229d/recordclass-0.21.1-cp310-cp310-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d882eeff8b12b2fcb59b03ac834e70d595e43adff5726cc3a2ba027ee0c3d85",
                "md5": "93d56800336be78ed4554572bb8dbb91",
                "sha256": "287f782825f2a2b9289fa7aafbfad515d5569014886d8fb43fd613beaee98ccd"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "93d56800336be78ed4554572bb8dbb91",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 136545,
            "upload_time": "2023-11-27T16:43:37",
            "upload_time_iso_8601": "2023-11-27T16:43:37.141884Z",
            "url": "https://files.pythonhosted.org/packages/4d/88/2eeff8b12b2fcb59b03ac834e70d595e43adff5726cc3a2ba027ee0c3d85/recordclass-0.21.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87aa7299fc60d4616f8b631ea4a15e1f2a09638501aa9af6524fc104cc99225c",
                "md5": "29d8ff3b2119c26d6177b053fa7c3592",
                "sha256": "7871299a434ee1961e015e4913076eeab9a064dd6d8ba8e45f44256a095f86a8"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp311-cp311-win32.whl",
            "has_sig": false,
            "md5_digest": "29d8ff3b2119c26d6177b053fa7c3592",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 118931,
            "upload_time": "2023-11-27T16:43:39",
            "upload_time_iso_8601": "2023-11-27T16:43:39.390913Z",
            "url": "https://files.pythonhosted.org/packages/87/aa/7299fc60d4616f8b631ea4a15e1f2a09638501aa9af6524fc104cc99225c/recordclass-0.21.1-cp311-cp311-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52831ffc26ec89f82a02b074524f757dc4c81f45d76c5894fe350a13f82eeb6b",
                "md5": "46a8093f0e04fe08696f3b1a8c6bee6d",
                "sha256": "9b21d1ca6f7f1c2fb1ec3bf022a2c7d5bfb51bc1a31be83626e8a8dbd96a2618"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "46a8093f0e04fe08696f3b1a8c6bee6d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 131937,
            "upload_time": "2023-11-27T16:43:41",
            "upload_time_iso_8601": "2023-11-27T16:43:41.542510Z",
            "url": "https://files.pythonhosted.org/packages/52/83/1ffc26ec89f82a02b074524f757dc4c81f45d76c5894fe350a13f82eeb6b/recordclass-0.21.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72ae0e060268c7a6e239d700e9d8b787839588b68afd6025c078d243c579c252",
                "md5": "8fde433504e7ba46bd778122f54665b0",
                "sha256": "f03e49315cd313c74ca10cd378788530ad7b540ba10267c58c16a67ea9c0dcba"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp312-cp312-win32.whl",
            "has_sig": false,
            "md5_digest": "8fde433504e7ba46bd778122f54665b0",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": null,
            "size": 119426,
            "upload_time": "2023-11-27T16:43:43",
            "upload_time_iso_8601": "2023-11-27T16:43:43.497180Z",
            "url": "https://files.pythonhosted.org/packages/72/ae/0e060268c7a6e239d700e9d8b787839588b68afd6025c078d243c579c252/recordclass-0.21.1-cp312-cp312-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "503642508d1ef894d114d9c6bba4847ab0aaa386b334b05f3c7a2bc8e65e6a54",
                "md5": "c82d2da7d97b8f41651ca1ac9cd96839",
                "sha256": "7f79df45362675ba7ea0cecf4d76678bab8529a6ca6137fd0b167fe6b0e30cb2"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c82d2da7d97b8f41651ca1ac9cd96839",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": null,
            "size": 132211,
            "upload_time": "2023-11-27T16:43:45",
            "upload_time_iso_8601": "2023-11-27T16:43:45.442172Z",
            "url": "https://files.pythonhosted.org/packages/50/36/42508d1ef894d114d9c6bba4847ab0aaa386b334b05f3c7a2bc8e65e6a54/recordclass-0.21.1-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "108ca433388cdf21c20989662ad2a6851aa917316a08d30e533b334cd9c3d6f2",
                "md5": "488f1ea81e686f3a7cbe80503b212e16",
                "sha256": "04455419c10a51daf5b62207f3eb05a97afc34bff5808ca925b9831688fcac4b"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp36-cp36m-win32.whl",
            "has_sig": false,
            "md5_digest": "488f1ea81e686f3a7cbe80503b212e16",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 118421,
            "upload_time": "2023-11-27T16:43:47",
            "upload_time_iso_8601": "2023-11-27T16:43:47.489819Z",
            "url": "https://files.pythonhosted.org/packages/10/8c/a433388cdf21c20989662ad2a6851aa917316a08d30e533b334cd9c3d6f2/recordclass-0.21.1-cp36-cp36m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "07b53989808aa0692f5cc7745cfdbaa03b4f4135a00ea01c41662f4983b4412f",
                "md5": "76d8ca8d75dad97c12c7c19d5da7a325",
                "sha256": "737099dd4ce3c299b625cbe88c36f62387feb2218cb49a0b868eaaec7609ddfb"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp36-cp36m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "76d8ca8d75dad97c12c7c19d5da7a325",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 132323,
            "upload_time": "2023-11-27T16:43:50",
            "upload_time_iso_8601": "2023-11-27T16:43:50.010531Z",
            "url": "https://files.pythonhosted.org/packages/07/b5/3989808aa0692f5cc7745cfdbaa03b4f4135a00ea01c41662f4983b4412f/recordclass-0.21.1-cp36-cp36m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18e3300e18ca89ed058cbe1e575e9c442ad4de312c131658f018bbc4f68911df",
                "md5": "b3f9848cdda6b47ad5d7e34efb337fd7",
                "sha256": "7d537aff7ed28a6d1d06616a1c85bd02e4d723bb06ca50bd239c000b19821951"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp37-cp37m-win32.whl",
            "has_sig": false,
            "md5_digest": "b3f9848cdda6b47ad5d7e34efb337fd7",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 120186,
            "upload_time": "2023-11-27T16:43:52",
            "upload_time_iso_8601": "2023-11-27T16:43:52.609630Z",
            "url": "https://files.pythonhosted.org/packages/18/e3/300e18ca89ed058cbe1e575e9c442ad4de312c131658f018bbc4f68911df/recordclass-0.21.1-cp37-cp37m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "94753a5b3e20c6112fe9f979274f1fbee8397a1d0142f8b269475d80519931f9",
                "md5": "1f7dd5fbd4bcba3081528589511d857a",
                "sha256": "7a55e010192296ca6a7d37a624ff5437e80cddf965c33a10ca9cf14a80ea16af"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp37-cp37m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "1f7dd5fbd4bcba3081528589511d857a",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 134084,
            "upload_time": "2023-11-27T16:43:54",
            "upload_time_iso_8601": "2023-11-27T16:43:54.657363Z",
            "url": "https://files.pythonhosted.org/packages/94/75/3a5b3e20c6112fe9f979274f1fbee8397a1d0142f8b269475d80519931f9/recordclass-0.21.1-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7bc8aefda30d9ff63b5cdf7207c3a03f9cabfa15cbb72da7d082f4a655afbc9",
                "md5": "82cede9e3901051a34f729dbfd94283c",
                "sha256": "e2cc799e1761e72d590a9d790d47973da01a1f1b559079a10e7293b6ffadea37"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp38-cp38-win32.whl",
            "has_sig": false,
            "md5_digest": "82cede9e3901051a34f729dbfd94283c",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 121157,
            "upload_time": "2023-11-27T16:43:57",
            "upload_time_iso_8601": "2023-11-27T16:43:57.421309Z",
            "url": "https://files.pythonhosted.org/packages/e7/bc/8aefda30d9ff63b5cdf7207c3a03f9cabfa15cbb72da7d082f4a655afbc9/recordclass-0.21.1-cp38-cp38-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3212612bc366859b9893ccbb554dd2f638b31dce65be1a9f2cc6dd6dee4d9ec9",
                "md5": "3f0417fac65d57b8327783128fc7c1b0",
                "sha256": "fb9a5a178cb0c3e0e2829c767da936818e0630b44c7ddb7ad28aac4f2aff327c"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "3f0417fac65d57b8327783128fc7c1b0",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 136112,
            "upload_time": "2023-11-27T16:43:59",
            "upload_time_iso_8601": "2023-11-27T16:43:59.335611Z",
            "url": "https://files.pythonhosted.org/packages/32/12/612bc366859b9893ccbb554dd2f638b31dce65be1a9f2cc6dd6dee4d9ec9/recordclass-0.21.1-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c24d9dc0897b99d00b223f60fcc40007799c96ab7b9b8af58c82195b9e54e31f",
                "md5": "127348238784981fe2145406e88fc325",
                "sha256": "5d8cdfd0ccdc0cfe96f6ac7d4f73cd4b613a49a814dfd6cbfb206f27c485c373"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp39-cp39-win32.whl",
            "has_sig": false,
            "md5_digest": "127348238784981fe2145406e88fc325",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 120779,
            "upload_time": "2023-11-27T16:44:02",
            "upload_time_iso_8601": "2023-11-27T16:44:02.030987Z",
            "url": "https://files.pythonhosted.org/packages/c2/4d/9dc0897b99d00b223f60fcc40007799c96ab7b9b8af58c82195b9e54e31f/recordclass-0.21.1-cp39-cp39-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7561a93af36254e8609a901eb5ab44161175a55883362e6049bc7135c011c79c",
                "md5": "c45bec537d40104f32f7e4cc706a8792",
                "sha256": "40768124fe76b4b1aa805fa5929f4a282126ceeab547d9ab8dc7efe4698653c3"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c45bec537d40104f32f7e4cc706a8792",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 135562,
            "upload_time": "2023-11-27T16:44:04",
            "upload_time_iso_8601": "2023-11-27T16:44:04.284835Z",
            "url": "https://files.pythonhosted.org/packages/75/61/a93af36254e8609a901eb5ab44161175a55883362e6049bc7135c011c79c/recordclass-0.21.1-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf4746aad629d64479c14a8c806c3a0ab2cd98214e940ab740e72e75b424b1a2",
                "md5": "ea55e4c327d009229549589faa863622",
                "sha256": "fa2343dc24ef457f5f1c09e34fccada2d9074f582287f9fedb195bfbc1a9af92"
            },
            "downloads": -1,
            "filename": "recordclass-0.21.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ea55e4c327d009229549589faa863622",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1321641,
            "upload_time": "2023-11-27T16:44:07",
            "upload_time_iso_8601": "2023-11-27T16:44:07.199808Z",
            "url": "https://files.pythonhosted.org/packages/cf/47/46aad629d64479c14a8c806c3a0ab2cd98214e940ab740e72e75b424b1a2/recordclass-0.21.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-27 16:44:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "intellimath",
    "github_project": "recordclass",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "appveyor": true,
    "lcname": "recordclass"
}
        
Elapsed time: 0.15686s