semvec/pypi-packages huggingface dataset:
es-shard-router 0.1.0
A Python library for deterministic Elasticsearch routing key generation and verification.
Requires Python: >=3.7

# es-shard-router

A Python library for deterministic Elasticsearch routing key generation and verification.

## Features
- Precomputes and stores routing keys for all shards on initialization.
- One `ShardRouter` object per index/shard set.
- Clean, documented API for library use.

## Installation

```bash
pip install .
```

## Usage

```python
from es_shard_router import ShardRouter
from elasticsearch import Elasticsearch

es = Elasticsearch("http://localhost:9200", http_auth=("elastic", "changeme"))
router = ShardRouter(es, "my-index")
print(router.get_all_routing_keys())
```

## License
MIT