Metadata-Version: 2.1
Name: database-seeder
Version: 0.0.1
Summary: A package to make seeds for some relational databases
Author-email: Long Pham <phamlong15297@gmail.com>
Project-URL: Homepage, https://github.com/conlacda/auto-seeder
Project-URL: Bug Tracker, https://github.com/conlacda/auto-seeder/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Seeder for Mysql
[![gh-action-pip-audit](https://github.com/conlacda/auto-seeder/actions/workflows/gh-action-pip-audit.yml/badge.svg)](https://github.com/conlacda/auto-seeder/actions/workflows/gh-action-pip-audit.yml)

> Load database then make seeds for it

## Usage
```python
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

```shell
python -m pytest
```

## Packing
https://packaging.python.org/en/latest/tutorials/packaging-projects/
