mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Python CLI utility and library for manipulating SQLite databases
https://sqlite-utils.datasette.io
- Python 99.7%
- C 0.2%
Found an itertools mechanism that works for iterating through the current and next row in the cursor. |
||
|---|---|---|
| docs | ||
| sqlite_utils | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| README.md | ||
| setup.py | ||
sqlite-utils
Python CLI utility and library for manipulating SQLite databases.
Install it like this:
pip3 install sqlite-utils
Now you can do things like this:
$ sqlite-utils tables dogs.db
dogs
$ sqlite-utils csv dogs.db "select * from dogs"
id,age,name
1,4,Cleo
2,2,Pancakes
$ sqlite-utils json dogs.db "select * from dogs"
[{"id": 1, "age": 4, "name": "Cleo"},
{"id": 2, "age": 2, "name": "Pancakes"}]
Full documentation: https://sqlite-utils.readthedocs.io/
Related projects:
- Datasette: A tool for exploring and publishing data
- csvs-to-sqlite: Convert CSV files into a SQLite database