A package to make seeds for some relational databases
Project description
Seeder for Mysql
Load database then make seeds for it
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)
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.1.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for dbseeder-0.0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb5d6963ff6503e864ef8692be34cc429c461e920f24632f89a3b2ff699ebe3 |
|
MD5 | 8502e923b43c925854ede7eb97ece2d5 |
|
BLAKE2b-256 | 722bd2642d6a413e9524f5216cd84dc589a89ee853dcd3654b89154329900362 |