{ "info": { "author": "Roman M. Remizov", "author_email": "rremizov@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "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", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-random-queryset |Build status|\n=====================================\n\nPull random records using Django ORM.\n\n\nRequirements\n------------\n\n- Python 2.7, 3.6, 3.7\n- Django 1.11, 2.0, 2.1, 2.2.\n- Postgres\n\n\nInstallation\n------------\n\n.. code:: sh\n\n $ pip install django-random-queryset\n\n\nSetup\n-----\n\n\nAdd ``RandomManager`` to desired model:\n\n.. code:: python\n\n from django.db import models\n\n from django_random_queryset import RandomManager\n\n\n class Model(models.Model):\n\n objects = RandomManager()\n\n # ...\n\n\nUse it:\n\n.. code:: python\n\n queryset = Model.objects.filter(field=value)\n queryset.random() # to get one random record\n queryset.random(5) # pass amount to get more records\n queryset.random().values() # other queryset methods available\n\n\n.. |Build status| image:: https://travis-ci.org/rremizov/django-random-queryset.svg?branch=master\n :target: https://travis-ci.org/rremizov/django-random-queryset\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/rremizov/django-random-queryset", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-random-queryset", "package_url": "https://pypi.org/project/django-random-queryset/", "platform": "any", "project_url": "https://pypi.org/project/django-random-queryset/", "project_urls": { "Homepage": "http://github.com/rremizov/django-random-queryset" }, "release_url": "https://pypi.org/project/django-random-queryset/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "The extension gives you ability to pull random records using Django's ORM.", "version": "0.1.2" }, "last_serial": 5995276, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7f1ba88b6a3d7f30eeb4fd467cef07db", "sha256": "36517db3edf849fe00d060d5889447fbe81626bf137c27395d04a00323eeda30" }, "downloads": -1, "filename": "django-random-queryset-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7f1ba88b6a3d7f30eeb4fd467cef07db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3668, "upload_time": "2015-02-15T08:45:52", "url": "https://files.pythonhosted.org/packages/3a/51/075387e6b5f6d2fdebaa5f744728e0e34667239fd9a0016e775b2cd60b0d/django-random-queryset-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a7db0325d7458dad15f78986eacd2ad8", "sha256": "3caff766ee0cd0bfbf6865595c47e3f26c1a3f08bb18b85f7999a7aa1503b3f9" }, "downloads": -1, "filename": "django-random-queryset-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a7db0325d7458dad15f78986eacd2ad8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3777, "upload_time": "2015-05-16T13:41:20", "url": "https://files.pythonhosted.org/packages/4b/54/c9bfc35b30f59e29bf2988a1325188df6986dc6adf7784474c8af811701c/django-random-queryset-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d1eb05303691db6e195dce505cbc4733", "sha256": "c64f7313cfe152a08bceb887a1bf95513509fccb9ba868954cd3367445b4c1ae" }, "downloads": -1, "filename": "django-random-queryset-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d1eb05303691db6e195dce505cbc4733", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3786, "upload_time": "2015-05-16T13:50:04", "url": "https://files.pythonhosted.org/packages/fd/29/1a0c33cd7251e473d1ec70a2ebafffe7dfbc68f6acd581029552c3da6985/django-random-queryset-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "a26a76ded649d5b9c4e4212c18153bce", "sha256": "a7c69542a03b7630d6a85797067aa1f4c0882281efc6caddd91ea6f2abdeaa68" }, "downloads": -1, "filename": "django-random-queryset-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a26a76ded649d5b9c4e4212c18153bce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3785, "upload_time": "2018-02-25T15:54:23", "url": "https://files.pythonhosted.org/packages/a0/69/5f27c0caf1c27cfe0194f559ca2026c44a9246b14f0425f1fba624b37797/django-random-queryset-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "dc6b527d9d32f9b01b5e78e984a33eb3", "sha256": "b01740518aad46785dfbe9826d7928eb6a5d363af7413144e8a10209f6ebf5fd" }, "downloads": -1, "filename": "django-random-queryset-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dc6b527d9d32f9b01b5e78e984a33eb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3537, "upload_time": "2018-09-02T12:05:08", "url": "https://files.pythonhosted.org/packages/d7/4a/494f2e91aabcb5efae01c713769bd217e94b7ccc33da7ad79eeb4caef644/django-random-queryset-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bb53eeb146e7290a233cb18cd289d147", "sha256": "2c9bad776ae60618162299758622d852c06ac30d9a485d321094e9eaec307510" }, "downloads": -1, "filename": "django-random-queryset-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bb53eeb146e7290a233cb18cd289d147", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3538, "upload_time": "2018-09-30T20:41:42", "url": "https://files.pythonhosted.org/packages/59/f1/7025901ac94f5e2e87549640287203cfbbc017d33754f64d0c05caf15a9c/django-random-queryset-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "670f67da271f421517c795aec707b509", "sha256": "39317f60bf6ee5afe132241e26586014a0383361e1d01074cb7af0bef555b123" }, "downloads": -1, "filename": "django-random-queryset-0.1.2.tar.gz", "has_sig": false, "md5_digest": "670f67da271f421517c795aec707b509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3549, "upload_time": "2019-10-18T11:59:28", "url": "https://files.pythonhosted.org/packages/62/ba/dbb3ff8584c8a5babd227b0dba15d5cc88fc92167e6a6ed9cd283f1fd90f/django-random-queryset-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "670f67da271f421517c795aec707b509", "sha256": "39317f60bf6ee5afe132241e26586014a0383361e1d01074cb7af0bef555b123" }, "downloads": -1, "filename": "django-random-queryset-0.1.2.tar.gz", "has_sig": false, "md5_digest": "670f67da271f421517c795aec707b509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3549, "upload_time": "2019-10-18T11:59:28", "url": "https://files.pythonhosted.org/packages/62/ba/dbb3ff8584c8a5babd227b0dba15d5cc88fc92167e6a6ed9cd283f1fd90f/django-random-queryset-0.1.2.tar.gz" } ] }