Metadata-Version: 2.4
Name: descriptorkit
Version: 1.0.0
Summary: Typed, validated and observable class attributes built on Python descriptors, derived from HoloViz param
Author-email: Vignesh Vaidyanathan <info@hololinked.dev>, HoloViz <developers@holoviz.org>
License-Expression: BSD-3-Clause
Project-URL: Repository, https://github.com/hololinked-dev/descriptorkit
Project-URL: Issues, https://github.com/hololinked-dev/descriptorkit/issues
Keywords: descriptors,parameters,validation,attributes,param
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: numpy
Requires-Dist: numpy>=2.0.0; extra == "numpy"
Provides-Extra: pandas
Requires-Dist: pandas>=2.2.0; extra == "pandas"
Provides-Extra: all
Requires-Dist: descriptorkit[numpy,pandas]; extra == "all"
Dynamic: license-file

# descriptorkit

[![CD Pipeline](https://github.com/hololinked-dev/descriptorkit/actions/workflows/cd-pipeline.yml/badge.svg)](https://github.com/hololinked-dev/descriptorkit/actions/workflows/cd-pipeline.yml)

Typed, validated and observable class attributes built on Python descriptors.

`descriptorkit` is derived from [HoloViz param](https://github.com/holoviz/param) and is maintained as the
parameter/descriptor layer of [hololinked](https://github.com/hololinked-dev/hololinked).

For the official param library, visit the upstream repository at [holoviz/param](https://github.com/holoviz/param).

## Install

```
pip install descriptorkit
```

Optional extras for numpy array and pandas parameters (`descriptorkit.extensions`):

```
pip install descriptorkit[numpy,pandas]
```

## Usage

```python
from descriptorkit import Parameterized
from descriptorkit.parameters import Integer, String


class Device(Parameterized):
    serial = String(default="unknown")
    channels = Integer(default=1, bounds=(1, 16))


d = Device()
d.channels = 8
d.channels = 32  # raises ValueError
```

## License

BSD-3-Clause, see [LICENSE](LICENSE). Original copyright belongs to the HoloViz team.
