Skip to main content

Use & and = on psycopg2 range types.

Project description

This module overrides the Range.__and__ function, so that it returns a boolean value based on if the two objects overlap.

The rationale behind this is that it mirrors the range && range operator in postgres.

There is also an improved equality operator, and a function for normalising ranges (if possible).

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

psycopg2-range-overlaps-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file psycopg2-range-overlaps-1.0.1.tar.gz.

File metadata

File hashes

Hashes for psycopg2-range-overlaps-1.0.1.tar.gz
Algorithm Hash digest
SHA256 33baa75c36944e39e7c93c51d82c984cf3ad6085b90bfef73906c3d50cd78312
MD5 8f0137f9386ab9d022a845a852ea3112
BLAKE2b-256 0f5895ad53986aa10561a53a430691bb6c3a9e69ccc30a078d51811685423827

See more details on using hashes here.

Supported by

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