A package to make seeds for some relational databases
Project description
Seeder for Mysql
Load database then make seeds for it
Install
$ pip install dbseeder
Usage
from dbseeder import Database
db = Database(host="localhost", user="root", password="", database="seed")
# Make seed without deleting the existence data
db.makeSeed(rows_num=100000)
# Delete data, then make seeds
db.clearAndMakeSeed(rows_num=100000)
OR
$ python -m dbseeder --host localhost --user root --password= --database seed --rows_num 100 --drop
TODO
- Load relationship
- Add test
- Add argparser
Test
python -m pytest
Packing
My note
To publish new version:
- Change version in
pyproject.toml - Build:
python -m build - Upload to testpypi:
py -m twine upload --repository testpypi dist/* - Upload to pypi:
py -m twine upload --repository pypi dist/
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
dbseeder-0.0.4.3.tar.gz
(5.3 kB
view details)
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 dbseeder-0.0.4.3.tar.gz.
File metadata
- Download URL: dbseeder-0.0.4.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f281bc0af65cab0116994a231034697e198604c4c479fd471db635ee164f416
|
|
| MD5 |
776c1a2705b22c116dac6512481d470a
|
|
| BLAKE2b-256 |
9f0b8eb3b024a6e2d081b310a2f9c6826c560ae56ba339fd94caa9bc7fb1897f
|
File details
Details for the file dbseeder-0.0.4.3-py3-none-any.whl.
File metadata
- Download URL: dbseeder-0.0.4.3-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ee78c5d90e6594af07f4ec4eb7d2c329949e8debf8929702a5867ac3d40fa7
|
|
| MD5 |
60adfe01703336de299264ff66d8c385
|
|
| BLAKE2b-256 |
0ffb43f97f6a76e8dea2b2a023c0bd5a469e1076e3a41a96e4bf098f446e98c9
|