Skip to main content

Winnow is a framework for server-side filtering of data.

Project description

Winnow is a framework for server-side filtering of data. It is designed to be expressive, extensible, and fast. Winnow’s inputs look something like this:

{
    "logical_op": "&",
    "filter_clauses": [
        {
            "data_source": "Created",
            "operator": "before",
            "value": "2015-03-01"
        },
        {
            "data_source": "Owner",
            "operator": "any of",
            "value": [
                {"name": "Steven", "id": 23},
                {"name": "Margaret", "id": 41},
                {"name": "Evan", "id": 90}
            ]
        }
    ]
}

Winnow’s outputs look something like this:

"WHERE created_date < %s::timestamp AND owner_id = ANY(VALUES (%s),(%s),(%s))",
('2015-03-01', 23, 41, 90)

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

winnow-filters-0.0.5.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file winnow-filters-0.0.5.tar.gz.

File metadata

File hashes

Hashes for winnow-filters-0.0.5.tar.gz
Algorithm Hash digest
SHA256 788ba1258a7aab19a5427096b7583fab14dbefc6644c960b22c4f732192c5da8
MD5 90a4f3ab522bddefc53b3dc552daea2c
BLAKE2b-256 5e39162cfe8a1a29e5c88acdad5dc0124e831c19599c274ece3f0a4e812473bc

See more details on using hashes here.

Supported by

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