Skip to main content

Django Elastic Filter for Models

Project description

Django Elastic Filter

Install:

pip install django_elastic_filter

Usage:

# import package
from django_elastic_filter.elastic_filter import ElasticFilter
from django_elastic_filter.dynamic import generate_serializer

elastic_filter = ElasticFilter('fields', 'user_id', request)
elastic_filter_fields = elastic_filter.get_scope_other_fields()
elastic_serializer = generate_serializer(Stockholder,
                                         elastic_filter_fields['fields'],
                                         elastic_filter_fields['rest'],
                                         request,
                                         {
                                             'info': 'users.models.Natural',
                                         })
serializer = elastic_serializer(stockholders, many=True)

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

django_elastic_filter-1.0.17.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

django_elastic_filter-1.0.17-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file django_elastic_filter-1.0.17.tar.gz.

File metadata

  • Download URL: django_elastic_filter-1.0.17.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for django_elastic_filter-1.0.17.tar.gz
Algorithm Hash digest
SHA256 0ddaa1222b38abb0409cfec6b1dc384649d8be6bd64ee2fdb04f4f9ca197dd1b
MD5 291f0c697b732b566f3d5a015013b88c
BLAKE2b-256 c54c61037f5cf90eb04515831f22fba337f3b6ca0292002840f79bb0f81d9ea2

See more details on using hashes here.

File details

Details for the file django_elastic_filter-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: django_elastic_filter-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for django_elastic_filter-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 49621753ace86889dbe9de74cd2e74bf12ff78f4f21838c7b193c0d759698a0f
MD5 3ae6604f3a4da838068e268ea440570a
BLAKE2b-256 7019e7c8b998804c98c98369385bb9817c22f27ea2134e4dfa03f52f9c62b434

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