Chalan
Chalan is a migration tool designed and developed for Elasticsearch and inspired from Alembic
Installation
pip install chalan
Initialize
Setup migration tool, configuration files and migration folders using below command
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
--- es_migrations/
|
--versions/
--- chalan.ini
Create Revision
Create revision file with migration changes in version directory with below command.
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.
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.
chalan downgrade # Downgrade 1 level down
# or
chalan downgrade --version base # Downgrade to base version
Metadata
Release files for chalan 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chalan-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for chalan-0.1.4-py3-none-any.whl |
Release files / chalan-0.1.4-py3-none-any.whl
| Download URL | chalan-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d7cf3fb77862fdbdef471387a604bccccaefe772414764713e711a71ef0583f
|
|
BLAKE2b-256 checksum How to use checksums |
755bd89db442308b22a5e3408993460d315f0664729b2c2786277b206484c9a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.16
|
Security for chalan 0.1.4
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.