This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This library allows type tests and transformation and can be used for data loading, storing and validation.

Usage

Simple type-checking:

import typed

            t1 = typed.int | typed.string

            assert t1.test('abc')
            assert t1.test(u'xyz')
            assert t1.test(30)
            assert not t1.test(1.2)
            assert not t1.test(True)
            assert not t1.test(None)

            t2 = typed.list(typed.int)

            assert t1.test([1, 2, 3])
            assert t1.test([])
            assert not t1.test(['a', 'b', 'c'])

            t3 = typed.list(typed.int | typed.string)

            assert t3.test([1, 'a', 2, 'b'])

            t4 = typed.list(typed.int) | typed.list(typed.string)

            assert t4.test([1, 2, 3])
            assert t4.test(['a', 'b', 'c'])
            assert not t4.test([1, 'a', 2, 'b'])

            t5 = typed.set(1, 2, 3)

            assert t5.test(2)
            assert not t5.test(4)

            t6 = typed.dict({
                            'a': typed.int,
                            'b': typed.bool.optional,
                            'c': (typed.int | typed.none).optional,
                    })
Release History

Release History

0.6

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
typed-0.6.tar.gz (7.0 kB) Copy SHA256 Checksum SHA256 Source Jul 23, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting