Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saschpe/migrantpy
Simple SQLite database migrations library for Python.
https://github.com/saschpe/migrantpy
migration-tool python python3 schema-migrations sqlite
Last synced: 30 days ago
JSON representation
Simple SQLite database migrations library for Python.
- Host: GitHub
- URL: https://github.com/saschpe/migrantpy
- Owner: saschpe
- License: apache-2.0
- Created: 2018-01-18T16:23:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T00:00:12.000Z (about 6 years ago)
- Last Synced: 2024-09-26T09:07:22.286Z (about 2 months ago)
- Topics: migration-tool, python, python3, schema-migrations, sqlite
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Migrantpy
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://travis-ci.org/saschpe/migrantpy.svg?branch=master)](https://travis-ci.org/saschpe/migrantpy)Simple SQLite database migrations library for Python.
## Usage
The library can be used either as a command line utility:
```bash
migrantpy migrate database.sqlite migrations_folder/
```Or as a *Python* library:
```python
import migrantpy
migrantpy.migrate('database.sqlite', 'migrations_folder/')
```## Hacking
You can create a full test database this way:
```bash
./migrant.py migrate test.sqlite test_migrations
```Running the unit tests:
```bash
python3 -m unittest discover --locals
```Or install locally:
```bash
python setup.py install --user
migrate -h
```## Download
Install the library from the Python Package Index:
```bash
pip install migrantpy
```## License
Copyright 2016 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.