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/*
Metadata
Release files for snovault-search 6.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snovault_search-6.1.0.tar.gz | 74.5 kB | Without provenance | Details for snovault_search-6.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snovault_search-6.1.0-py3-none-any.whl | Python 3 | none | any | Details for snovault_search-6.1.0-py3-none-any.whl |
Total release size: 157.0 kB
Release files / snovault_search-6.1.0.tar.gz
| Download URL | snovault_search-6.1.0.tar.gz |
|---|---|
| Size | 74.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
533f5c15c5f61f76e2eeb9bcd67b59cfc74b29f396efd942016525b6474858b5
|
|
BLAKE2b-256 checksum How to use checksums |
e9f5d139c9d414282025a3a5ecec917165b30f67359a2e49b9ced6587dda3db7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / snovault_search-6.1.0-py3-none-any.whl
| Download URL | snovault_search-6.1.0-py3-none-any.whl |
|---|---|
| Size | 82.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0ecab34def82ca59efd0bd14204420d80ea2ecb7ff6f34bee90981b4cd7818d
|
|
BLAKE2b-256 checksum How to use checksums |
75de6ca53a0f7c3060e1bad4f001f41e0f34804360b790a7b9b5ab68c3efeb18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for snovault-search 6.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.