StormSpans
StormSpans brings support for PostgreSQL’s range types to Canonical’s Storm ORM using PsycoSpans paired with Spans.
This package’s functionality probably be merged with storm-legacy in the future.
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))
def __init__(self, span):
self.span = span
# NOTE: URI must start with postgres+spans://
store = Store(create_database("postgres+spans://<url>"))
store.execute("""
CREATE TABLE int_range_test(
id SERIAL,
span int4range
)
""")
store.add(Model(intrange(1, 100))
store.commit()
Changelog
Version 1.0.0
Released on 9th October 2018
Added support for storm-legacy
Added support for Python 3.4 and later. Note that this only work with storm-legacy since Storm is not Python 3 compatible
Version 0.1.0
Released 12th June 2014
Initial commit
Metadata
Release files for StormSpans 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| StormSpans-1.0.0.tar.gz | 7.0 kB | Without provenance | Details for StormSpans-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| StormSpans-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for StormSpans-1.0.0-py2.py3-none-any.whl |
Total release size: 13.0 kB
Release files / StormSpans-1.0.0.tar.gz
| Download URL | StormSpans-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72a4a528199e87ce024b3a6545cbb0356d65ffc3760bb0172cd286f876f41164
|
|
BLAKE2b-256 checksum How to use checksums |
b79ec491449a2f5005274fcfde966a35322728611661a8788303595158956478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
|
Release files / StormSpans-1.0.0-py2.py3-none-any.whl
| Download URL | StormSpans-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
be6eaf29397afa47205ebf4023f4dca6540143bb41994bc287447ceece8b131c
|
|
BLAKE2b-256 checksum How to use checksums |
613867c38b83e0d8a63d501004816febf0b39e9816f5cb74043d7fd05c9c1898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
|
Security for StormSpans 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.