{ "info": { "author": "allenling", "author_email": "allenling3@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5" ], "description": "django-easy-fixture\n===================\n.. figure:: https://travis-ci.org/allenling/django-easy-fixture.svg?branch=master\n\npython2.7, python3.5\n\n1.8<= Django <= 1.10\n\n**install: pip install django-easy-fixture**\n\nThat is a easy, simple tool to help you to fill your fixture dict with some spam datas\n\nMake your fixture dict to be a completely available django fixture that **you do not have to worry about any unqiue, unqie_together, just pk**\n\n**The pk must be defined by you!**\n\n**Just support all the fields defined by Django, and do not support any customization field.** \n\n**Maybe** support the customization field in the future.\n\n\n\n1. get a fixture dict\n---------------------\n\n.. code-block:: python\n\n # in template.py\n fixtures_template={'auth.User': [{'pk': 1}]}\n\n # in other.py\n from easy_fixture.easy_fixture import EasyFixture\n from template import fixtures_template\n\n ef = EasyFixture(fixtures_template)\n fixtures_dict = ef.output()\n\n2. use as a django app command\n------------------------------\n\n.. code-block:: python\n\n # in template.py\n fixtures_template = {'auth.User': [{'pk': 1}]}\n\n # in your settings.py\n INSTALLED_APPS = ('other apps',\n 'easy_fixture',\n )\nrun make_fixture command\n \n.. code-block:: python\n\n python manage.py make_fixture template.fixtures_template > /path/to/fixture.json\n\nMust pass the module path and fixture variable, like module.to.fixture.Variable_name\n\n**do not support old style**\n\n.. code-block:: python\n\n python manage.py make_fixture template > /path/to/fixture.json\n\n3. use in test\n--------------\n\nIn your testCase, call EasyFixture.load_into_testcase in your setUpTestData, setUpClass, setUp or anywhere you want to load your fixture data. \n\n.. code-block:: python\n\n FIXTURE_DICT = {'auth.User': [{'pk': 1}]}\n\n class MyTestCase(TestCase):\n \n @classmethod\n def setUpTestData(cls):\n ef = EasyFixture(FIXTURE_DICT)\n ef.load_into_testcase()\n TestCase.setUpTestData()\n \n def tes_what_you_want(self):\n pass\n\n\n**deprecate**\n\n.. code-block:: python\n\n from easy_fixture.easy_fixture import FixtureFileGen\n\n class MyCase(TestCase):\n fixtures = FixtureFileGen(['my.fixture.template.module'])\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/allenling/django-easy-fixture", "keywords": "fixture,django", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-easy-fixture", "package_url": "https://pypi.org/project/django-easy-fixture/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-easy-fixture/", "project_urls": { "Homepage": "https://github.com/allenling/django-easy-fixture" }, "release_url": "https://pypi.org/project/django-easy-fixture/0.3.0/", "requires_dist": [ "Django (<1.10,>=1.8)" ], "requires_python": "", "summary": "easy to create a django fixture", "version": "0.3.0" }, "last_serial": 2480526, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6db135b10683fbaea7de3817adf21b86", "sha256": "a4fd7401107bfb3ccf17d5025cf33c9ffbdc66daaccb535117874217d62555e7" }, "downloads": -1, "filename": "django_easy_fixture-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6db135b10683fbaea7de3817adf21b86", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6271, "upload_time": "2016-08-30T09:31:41", "url": "https://files.pythonhosted.org/packages/e2/09/0e605cf45060611e63c55c48078b8b5606322c7762e26e7cecea147e6ded/django_easy_fixture-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30edbbaa281316884cea11908364d9e7", "sha256": "24a7cb529eeff5bdfedb420c9d7a32fbaa47963233cda0524478a6d2d9f1dbca" }, "downloads": -1, "filename": "django-easy-fixture-0.1.1.tar.gz", "has_sig": false, "md5_digest": "30edbbaa281316884cea11908364d9e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6719, "upload_time": "2016-08-30T09:31:44", "url": "https://files.pythonhosted.org/packages/3a/d1/cbb52b90e532383b1ee43700a0521e55f8262833022c10303ddbce541d84/django-easy-fixture-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1016e1b7c56c4a4ff8aac785ec0b5e0a", "sha256": "d030088662f781eb2fe4f4e6c1b9be2e0b631f1331b7dd5248d1b799f126bbf2" }, "downloads": -1, "filename": "django_easy_fixture-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1016e1b7c56c4a4ff8aac785ec0b5e0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6286, "upload_time": "2016-08-30T09:59:56", "url": "https://files.pythonhosted.org/packages/89/d1/16a9ee0532b0ba2188f17d98b453f242677c9b51103289edee4a33ec6dbc/django_easy_fixture-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "812176dda69e5c5e21e0c6f4dfef2517", "sha256": "3438bc1e5017a2178b1395ff4a9b90b23f1ecd4c8a6cbb9a2f346ad06d6687a5" }, "downloads": -1, "filename": "django-easy-fixture-0.1.2.tar.gz", "has_sig": false, "md5_digest": "812176dda69e5c5e21e0c6f4dfef2517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6746, "upload_time": "2016-08-30T09:59:59", "url": "https://files.pythonhosted.org/packages/1a/5f/2d0bfa7cabbc1237ab1956fde20ea08ff6cdd8b6d0fbf79682e0dbd9aa71/django-easy-fixture-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c01e0789f47885005b9d377608a6e56d", "sha256": "3786465079af184e673a2ba40c75b4cc7008a604671024d8a382cd6a7b715d92" }, "downloads": -1, "filename": "django_easy_fixture-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c01e0789f47885005b9d377608a6e56d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6298, "upload_time": "2016-09-22T06:14:07", "url": "https://files.pythonhosted.org/packages/2e/1b/a0a4d4775fd38326d15f5a409a2254d7167eba579275c7d0f3a691fadc15/django_easy_fixture-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd379a61360c8b77300465123992bce5", "sha256": "ae4e6a3fb4d1a9972b987c5d48cdc9e2647f0af910285e5faffccec4b92f5528" }, "downloads": -1, "filename": "django-easy-fixture-0.1.3.tar.gz", "has_sig": false, "md5_digest": "bd379a61360c8b77300465123992bce5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13111, "upload_time": "2016-09-22T06:14:11", "url": "https://files.pythonhosted.org/packages/1c/9e/b24a8847b8347ff27a812312501a59b9c7fd55c5e7847d5ee78eb4623e48/django-easy-fixture-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "584f3463f4ebf983ea2a45036f313549", "sha256": "712643af64f654ac6827b2d65a85824bf8e191667dadf57e3a7658f121197294" }, "downloads": -1, "filename": "django_easy_fixture-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "584f3463f4ebf983ea2a45036f313549", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6368, "upload_time": "2016-09-29T05:30:15", "url": "https://files.pythonhosted.org/packages/53/35/4956c724ff53f398124a15f86d84133a7173b9ea6c16820922880b74a7f0/django_easy_fixture-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "69f00cbae4a9801ea510662b2be592c0", "sha256": "33dc7ec61ed2064dfaeb321e4469787a5dee30313c9257cd3866bd540ac69d56" }, "downloads": -1, "filename": "django-easy-fixture-0.2.0.tar.gz", "has_sig": false, "md5_digest": "69f00cbae4a9801ea510662b2be592c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13710, "upload_time": "2016-09-29T05:30:18", "url": "https://files.pythonhosted.org/packages/10/d3/eea44d050cf8b8fb85891147adf8797147f3cd7ce2246859356a5e32e9ed/django-easy-fixture-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ac288f9980f5fcbb7391fa2d15868d2e", "sha256": "465df3395372da8a150516ec610cda338e0aa5b71cf26f1f1e7b7af61b027c2e" }, "downloads": -1, "filename": "django_easy_fixture-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac288f9980f5fcbb7391fa2d15868d2e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6384, "upload_time": "2016-10-12T10:40:54", "url": "https://files.pythonhosted.org/packages/f6/ab/5de95954f27fe287e5510c42dfb876dabd99657f5a258a394f12a30c1e6f/django_easy_fixture-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b73c77eed0caaf5b41589be3134c6449", "sha256": "c291fdd8252ee321370cab4a646c4253376d27ffb1b30a51ba42b43094645e7b" }, "downloads": -1, "filename": "django-easy-fixture-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b73c77eed0caaf5b41589be3134c6449", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13722, "upload_time": "2016-10-12T10:40:57", "url": "https://files.pythonhosted.org/packages/eb/36/dc2fec529b71031a9603341d91d0ba3177fab225396ee07b2a0d4199b9e6/django-easy-fixture-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "294bdf370a126c8508347078e0b5c4ab", "sha256": "22a044667badc859507f9a06ff75ee179be7647e072e159c36eb35ffd436c4ad" }, "downloads": -1, "filename": "django_easy_fixture-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "294bdf370a126c8508347078e0b5c4ab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6667, "upload_time": "2016-11-24T10:20:44", "url": "https://files.pythonhosted.org/packages/83/d3/a5341c409a8cd0e211aa6a52876069f949f68a0d87447493fc19c9745c95/django_easy_fixture-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f96f16ebd1f523432e273e5f73464b1", "sha256": "901f3d295ecee0b923271f9ae664be7f50c22bcdd8a299c8fae8d1cc2817a1d0" }, "downloads": -1, "filename": "django-easy-fixture-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4f96f16ebd1f523432e273e5f73464b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13322, "upload_time": "2016-11-24T10:20:48", "url": "https://files.pythonhosted.org/packages/10/12/1f29dc0331cd99e333e991661522d938a0b2d1bfb59467ab546722557b98/django-easy-fixture-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "294bdf370a126c8508347078e0b5c4ab", "sha256": "22a044667badc859507f9a06ff75ee179be7647e072e159c36eb35ffd436c4ad" }, "downloads": -1, "filename": "django_easy_fixture-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "294bdf370a126c8508347078e0b5c4ab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6667, "upload_time": "2016-11-24T10:20:44", "url": "https://files.pythonhosted.org/packages/83/d3/a5341c409a8cd0e211aa6a52876069f949f68a0d87447493fc19c9745c95/django_easy_fixture-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f96f16ebd1f523432e273e5f73464b1", "sha256": "901f3d295ecee0b923271f9ae664be7f50c22bcdd8a299c8fae8d1cc2817a1d0" }, "downloads": -1, "filename": "django-easy-fixture-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4f96f16ebd1f523432e273e5f73464b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13322, "upload_time": "2016-11-24T10:20:48", "url": "https://files.pythonhosted.org/packages/10/12/1f29dc0331cd99e333e991661522d938a0b2d1bfb59467ab546722557b98/django-easy-fixture-0.3.0.tar.gz" } ] }