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.5.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

snovault_search-1.0.5-py3-none-any.whl (74.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snovault-search-1.0.5.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for snovault-search-1.0.5.tar.gz
Algorithm Hash digest
SHA256 bdf89d9f01d6ec1affc4c1ae19e02ed2846ebf6f444154a9fee0c8762627a630
MD5 ffed45bff6f7bcf530612ab47baf8cea
BLAKE2b-256 dd2777dce55d3ac771c0ec194653e5d842935d0843addc27e7da0abc87ead6ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snovault_search-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 74.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for snovault_search-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3f1c56e98999ba3586df48045a88202a63851d7f4c5dfd0fee5c86da4b1c781d
MD5 16ad03c69ba0991767632b0efa194887
BLAKE2b-256 502a38b159c1e5c4aaeee7d6ec17867e61f1ec2c1eb0bce8322c710203c910e2

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