Skip to main content

An interactive shell for sqlite-utils

Project description

sqlite-utils-shell

PyPI Changelog Tests License

An interactive shell for sqlite-utils

Alternative: sqlite-utils-litecli is similar to this but better, because it includes full autocompletion against table and column names.

Installation

Install this plugin in the same environment as sqlite-utils.

sqlite-utils install sqlite-utils-shell

Usage

To start a new interactive shell session against a database:

sqlite-utils shell data.db

Type quit or exit to end the session.

Omit the filename to run against an in-memory database.

To load additional SQLite extensions pass their paths as one or more --load-extension arguments:

sqlite-utils shell data.db \
  --load-extension /path/to/extension.so

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlite-utils-shell-0.3.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

sqlite_utils_shell-0.3-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page