A library to manage collections of dataclasses and pydantic models
Project description
Collectibles
A library to manage collections (lists, dictionaries and tuples) of dataclasses and pydantic models. A dataclasses-style syntax automatically creates the methods for retrieving collections of your dataclass attributes without having to write the boilerplate comprehensions.
The library is fully typed so your IDE will thank you 😄
Installation
pip install collectibles
Usage
See examples.py for a full example.
Contributions
Contributions are welcome! Please open an issue or a PR. We're currently looking to increase our support for Pydantic 1.x and 2.x models.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file collectibles-0.1.5.tar.gz.
File metadata
- Download URL: collectibles-0.1.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.10 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2177b0243c53b8b28c671031fd598ac4f33f1b2811e91f5ade31f044e1b346c
|
|
| MD5 |
fca91ce2c8aeecd847ad09fd19c75f58
|
|
| BLAKE2b-256 |
ac5b8c8e2607de32b3ae96901a6b495d93cc14aac9cc392011be6a6e1cd4ded4
|
File details
Details for the file collectibles-0.1.5-py3-none-any.whl.
File metadata
- Download URL: collectibles-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.10 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6870035c6e50d24531be812529b6e0f74cc71a0eb25edc4b8ed6165840528d2
|
|
| MD5 |
0948568488ec708a8221e76b847e62d1
|
|
| BLAKE2b-256 |
33bb5796180b0df53d97ed5fea06f168c443616d32108b6aedd996d99a956653
|