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 details)

Uploaded Source

File details

Details for the file StormSpans-0.1.0.tar.gz.

File metadata

  • Download URL: StormSpans-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for StormSpans-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9612747fccdfb87ef9b81da23c6492c06a88fc936a36dd0e0efbdc63269a83b7
MD5 df1569a177169b28505c7700b8eaa488
BLAKE2b-256 5479d46daa01405f61feddaf280180a104896856b350c95a29ef01ef7ce58f8d

See more details on using hashes here.

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