semvec/pypi-packages huggingface dataset:
hemlock-cli-dsbowen 0.0.8
Command line interface for Hemlock projects
Requires Python: >=3.6

# Hemlock-CLI

Hemlock-CLI is a command line tool for the [Hemlock](dsbowen.github.io/hemlock) survey creation package.

## Basic use

The following commands will initialize a new Hemlock project, deploy the survey in a 'production-lite' environment, then scale it to a full production environment.

```
$ hlk init my-project
$ hlk deploy my-app
$ hlk production
```

Other commands allow programmers to:
1. Run a Hemlock app or shell locally.
2. Run the Hemlock debugging tool in local and production environments.
3. Create and associate Google storage with a Hemlock project.
4. Run a local Redis Queue for a Hemlock app.

## Documentation

You can find the latest documentation at [dsbowen.github.io/hemlock](dsbowen.github.io/hemlock]).

## License

Hemlock was created first and foremost as a free, open-source tool for academic and non-profit research. I aim to obtain a license permitting unlimited free use for legitimate academic and non-profit research by February 2020.

Until I obtain this license, I require that all Hemlock users obtain written permission from its copyright holder, Dillon Bowen. Any use without written permission from the copyright holder is strictly prohibited.
pgmigrations 0.0.13
SQL migrations for projects using PostgreSQL
Requires Python: >=3.6

# pgmigrations

[![Build Status](https://travis-ci.com/peajayni/pgmigrations.svg?branch=master)](https://travis-ci.com/peajayni/pgmigrations)
[![Coverage Status](https://coveralls.io/repos/github/peajayni/pgmigrations/badge.svg?branch=master&kill_cache=1)](https://coveralls.io/github/peajayni/pgmigrations?branch=master)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


SQL migrations for projects using PostgreSQL

## Example Usage

### Initialise the migrations
```
pgmigrations init
```

This will create a directory called ```migrations``` in the current working directory

### Create a migration
```
pgmigrations create <tag>
```

This will create a skeleton migration in the ```migrations``` directory. The migration will consist of a directory with
the name ```<timestamp>_migrations_<tag>```, for example ```20200701_1030_migrations_first_migration ```, which 
contains two files; ```apply.sql``` and ```rollback.sql```.

As the names suggests, ```apply.sql``` will be executed when the migration is applied and ```rollback.sql``` will be 
executed if the migraiton is rollbacked.

### Apply migrations
```
pgmigrations apply --dsn=<dsn> [--path <colon separated list of migration locations>]
```
or
```
export PGMIGRATIONS_DSN=<dsn>
export PGMIGRATIONS_PATH=<colon separated list of migration locations>
pgmigrations apply
```

This will apply any unapplied migrations. Each migration is applied in an atomic transaction.

### Rollback a migration
```
pgmigrations rollback --dsn=<dsn> [--path <colon separated list of migration locations>]
```
or
```
export PGMIGRATIONS_DSN=<dsn>
export PGMIGRATIONS_PATH=<colon separated list of migration locations>
pgmigrations rollback <name>
```

This will rollback an already applied migration.