sqlcli
A command line interface (CLI) for interacting with SQLModel.
Source code: https://github.com/SamEdwardes/sqlcli
Docs: https://samedwardes.github.io/sqlcli/
PyPi: https://pypi.org/project/sqlcli/
Features
The key features are:
- Read data using the
sqlcli select
command. - Insert data using the
sqlcli insert
command. - Interactive console powered by typer, rich, and sqlmodel.
- Pretty terminal outputs generated by rich.
- Multiple output formats including rich, json, and python dictionaries.
Installation
You can install sqlcli using pip:
This will make the sqlcli
command available in your python environment.
Usage
The quickest way to get started with sqlcli is to create a demo sqlite database:
This will create a small sqlite database on your computer. The you can use sqlcli to explore your database. View your table by using the select
command.