skip to navigation
skip to content

typedpy 0.35

Type-safe Python

typedpy

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

Features

  • 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/”.

Installation

PyPI page is here

 
File Type Py Version Uploaded on Size
typedpy-0.35-py3-none-any.whl (md5) Python Wheel py3 2018-02-14 18KB
typedpy-0.35-py3.6.egg (md5) Python Egg 3.6 2018-02-14 42KB
typedpy-0.35.tar.gz (md5) Source 2018-02-14 14KB