Python Pyfields

Python library for declarative class fields, validation, conversion, and constructors.

Python Pyfields screenshot

pyfields is a Python library that provides declarative field definitions for classes, centralizing defaults, type hints, validators, converters, and documentation. It supports optional runtime type checking (typeguard or pytypes), integration with validation tooling, and helpers like @autofields and @autoclass to generate constructors and representations. It is suited for object‑oriented Python code, mix-ins, and libraries that need explicit, reusable attribute metadata without imposing base classes.

Features

Field Declarations
Default Value Factories
Read-Only Fields
Type Validation
Value Validation
Converters Support
Constructor Generation
Runtime Field Inspection

Pricing

Free plan available

0

FAQs

Similar Boilerplates

Supastarter screenshot

Supastarter

πŸ‘¨πŸ»β€πŸ’» by Jonathan Wilke Paid
supastarter comes with all the features you need to build a scalable SaaS. We save you the time building the boilerplate and let you focus your core features. Utilizing the power of serverless it is also the perfect stack for bootstrappers and indie hackers!
Makerkit screenshot

Makerkit

πŸ‘¨πŸ»β€πŸ’» by Giancarlo Buomprisco Paid
Build unlimited SaaS products with any SaaS Starter Kit. Save months of work and focus on building a profitable business.
Shadcnblocks screenshot

Shadcnblocks

πŸ‘¨πŸ»β€πŸ’» by Ausrobdev Freemium
The ultimate block set for Shadcn UI & Tailwind
UseSAASkit screenshot

UseSAASkit

πŸ‘¨πŸ»β€πŸ’» by UseSAASkit Paid
Launch your AI startup in a week
Cruip screenshot

Cruip

πŸ‘¨πŸ»β€πŸ’» by Cruip Paid
Tailwind CSS templates for your next project
Shipped screenshot

Shipped

πŸ‘¨πŸ»β€πŸ’» by Luca Restagno Paid
Launch your startup in days, not months. The Next.js Startup Boilerplate for busy founders, with all you need to build and launch your startup soon.
Developer
πŸ‘¨πŸ»β€πŸ’» Smarie
Github Stars
46
Last Commit Date
2023-11-06 (fetched 3 months ago)
Repo URL
smarie/python-pyfields
Technologies
Tags
Share