fastapi-elasticsearch

时间:2024-04-02 03:52:05
【文件属性】:

文件名称:fastapi-elasticsearch

文件大小:28KB

文件格式:ZIP

更新时间:2024-04-02 03:52:05

Python

用于Elasticsearch的查询实用程序 使用创建查询代理的实用程序库。 from fastapi_elasticsearch import ElasticsearchAPIRouter es_router = ElasticsearchAPIRouter ( # The index or indices that your query will run. index_name = index_name ) # Decorate a function as a filter. # The filter can declare parameters. @ es_router . filter () def filter_category ( c : Optional [ str ] = Query ( None )): return { "te


【文件预览】:
fastapi-elasticsearch-main
----start_dev.sh(335B)
----Dockerfile-dev(128B)
----dev.py(6KB)
----src()
--------fastapi_elasticsearch()
--------development()
--------requirements.txt(36B)
--------setup.py(591B)
----LICENSE(26KB)
----README.md(3KB)
----docker-compose-dev.yml(2KB)
----.gitignore(2KB)
----docker-compose()
--------elasticsearch.yml(4KB)
--------opendistro-internal_users.yml(1KB)
--------opendistro-config.yml(10KB)
--------opendistro-roles.yml(1KB)
--------generate_certificates.sh(2KB)
--------.gitignore(17B)
--------opendistro-roles_mapping.yml(925B)
--------entrypoint.sh(72B)

网友评论