Name | django-sample-data-generator JSON |
Version |
1.0.5
JSON |
| download |
home_page | |
Summary | Sample data generator |
upload_time | 2023-12-15 04:49:40 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | MIT |
keywords |
django
sample data
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
=====================
Sample data generator
=====================
|codecov| |version| |downloads| |license|
Install
-------
.. code:: bash
pip install django-sample-data-generator
Usage
-----
Settings
^^^^^^^^
.. code:: python
INSTALLED_APPS = (
# ...
'django_sample_generator',
)
SAMPLE_DATA_GENERATORS = (
'blog.generators',
)
Example
^^^^^^^
.. code:: python
# blog/generators.py
from django_sample_generator import generator
from .models import Blog
class BlogGenerator(generator.ModelGenerator):
class Meta:
model = Blog
generators = [
BlogGenerator(10), # 10 blogs
]
.. code:: bash
python manage.py create_sample_data
.. |codecov| image:: https://codecov.io/gh/mireq/django-sample-data-generator/branch/master/graph/badge.svg?token=1IMD01ean6
:target: https://codecov.io/gh/mireq/django-sample-data-generator
.. |version| image:: https://badge.fury.io/py/django-sample-data-generator.svg
:target: https://pypi.python.org/pypi/django-sample-data-generator/
.. |downloads| image:: https://img.shields.io/pypi/dw/django-sample-data-generator.svg
:target: https://pypi.python.org/pypi/django-sample-data-generator/
.. |license| image:: https://img.shields.io/pypi/l/django-sample-data-generator.svg
:target: https://pypi.python.org/pypi/django-sample-data-generator/
Raw data
{
"_id": null,
"home_page": "",
"name": "django-sample-data-generator",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "django,sample data",
"author": "",
"author_email": "Miroslav Bend\u00edk <miroslav.bendik@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/fa/67/5c688b53420b351c5e4ce70d44d2461f7693ff7730334e6f4451cdfc5f76/django-sample-data-generator-1.0.5.tar.gz",
"platform": null,
"description": "=====================\nSample data generator\n=====================\n\n|codecov| |version| |downloads| |license|\n\nInstall\n-------\n\n.. code:: bash\n\n\tpip install django-sample-data-generator\n\n\nUsage\n-----\n\nSettings\n^^^^^^^^\n\n.. code:: python\n\n\tINSTALLED_APPS = (\n\t\t# ...\n\t\t'django_sample_generator',\n\t)\n\n\tSAMPLE_DATA_GENERATORS = (\n\t\t'blog.generators',\n\t)\n\nExample\n^^^^^^^\n\n.. code:: python\n\n\t# blog/generators.py\n\n\tfrom django_sample_generator import generator\n\tfrom .models import Blog\n\n\tclass BlogGenerator(generator.ModelGenerator):\n\t\tclass Meta:\n\t\t\tmodel = Blog\n\n\tgenerators = [\n\t\tBlogGenerator(10), # 10 blogs\n\t]\n\n.. code:: bash\n\n\tpython manage.py create_sample_data\n\n.. |codecov| image:: https://codecov.io/gh/mireq/django-sample-data-generator/branch/master/graph/badge.svg?token=1IMD01ean6\n\t:target: https://codecov.io/gh/mireq/django-sample-data-generator\n\n.. |version| image:: https://badge.fury.io/py/django-sample-data-generator.svg\n\t:target: https://pypi.python.org/pypi/django-sample-data-generator/\n\n.. |downloads| image:: https://img.shields.io/pypi/dw/django-sample-data-generator.svg\n\t:target: https://pypi.python.org/pypi/django-sample-data-generator/\n\n.. |license| image:: https://img.shields.io/pypi/l/django-sample-data-generator.svg\n\t:target: https://pypi.python.org/pypi/django-sample-data-generator/\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Sample data generator",
"version": "1.0.5",
"project_urls": {
"changelog": "https://github.com/mireq/django-django-sample-data-generator/blob/master/CHANGELOG.md",
"documentation": "https://github.com/mireq/django-django-sample-data-generator",
"homepage": "https://github.com/mireq/django-django-sample-data-generator",
"repository": "https://github.com/mireq/django-django-sample-data-generator"
},
"split_keywords": [
"django",
"sample data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d061fde99dc94ea4b81d986b806f0b7730e0c0b36e272234883e25d1154dac8",
"md5": "860a031a5ec1e91471634a4b01f1e248",
"sha256": "19abed3239b29e93fe4565253a7302d7a5af130346877fbeb22df1a903886bb5"
},
"downloads": -1,
"filename": "django_sample_data_generator-1.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "860a031a5ec1e91471634a4b01f1e248",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 90915,
"upload_time": "2023-12-15T04:49:37",
"upload_time_iso_8601": "2023-12-15T04:49:37.790890Z",
"url": "https://files.pythonhosted.org/packages/4d/06/1fde99dc94ea4b81d986b806f0b7730e0c0b36e272234883e25d1154dac8/django_sample_data_generator-1.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fa675c688b53420b351c5e4ce70d44d2461f7693ff7730334e6f4451cdfc5f76",
"md5": "e104a8aece75fe54ff38c2d1125c9c9f",
"sha256": "dac0868d4fc0848fb04c47f90f539d56ac7d51e29c5d9650146400e2b547f47a"
},
"downloads": -1,
"filename": "django-sample-data-generator-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "e104a8aece75fe54ff38c2d1125c9c9f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 102773,
"upload_time": "2023-12-15T04:49:40",
"upload_time_iso_8601": "2023-12-15T04:49:40.238915Z",
"url": "https://files.pythonhosted.org/packages/fa/67/5c688b53420b351c5e4ce70d44d2461f7693ff7730334e6f4451cdfc5f76/django-sample-data-generator-1.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-15 04:49:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mireq",
"github_project": "django-django-sample-data-generator",
"github_not_found": true,
"lcname": "django-sample-data-generator"
}