Skip to main content

Framework-independent package for converting query strings to Elasticsearch queries

Project description

CircleCI Coverage Status

snovault-search

Framework-independent package for converting query strings to Elasticsearch queries.

Install

$ pip install snovault-search

Example

from snosearch.defaults import DEFAULT_ITEM_TYPES
from snosearch.fields import BasicSearchResponseField
from snosearch.parsers import ParamsParser
from snosearch.responses import FieldedResponse


def basic_search_view(request):
    fr = FieldedResponse(
        _meta={
            'params_parser': ParamsParser(request)
        },
        response_fields=[
            BasicSearchResponseField(
                default_item_types=DEFAULT_ITEM_TYPES
            )
        ]
    )
    return fr.render()

Run tests

$ pip install -e .[test]
$ pytest

Publish on PyPI

Bump version in setup.cfg, then build and upload:

$ python -m build
$ twine upload dist/*

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

snovault-search-1.0.6.tar.gz (66.6 kB view details)

Uploaded Source

Built Distribution

snovault_search-1.0.6-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

Details for the file snovault-search-1.0.6.tar.gz.

File metadata

  • Download URL: snovault-search-1.0.6.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.11

File hashes

Hashes for snovault-search-1.0.6.tar.gz
Algorithm Hash digest
SHA256 e95b48c98d9313c2bf6c7d2cbfe914eee3a440728435f3e78c7a02e245c1b88f
MD5 d27b07dea68f97e3580365e533e4197a
BLAKE2b-256 7ec6145e5755359e6ee215738f226dce8126796c8806d8b911f2fd4bfabe745f

See more details on using hashes here.

File details

Details for the file snovault_search-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for snovault_search-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4574872f73262e74168382f2c279c9b62868c21e8f03e44f5e89dbbdc5224c
MD5 75144af98c63f1c8313401070d583655
BLAKE2b-256 284d76e8196eacc46d46adf099af0c7be7b594a1d5a6c2a114cbb8d361f3c238

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