Tool for generating demo SQLite databases
Project description
sqlite-generate
Tool for generating demo SQLite databases
Installation
Install this plugin using pip
:
$ pip install sqlite-generate
Usage
To generate a SQLite database file called data.db
with 10 randomly named tables in it, run the following:
sqlite-generate data.db
You can use the --tables
option to generate a different number of tables:
sqlite-generate data.db --tables 20
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd sqlite-generate
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
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-generate-0.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file sqlite-generate-0.1.tar.gz
.
File metadata
- Download URL: sqlite-generate-0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b8695a4dda0a72cea124830d105ed8f23203c254c2059d27d8a3c58a39a186 |
|
MD5 | 17fde62e5038742f0e492c8a54e55630 |
|
BLAKE2b-256 | fb6c164ea6a47d267d436364daf186cfa19e45b785aadf9586bec4cc060f99fe |
File details
Details for the file sqlite_generate-0.1-py3-none-any.whl
.
File metadata
- Download URL: sqlite_generate-0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ffcd92c76f3eeb4d4e3ce1d035c5d538a5979dfb553439dc705757154ce2a5f |
|
MD5 | 74e40918511c1b38cc91b49af8a7fe25 |
|
BLAKE2b-256 | 0193d056c31db4164ee2deab9aa4f3f04c17765ed49eb7691b67f4f44da1ee4f |