⚡️A blazing-fast Django management command for seeding data
Project description
django-lightning-seed
⚡️A blazing-fast Django management command for seeding data
Installation
pip install django-lightning-seed
Then add it to your INSTALLED_APPS:
INSTALLED_APPS = [
...
"django_lightning_seed",
]
Usage
python manage.py lightning_seed
Options
| Option | Description | Default | Example |
|---|---|---|---|
--model |
Specify the model as app_label.ModelName. |
--model tests.TestUser |
|
--count |
Number of records to insert. | 100,000 | --count 50000 |
Supported Field Types
| Category | Field Types |
|---|---|
| Numeric | IntegerField, BigIntegerField, FloatField, DecimalField |
| String | CharField, TextField, SlugField, EmailField, URLField, UUIDField |
| Date / Time | DateField, DateTimeField, TimeField |
| Boolean | BooleanField |
| JSON | JSONField |
| Relationship | ForeignKey |
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 django_lightning_seed-1.0.0.tar.gz.
File metadata
- Download URL: django_lightning_seed-1.0.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024595719d61f78226ed8bbd0ae8ab36d30e9ba5751a634b98455e20bdbfd05f
|
|
| MD5 |
f32faa29713db40a620c5d657f100f7c
|
|
| BLAKE2b-256 |
0fe558941d75ae5630d3f92880a76667857e9e260043e9def8adfb5c7772f2e0
|
File details
Details for the file django_lightning_seed-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_lightning_seed-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62238d64d5c161bf27b08abad78db8885ec8290640c01b5382dc09d84d704465
|
|
| MD5 |
69a76399bbef293e3ab4e64b6151ff88
|
|
| BLAKE2b-256 |
56e5e7eea505ce0ced3cecc5f3eec387d397093855f44b88058523577d152390
|