Typelets for Python

Typelets is a Python typing utility module designed to augment some of the types provided in Python and third-party libraries. It was built to help develop Review Board, our premier code review product from Beanbag, and we’re making it available for use in other projects.

This includes general Python additions, including:

  • typelets.funcs: Typing for general keyword arguments in functions.

  • typelets.json: Typing for JSON structures, and for application-defined data that can be serialized to JSON.

  • typelets.runtime: Utilities for run-time type checking.

  • typelets.symbols: Symbols for marking variables or function arguments as unset/unsettable.

Plus typing useful for Django developers:

Installation

To install Typelets, run:

$ pip install typelets

Typelets follows semantic versioning, meaning no surprises when you upgrade.

Documentation

Indices and tables