Tools for building SQLite databases from files and directories
Project description
db-build
Tools for building SQLite databases from files and directories
Installation
Install using pip or pipx:
pip install db-build
If you have sqlite-utils installed as well, this will act as a plugin and add a sqlite-utils build command.
Usage
db-build can build databases from a number of different flat file formats.
It is always called with a SQLite database as the first argument, which can be a file that does not exist yet.
Any subsequent arguments will be treated as files or directories that should be loaded into that database.
A simple initial example, adding all CSV files in the current directory:
db-build data.db *.csv
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd db-build
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file db-build-0.1.tar.gz.
File metadata
- Download URL: db-build-0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dee5b26c92e31239ff5a7bfd2adfc7816063b880cba578f28e4c2b73c467e2db
|
|
| MD5 |
04a8ed1fd820c30077f8055817f225a7
|
|
| BLAKE2b-256 |
26051ddda20f0ac17c749fb2ccf09338a5b6730654ae03c04bf7cbde55861cca
|
File details
Details for the file db_build-0.1-py3-none-any.whl.
File metadata
- Download URL: db_build-0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f94c5290719744a506f14cfcbb7ff28c1bf22140eefe43ac07eba4a27a494f59
|
|
| MD5 |
668b23dbf93540b9da446ad9b68be059
|
|
| BLAKE2b-256 |
3e9497981ddfec963d998cb8f9bb36498663f65c8d7688bc9f2929d69d51d7e4
|