Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stenh0use/vitess-helpers
- Owner: stenh0use
- License: mit
- Created: 2021-06-29T23:38:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T15:30:57.000Z (over 3 years ago)
- Last Synced: 2024-12-31T17:45:28.510Z (15 days ago)
- Language: Python
- Size: 330 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`