Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stenh0use/vitess-helpers

Generate shard ranges using python
https://github.com/stenh0use/vitess-helpers

Last synced: 4 days ago
JSON representation

Generate shard ranges using python

Awesome Lists containing this project

README

        

# vitess-helpers
This library is intended to be a general library to help manage the lifecycle of a Vitess cluster.

Visit https://vitess.io/ for more information on what Vitess is.

## shard range library
Generate shard ranges using python. The library takes a single input `shards` and generates a list of shard range names.

See Vitess documentation for further information:

https://vitess.io/docs/reference/features/sharding/

Example usage:
```python
>>> from vitess_helpers import shard_ranges
>>> shard_ranges(3)
['-55', '55-aa', 'aa-']
>>>
```

## to install

`pip install vitess-helpers`