{ "info": { "author": "Red Interactive", "author_email": "geeks@ff0000.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Documentation", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "An utility to retrieve or generate random instances of Django models.\n-------------------------------------\n\nThis module exports a get_or_create_random function that improves Django's\nget_or_create (http://djangoproject.com/documentation/models/get_or_create/)\non two aspects:\n\n* invoking get_or_create_random with parameters that match MULTIPLE instances\ndoes not raise an error, but rather returns one of those instances at random\n\n* invoking get_or_create_random with parameters that do not match ANY instance\nreturns a NEW instance of that model (the same occurs with get_or_create). The\nimprovement is that get_or_create_random can be invoked without passing a value\nfor all the 'required' fields of the model. If these fields are not passed,\nthey are automatically filled with random values (e.g.: CharFields are filled\nwith random strings, ImageFields with random images).\n\nThe goal is to make prototyping faster, as model instances can be obtained and\ncreated by specifying just the minimum set of desired fields. This is useful\nwhen writing tests and can avoid having to write complex fixtures.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/ff0000/random_instances", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://ff0000.com/", "keywords": "django,admin,bdd,tdd,documentation,lettuce", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "random_instances", "package_url": "https://pypi.org/project/random_instances/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/random_instances/", "project_urls": { "Download": "https://github.com/ff0000/random_instances", "Homepage": "http://ff0000.com/" }, "release_url": "https://pypi.org/project/random_instances/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Retrieve or generate random instances of Django models.", "version": "0.0.3" }, "last_serial": 798464, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "98b6bce7ddb8fa0bb0e743f4a6576a4b", "sha256": "c0ed8400ff080d2207dbb99106f7752fddbdf8e983be3518a940caa967886a04" }, "downloads": -1, "filename": "random_instances-0.0.1.tar.gz", "has_sig": false, "md5_digest": "98b6bce7ddb8fa0bb0e743f4a6576a4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2011-01-21T00:33:26", "url": "https://files.pythonhosted.org/packages/2a/00/6d123c3d6d1389fac0170bed153458293aaa5eb2a2ff85d577b7ca5ced68/random_instances-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ccde2856d4c8813c9915fd2f4d70e4d6", "sha256": "b67b0fd166cdeb1b403f33822fcff4de02c19dc77f44759a4b0236699cfacadd" }, "downloads": -1, "filename": "random_instances-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ccde2856d4c8813c9915fd2f4d70e4d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6240, "upload_time": "2011-01-21T20:53:24", "url": "https://files.pythonhosted.org/packages/8a/9a/88d2e564acc65db8de3ce59cae082eab2773d11077fdfc635d68cdec67a6/random_instances-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "41f1d1ce56a952550fc31dcb5913f739", "sha256": "d5513a275108df59ca24e1cec7a87dd575a4d3a78281cb987902a3dcaa6db878" }, "downloads": -1, "filename": "random_instances-0.0.3.tar.gz", "has_sig": false, "md5_digest": "41f1d1ce56a952550fc31dcb5913f739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8081, "upload_time": "2011-10-05T20:05:19", "url": "https://files.pythonhosted.org/packages/c8/68/cc1eb176786f6d952cea3e4d35b26cc9868429dc677262b86abc3bcbfd1c/random_instances-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41f1d1ce56a952550fc31dcb5913f739", "sha256": "d5513a275108df59ca24e1cec7a87dd575a4d3a78281cb987902a3dcaa6db878" }, "downloads": -1, "filename": "random_instances-0.0.3.tar.gz", "has_sig": false, "md5_digest": "41f1d1ce56a952550fc31dcb5913f739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8081, "upload_time": "2011-10-05T20:05:19", "url": "https://files.pythonhosted.org/packages/c8/68/cc1eb176786f6d952cea3e4d35b26cc9868429dc677262b86abc3bcbfd1c/random_instances-0.0.3.tar.gz" } ] }