chalan-0.1.2
توضیحات
Elasticsearch migrations tool
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chalan-0.1.2 |
| نام | chalan |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anand Tripathi |
| ایمیل نویسنده | anand.tripathi507@gmail.com |
| آدرس صفحه اصلی | https://github.com/anandtripathi5/chalan |
| آدرس اینترنتی | https://pypi.org/project/chalan/ |
| مجوز | MIT License |
# Chalan
Chalan is a migration tool designed and developed for Elasticsearch and
inspired from Alembic
# Installation
```shell
pip install chalan
```
# Initialize
Setup migration tool, configuration files and migration folders using below
command
```shell
chalan init
```
This will create a directory `es_migrations/versions` that will have all the
migrations file and `chalan.ini` that will contain all the configuration of the
migration tools
```bash
--- es_migrations/
|
--versions/
--- chalan.ini
```
# Create Revision
Create revision file with migration changes in version directory with below
command.
```shell
chalan revision -m"<some message>"
```
Above command will create a migration file under `versions/` folder with
upgrade and downgrade function. That will help in upgrade/downgrade of the
migration tool.
# Upgrade
Command used to upgrade the migration level to head(current level). Or you can
also specify specific version where you want upgrade the version to.
```shell
chalan upgrade
# or
chalan upgrade <specific version>
```
# Downgrade
Command used to downgrade the migration level to base(initial version). Or
specify the level you want to downgrade to.
```shell
chalan downgrade # Downgrade 1 level down
# or
chalan downgrade --version base # Downgrade to base version
```
نیازمندی
| مقدار | نام |
|---|---|
| >8.0.0 | elasticsearch |
| ==0.6.1 | typer |
| ==12.5.1 | rich |
| ~=1.2.2 | Mako |
نحوه نصب
نصب پکیج whl chalan-0.1.2:
pip install chalan-0.1.2.whl
نصب پکیج tar.gz chalan-0.1.2:
pip install chalan-0.1.2.tar.gz