Skip to main content

Python Type Checking

Project description

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.

Project details


Release history Release notifications

History Node

0.6.27

History Node

0.6.26

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

This version
History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Promises-0.0.2.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Jan 14, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page