Skip to main content

⚡️A blazing-fast Django management command for seeding data

Project description

django-lightning-seed

⚡️A blazing-fast Django management command for seeding data

CI License: MIT python codecov

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

MIT

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

django_lightning_seed-1.0.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_lightning_seed-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file django_lightning_seed-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django_lightning_seed-1.0.0.tar.gz
Algorithm Hash digest
SHA256 024595719d61f78226ed8bbd0ae8ab36d30e9ba5751a634b98455e20bdbfd05f
MD5 f32faa29713db40a620c5d657f100f7c
BLAKE2b-256 0fe558941d75ae5630d3f92880a76667857e9e260043e9def8adfb5c7772f2e0

See more details on using hashes here.

File details

Details for the file django_lightning_seed-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_lightning_seed-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62238d64d5c161bf27b08abad78db8885ec8290640c01b5382dc09d84d704465
MD5 69a76399bbef293e3ab4e64b6151ff88
BLAKE2b-256 56e5e7eea505ce0ced3cecc5f3eec387d397093855f44b88058523577d152390

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page