snovault-search 6.1.0
pip install snovault-search
Latest version
Released:
Framework-independent package for converting query strings to Elasticsearch queries
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Keenan Graham
- Requires: Python >=3.6
Classifiers
- License
- Operating System
- Programming Language
Project description
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Keenan Graham
- Requires: Python >=3.6
Classifiers
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file snovault_search-6.1.0.tar.gz
.
File metadata
- Download URL: snovault_search-6.1.0.tar.gz
- Upload date:
- Size: 74.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 533f5c15c5f61f76e2eeb9bcd67b59cfc74b29f396efd942016525b6474858b5 |
|
MD5 | fe6bb82f99ca1353677748175988f329 |
|
BLAKE2b-256 | e9f5d139c9d414282025a3a5ecec917165b30f67359a2e49b9ced6587dda3db7 |
File details
Details for the file snovault_search-6.1.0-py3-none-any.whl
.
File metadata
- Download URL: snovault_search-6.1.0-py3-none-any.whl
- Upload date:
- Size: 82.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ecab34def82ca59efd0bd14204420d80ea2ecb7ff6f34bee90981b4cd7818d |
|
MD5 | 5f2387f7d3a416c090237b2796b626d0 |
|
BLAKE2b-256 | 75de6ca53a0f7c3060e1bad4f001f41e0f34804360b790a7b9b5ab68c3efeb18 |