typecheck 0.3.5
A runtime type-checking module for Python
A runtime type-checking module for Python supporting both parameter-type checking and return-type checking for functions, methods and generators.
The main workhorses of this module, the functions accepts and returns, are used as function/method decorators. A yields decorator provides a mechanism to typecheck the values yielded by generators.
Four utility classes, IsAllOf(), IsOneOf(), IsNoneOf() and IsOnlyOneOf() are provided to assist in building more complex signatures by creating boolean expressions based on classes and/or types.
A number of other utility classes exist to aid in type signature creation; for a full list, see the README.txt file or the project's website.
The module also includes support for type variables, a concept borrowed from languages such as Haskell.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| typecheck-0.3.5-py2.4.egg (md5) | Python Egg | 2.4 | 2006-05-27 23:27:02 | 36KB | 603 |
| typecheck-0.3.5-py2.5.egg (md5) | Python Egg | 2.5 | 2006-05-27 23:27:19 | 35KB | 701 |
| typecheck-0.3.5.tar.gz (md5) | Source | 2006-05-27 23:26:49 | 43KB | 442 | |
- Author: Collin Winter <collinw at gmail com>
- Home Page: http://oakwinter.com/code/typecheck/
- Keywords: python decorator type-check typesafe typesafety type typing static
- License: MIT License
- Categories
- Package Index Owner: ilowe, collinw
- Package Index Maintainer: collinw
- DOAP record: typecheck-0.3.5.xml
Log in to rate this package.
