Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typedpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedpy

Type-safe Python

  • 2.28.3
  • PyPI
  • Socket score

Maintainers
1

pylint img

Typedpy - Strict Type System for Python

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

Features

  • Full featured, sophisticated, class-based type system

  • Includes Python stubs generator that provides static type checking within the IDE

  • Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema

  • Serialization, deserialization between JSON-like dict and typedpy objects, including custom mapping. Support for pickling.

  • 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[AnyOf[Integer(minimum=10), Array]], 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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc