chibi_elasticsearch
chibi_elasticsearch is a lightweight Python package that provides templates and reusable snippets for working with Elasticsearch. It is intended to simplify common tasks such as creating models class.
The package is designed to work with elasticsearch_dsl.
Free software: WTFPL
Documentation: https://chibi-elasticsearch.readthedocs.io.
basic use
models
from chibi_elasticsearch.models import Chibi_model
from chibi_elasticsearch.analyzers import name_space, name
from chibi_elasticsearch.snippet import create_index_if_not_exists
from elasticsearch_dsl import field
class Person( Chibi_model ):
name = field.Text(
analyzer=name, multi=True,
fields={
'space': field.Text( analyzer=name_space, multi=True ),
'keyword': field.Keyword( multi=True ),
}
)
create_index_if_not_exists( Person )
some_one = Person( name="john smith" )
some_one.save()
print( "name:", some_one.name )
print( "create_at:", some_one.create_at )
print( "update_at:", some_one.update_at )
review config
from chibi_elasticsearch.config import load_elasticsearch_config, review_elasticsearch_config
from chibi.config import configuration
configuration.elasticsearch.connections.default.hosts = 'localhost'
configuration.elasticsearch.connections.default.port = 80
configuration.loggers[ 'elasticsearch' ].level = "WARNING"
# Load connections (e.g., from chibi config)
load_elasticsearch_config()
# Check configuration
if not review_elasticsearch_config():
raise RuntimeError("Elasticsearch not configured correctly")
History
3.1.0 (2026-08-05)
se agrego un simple reindex para hacer migraciones
3.0.0 (2026-07-24)
Se agrego un search wrapper para la funcion search de los modelos ahora los elementos de la clase Q pueden ser usandos en el search
2.0.0 (2026-07-24)
fabricas genericas para modelos de Chibi_model
se agrego la depencia de chibi_hybrid
se agrego la clase magica Q a los modelos
se agrega el field Url y Basic_name
1.4.1 (2026-07-08)
- timedelta field puede deserializar timedelta,
es nesesario cuando hace el save para la funcion clean
1.4.0 (2026-07-06)
se agrego el field timedelta
1.3.0 (2026-03-20)
add shorcut for mock save from documents
add property for pk
1.2.0 (2026-03-04)
add shortcut class to do unittest with vcr that ignore all configured hosts
add function to get all hosts configured
1.1.0 (2026-03-03)
add logic for build test index using chibi config
from chibi.config import configuration configuration.elasticsearch.test_app = True assert build_index_name( 'hello' ) == 'test__hello'
1.0.0 (2026-03-03)
definition for base model and analyzers
configuration handling for connections
analyzers ready for text processing
basic model with automatic created_at and updated_at fields
0.0.1 (2026-03-03)
First release on PyPI.
Metadata
Release files for chibi-elasticsearch 3.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 | |
|---|---|---|---|---|
| chibi_elasticsearch-3.1.0.tar.gz | 15.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chibi_elasticsearch-3.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / chibi_elasticsearch-3.1.0.tar.gz
| Download URL | chibi_elasticsearch-3.1.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
816945348bee7960c5e0e8c13a91a9a095e3215b92400f61288c10dd45593e1c
|
|
BLAKE2b-256 checksum How to use checksums |
ab74b2768ed9c548dad2dc868498ff535a139194ee97c1f02c4603a87ccf26de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / chibi_elasticsearch-3.1.0-py2.py3-none-any.whl
| Download URL | chibi_elasticsearch-3.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
31957adf0144666592d2dce7a41f5ce0f07bd3c4f4dab8404c6e76ccecb5f2e2
|
|
BLAKE2b-256 checksum How to use checksums |
f3b618af30aa94af452d1f58985b24fb73c2289d52d0a149036ffb8392e71798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for chibi-elasticsearch 3.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.