Skip to main content

Type-safe Python

Project description

Typedpy

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

Features

  • Full featured, sophisticated, class-based type system

  • 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 fields/classes

  • Embedded structures within structures/fields and fields within fields

  • Supports the common collections

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

Documentation

Detailed documentation is here

Installation

PyPI page is here

Conda-Forge page is here

Project details


Release history Release notifications | RSS feed

This version

1.22

Download files

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

Source Distribution

typedpy-1.22.tar.gz (23.3 kB view hashes)

Uploaded Source

Built Distributions

typedpy-1.22-py3.7.egg (64.2 kB view hashes)

Uploaded Source

typedpy-1.22-py3-none-any.whl (26.2 kB view hashes)

Uploaded Python 3

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