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
Metadata
Release files for db-build 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| db-build-0.1.tar.gz | 2.8 kB | Without provenance | Details for db-build-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| db_build-0.1-py3-none-any.whl | Python 3 | none | any | Details for db_build-0.1-py3-none-any.whl |
Total release size: 5.9 kB
Release files / db-build-0.1.tar.gz
| Download URL | db-build-0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dee5b26c92e31239ff5a7bfd2adfc7816063b880cba578f28e4c2b73c467e2db
|
|
BLAKE2b-256 checksum How to use checksums |
26051ddda20f0ac17c749fb2ccf09338a5b6730654ae03c04bf7cbde55861cca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / db_build-0.1-py3-none-any.whl
| Download URL | db_build-0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f94c5290719744a506f14cfcbb7ff28c1bf22140eefe43ac07eba4a27a494f59
|
|
BLAKE2b-256 checksum How to use checksums |
3e9497981ddfec963d998cb8f9bb36498663f65c8d7688bc9f2929d69d51d7e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for db-build 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.