Skip to main content

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)

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.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page