Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collectibles-0.1.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

collectibles-0.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for collectibles-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d2177b0243c53b8b28c671031fd598ac4f33f1b2811e91f5ade31f044e1b346c
MD5 fca91ce2c8aeecd847ad09fd19c75f58
BLAKE2b-256 ac5b8c8e2607de32b3ae96901a6b495d93cc14aac9cc392011be6a6e1cd4ded4

See more details on using hashes here.

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

Hashes for collectibles-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c6870035c6e50d24531be812529b6e0f74cc71a0eb25edc4b8ed6165840528d2
MD5 0948568488ec708a8221e76b847e62d1
BLAKE2b-256 33bb5796180b0df53d97ed5fea06f168c443616d32108b6aedd996d99a956653

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page