{"id":20944232,"url":"https://github.com/hotkit/tormor","last_synced_at":"2025-05-14T01:31:08.733Z","repository":{"id":57476617,"uuid":"150723389","full_name":"hotkit/tormor","owner":"hotkit","description":"Database migration library written in Python","archived":false,"fork":false,"pushed_at":"2019-10-22T12:42:13.000Z","size":74,"stargazers_count":0,"open_issues_count":2,"forks_count":6,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-08T07:46:52.431Z","etag":null,"topics":["migration-tool","postgres","python","sql"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hotkit.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-28T10:19:50.000Z","updated_at":"2019-10-22T12:42:15.000Z","dependencies_parsed_at":"2022-09-12T14:32:37.118Z","dependency_job_id":null,"html_url":"https://github.com/hotkit/tormor","commit_stats":null,"previous_names":["proteus-tech/tormor"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotkit%2Ftormor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotkit%2Ftormor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotkit%2Ftormor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotkit%2Ftormor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hotkit","download_url":"https://codeload.github.com/hotkit/tormor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224996484,"owners_count":17404487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["migration-tool","postgres","python","sql"],"created_at":"2024-11-18T23:39:47.700Z","updated_at":"2024-11-18T23:39:48.346Z","avatar_url":"https://github.com/hotkit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tormor Command Line Tool\n[![PyPI version](https://badge.fury.io/py/tormor.svg)](https://badge.fury.io/py/tormor)\n[![CircleCI](https://circleci.com/gh/Proteus-tech/tormor.svg?style=svg)](https://circleci.com/gh/Proteus-tech/tormor)\n[![Coverage Status](https://coveralls.io/repos/github/Proteus-tech/tormor/badge.svg)](https://coveralls.io/github/Proteus-tech/tormor)\n\nTormor is a command line tool for migrating database. To use Tormor, please first ensure these requirements:\n\n  - Postgresql has been installed\n  - Postgresql can be accessed using command :\n    ```sh\n    $ psql\n    ```\n- SCHEMA_PATH has been specified\n    \n## Installation\nTormor requires Python 3.5 or later to run. Tormor can be installed using pip:\n```sh\n$ pip install git+https://github.com/Proteus-tech/tormor.git@pytest_asyncpg_dryrun\n```\n\n## Instruction\n    $ tormor [opts] command [args]\nFor more information, please use command:\n```sh\n$ tormor --help\n```\n\n### Enabling Modules\n`enable-modules` command receives module name as a parameter to be enabled and later migrated using `migrate` command.\n```\n$ tormor enable-modules module-to-be-migrated\n```\n\n### Migrate\n`migrate` command executes sql files under the enabled modules.\nTo start migration, use the following command:\n```sh\n$ tormor migrate\n```\nTo simply output migration sql queries without executing them, use the following command.\n```sh\n$ tormor migrate --dry-run\n```\n\n### Run a Script File\n`include` command takes filename as a parameter allows tormor commands to be run in a script, each line at a time.\n```sh\n$ tormor include filename\n```\n\n### Execute SQL File\n`sql` command takes filename as a parameter and load and execute the query inside it.\n```sh\n$ tormor sql filename\n```\n\n## Dev\n\n### Requirements\n- flit\n- PostgreSQL\n\n```bash\npip install flit\nflit install\n./runtests\n```\n\n### Publish to PyPI\n```\nflit publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotkit%2Ftormor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhotkit%2Ftormor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotkit%2Ftormor/lists"}