Metadata-Version: 2.1
Name: sqlite-utils-shell
Version: 0.2
Summary: An interactive shell for sqlite-utils
Author: Simon Willison
License: Apache-2.0
Project-URL: Homepage, https://github.com/simonw/sqlite-utils-shell
Project-URL: Changelog, https://github.com/simonw/sqlite-utils-shell/releases
Project-URL: Issues, https://github.com/simonw/sqlite-utils-shell/issues
Project-URL: CI, https://github.com/simonw/sqlite-utils-shell/actions
Classifier: License :: OSI Approved :: Apache Software License
Description-Content-Type: text/markdown
Provides-Extra: test
License-File: LICENSE

# sqlite-utils-shell

[![PyPI](https://img.shields.io/pypi/v/sqlite-utils-shell.svg)](https://pypi.org/project/sqlite-utils-shell/)
[![Changelog](https://img.shields.io/github/v/release/simonw/sqlite-utils-shell?include_prereleases&label=changelog)](https://github.com/simonw/sqlite-utils-shell/releases)
[![Tests](https://github.com/simonw/sqlite-utils-shell/workflows/Test/badge.svg)](https://github.com/simonw/sqlite-utils-shell/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/sqlite-utils-shell/blob/main/LICENSE)

An interactive shell for sqlite-utils

## Installation

Install this plugin in the same environment as sqlite-utils.
```bash
sqlite-utils install sqlite-utils-shell
```

## Usage

To start a new interactive shell session against a database:
```bash
sqlite-utils shell data.db
```
Type `quit` or `exit` to end the session.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

    cd sqlite-utils-shell
    python3 -m venv venv
    source venv/bin/activate

Now install the dependencies and test dependencies:

    pip install -e '.[test]'

To run the tests:

    pytest
