Skip to main content

Type-safe Python

Project description


typedpy is a library for type-safe, strict, Python structures. It supports Python 3.4+.


  • Class/Field definition
  • Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema
  • Serialization, deserialization between JSON-like dict and class instance
  • Easily extensible. Wrapper of any class as a Field
  • Inheritance/mixins of field
  • Embedded structures within structures/fields and fields within fields
  • Supports collections: Map, Set, Array, Tuple
  • Immutable Structures/Fields
  • Clean Java-generics-like definitions, but more flexible. e.g.: Set[Integer], Map[String(maxLength=8), String]
  • No dependencies on third-party libs

There are many examples under “tests/”.


PyPI page is here

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
typedpy-0.37-py3.6.egg (44.3 kB) Copy SHA256 hash SHA256 Egg 3.6
typedpy-0.37-py3-none-any.whl (19.3 kB) Copy SHA256 hash SHA256 Wheel py3
typedpy-0.37.tar.gz (15.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page