skip to navigation
skip to content

Not Logged In

Promises 0.0.2

Python Type Checking

Latest Version: 0.0.5

Promises is a little Python toolkit for maintaining some sanity when doing testing or building an API in dynamically typed languages. Easily declare the signature of your functions like so:

from promises import accepts, rejects

@accepts(int)
@rejects(int)
def f(x):
    return x+1

Promises only exposes a very minimal declarative and decorator-based API that is inspired by function signatures in Go, and is very easy to learn. You can get more documentation of the project by visiting github.com/eugene-eeo/promises.

 
File Type Py Version Uploaded on Size
Promises-0.0.2.tar.gz (md5) Source 2014-01-14 2KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 90 downloads in the last week
  • 475 downloads in the last month