Skip to main content

PostgreSQL range type support for Canonical's Storm ORM using Spans

Project description

StormSpans brings support for PostgreSQL’s range types [1] to Canonical’s Storm [2] using PsycoSpans [3] paired with Spans [4].

Installation

Psycospans exists on PyPI.

pip install psycospans

Documentation

For full doumentation please run pydoc stormspans from a shell.

Example

from spans import intrange
from storm.locals import *
from stormspans import IntRange

class Model(Storm):
        id = Int(primary=True)
        span = IntRange(default=intrange(1, 10))

Project details


Download files

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

Source Distribution

StormSpans-0.1.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page