zope.schema

zope.interface extension for defining data schemas


Keywords
zope3, schema, field, interface, typing, form-fields, maintained, python, zope
License
ZPL-2.1
Install
pip install zope.schema==7.0.1

Documentation

zope.schema

Latest Version Supported Python versions Tests Status Documentation Status Code Coverage

Schemas extend the notion of interfaces to detailed descriptions of Attributes (but not methods). Every schema is an interface and specifies the public fields of an object. A field roughly corresponds to an attribute of a Python object. But a Field provides space for at least a title and a description. It can also constrain its value and provide a validation method. Besides you can optionally specify characteristics such as its value being read-only or not required.

See https://zopeschema.readthedocs.io/ for more information.