{ "info": { "author": "Adam Charnock", "author_email": "adam@adamcharnock.com", "bugtrack_url": null, "classifiers": [], "description": "django-smalluuid\n================\n\n.. image:: https://img.shields.io/pypi/v/django-smalluuid.svg\n :target: https://pypi.python.org/pypi/django-smalluuid/\n\n.. image:: https://img.shields.io/pypi/dm/django-smalluuid.svg\n :target: https://pypi.python.org/pypi/django-smalluuid/\n\n.. image:: https://img.shields.io/github/license/adamcharnock/django-smalluuid.svg\n :target: https://pypi.python.org/pypi/django-smalluuid/\n\n.. image:: https://img.shields.io/travis/adamcharnock/django-smalluuid.svg\n :target: https://travis-ci.org/adamcharnock/django-smalluuid/\n\n.. image:: https://coveralls.io/repos/adamcharnock/django-smalluuid/badge.svg?branch=master\n :target: https://coveralls.io/r/adamcharnock/django-smalluuid?branch=master\n\n\n\nInstallation\n------------\n\nInstallation using pip::\n\n pip install django-smalluuid\n\nTested on:\n\n * Django >= 1.8 <= 1.11\n * Python 2.7, 3.4, 3.5, 3.6\n\n\nBasic Usage\n-----------\n\nTo get started use the ``SmallUUIDField`` field in your model definitions:\n\n.. code-block:: python\n\n from django.db import models\n from django_smalluuid.models import SmallUUIDField, uuid_default\n\n class ExampleModel(models.Model):\n uuid = SmallUUIDField(default=uuid_default())\n\nThe field provides values as instances of ``SmallUUID`` (see smalluuid_):\n\n.. code-block:: python\n\n >>> obj = ExampleModel.objects.create()\n\n # The initial UUID has been auto-generated by uuid_default()\n >>> obj.uuid\n SmallUUID('T1q_P6HcQNSyW6tpqJTxww')\n\n # It is still available in the groupex hex form (if needed)\n >>> obj.hex_grouped\n '4f5abf3f-a1dc-40d4-b25b-ab69a894f1c3'\n\n # Filtering is done on the shortened UUIDs\n >>> ExampleModel.objects.filter(uuid='T1q_P6HcQNSyW6tpqJTxww')\n []\n\n\nTyped Usage\n-----------\n\n``django-smalluuid`` also supports the Typed UUID's as provided by smalluuid_. This\nallows for the object's type to be stored within the UUID.\n\nUpdating the above example:\n\n.. code-block:: python\n\n from django.db import models\n from django_smalluuid.models import SmallUUIDField, uuid_typed_default\n\n class TypedExampleModel(models.Model):\n uuid = SmallUUIDField(default=uuid_typed_default(type=42))\n\nWhich can be interacted with as follows:\n\n.. code-block:: python\n\n >>> obj = TypedExampleModel.objects.create()\n >>> obj.uuid\n TypedSmallUUID('qvyk8nzbQfu8zAnTPQweyw')\n >>> obj.uuid.type\n 42\n\n\nCredits\n-------\n\ndjango-smalluuid is packaged using seed_ and relies upon smalluuid_.\n\n.. _seed: https://github.com/adamcharnock/seed/\n.. _smalluuid: https://github.com/adamcharnock/smalluuid", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adamcharnock/django-smalluuid", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-smalluuid", "package_url": "https://pypi.org/project/django-smalluuid/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-smalluuid/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/adamcharnock/django-smalluuid" }, "release_url": "https://pypi.org/project/django-smalluuid/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Short-form UUID field for Django 1.8 and above", "version": "1.1.1" }, "last_serial": 2668837, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6c78792daeb123ec81cfecf323e22e58", "sha256": "86fe8510334e5b41e73a094271b5e2dd39bbf137c17875496cbad8695a597531" }, "downloads": -1, "filename": "django-smalluuid-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c78792daeb123ec81cfecf323e22e58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6344, "upload_time": "2015-06-14T22:32:57", "url": "https://files.pythonhosted.org/packages/3a/27/25038952ec9af7407dd3bb021ed26395ffa6d6e667f03ddb6c36883443c5/django-smalluuid-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6b549a7a551c144d47e6d10760892bd8", "sha256": "10f366fb7d4a44cf1e868c457f70244cb19e846d8cf7eaab646e2d3b70c17976" }, "downloads": -1, "filename": "django-smalluuid-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6b549a7a551c144d47e6d10760892bd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6611, "upload_time": "2015-06-15T16:51:23", "url": "https://files.pythonhosted.org/packages/5e/49/197df4d7552d17e235f9e88f33c8179533b6874ad6e2dac335598f6bbacd/django-smalluuid-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b57a260339a11eb5c4666afdac51e50f", "sha256": "1282e752271f257066ebcd7be9593160814fbb9ba5fcf321d8f8682f43eb171e" }, "downloads": -1, "filename": "django-smalluuid-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b57a260339a11eb5c4666afdac51e50f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6654, "upload_time": "2015-06-15T17:57:22", "url": "https://files.pythonhosted.org/packages/dc/68/651f5a415a4cc88ee116773815add4e9ffaab16b01deedc101a04651ed17/django-smalluuid-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "03dddfb048401ea247f26933d8fbab50", "sha256": "54a669d4f6572cc9a1b340faabe75a0957fe4933fe49c2cb6ffd3fb2ddbec072" }, "downloads": -1, "filename": "django_smalluuid-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "03dddfb048401ea247f26933d8fbab50", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 9883, "upload_time": "2016-07-11T14:49:36", "url": "https://files.pythonhosted.org/packages/de/d5/4ddf4a4f55bb168431b48f121269d9556760a141c38a5c4f6a81a2c08cda/django_smalluuid-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16acbcc25b60f06ea90a0a15c2302f35", "sha256": "78a88591c23abd39b9f911e96e5bbdd87371105769872be5cb34bbe0c0a78e47" }, "downloads": -1, "filename": "django-smalluuid-0.1.3.tar.gz", "has_sig": false, "md5_digest": "16acbcc25b60f06ea90a0a15c2302f35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6685, "upload_time": "2016-07-11T14:49:31", "url": "https://files.pythonhosted.org/packages/23/15/c973e9c6e731537c0eb3e07ef16d19251f82c81640201db16f31bd39ed1a/django-smalluuid-0.1.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f560367b94ef69375acb50db39727b07", "sha256": "9879347f09781bef19abd4c34331b5e3dc0e829e535f3547e6929fd2f716b334" }, "downloads": -1, "filename": "django_smalluuid-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f560367b94ef69375acb50db39727b07", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 9882, "upload_time": "2016-12-12T22:59:03", "url": "https://files.pythonhosted.org/packages/65/8f/b1153f692eb9fec6a5e7972ef00f53f95fd3a7c12c84e1ba3d1ec98bdf12/django_smalluuid-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63b1e8722bc4b3be7ed5fc36673980b3", "sha256": "a9355a5e3efe36fbb2b11e8077bfaa8a05ce9ff21509cbff0c29ab4a60b13750" }, "downloads": -1, "filename": "django-smalluuid-1.0.0.tar.gz", "has_sig": false, "md5_digest": "63b1e8722bc4b3be7ed5fc36673980b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6782, "upload_time": "2016-12-12T22:59:01", "url": "https://files.pythonhosted.org/packages/4f/79/6da20742453ee167582143b3faa1b902eb6a5c4cd28a1f38023017a0bb2c/django-smalluuid-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "a0c8751e62669bdcbe23f69145ad0298", "sha256": "ed87bf6b3d37e5beb6f5abf23d79cf9eda114a6e45275d7b3702205d3f2f1679" }, "downloads": -1, "filename": "django_smalluuid-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a0c8751e62669bdcbe23f69145ad0298", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10008, "upload_time": "2017-02-26T02:34:47", "url": "https://files.pythonhosted.org/packages/c1/94/b4d6592865a13446022d7175402031a7ae1c74bf343869615e69218663ac/django_smalluuid-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc225b027775c4fb6321789b0f08a010", "sha256": "2b1d8e3329c86aec4466b8b65616a39ec4a5dd62e0b9fb95cc7f895c113e7ad0" }, "downloads": -1, "filename": "django-smalluuid-1.1.0.tar.gz", "has_sig": false, "md5_digest": "fc225b027775c4fb6321789b0f08a010", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7006, "upload_time": "2017-02-26T02:34:45", "url": "https://files.pythonhosted.org/packages/f8/f7/5673eb4e8e81f6116276cac546c1103fe3e3a7d5a0c1b46b371ce6d02a1a/django-smalluuid-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "2a73eb070d7926121cda1ca42f7175a1", "sha256": "68d775aae18fce3551fe8c2e5beae179b0155712c674649ec94c173bc10116a2" }, "downloads": -1, "filename": "django_smalluuid-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2a73eb070d7926121cda1ca42f7175a1", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10101, "upload_time": "2017-02-26T13:20:13", "url": "https://files.pythonhosted.org/packages/b1/30/01cc827542b6a2a5442790e26b7bf2030e116951afbec563a859ef4474c5/django_smalluuid-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37f5894e1c2f7c9f2c1e732d37c7abe1", "sha256": "4657401172b5cea9f473f09d70dc1a8b681273d8734ac00840b866580fb46f91" }, "downloads": -1, "filename": "django-smalluuid-1.1.1.tar.gz", "has_sig": false, "md5_digest": "37f5894e1c2f7c9f2c1e732d37c7abe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7144, "upload_time": "2017-02-26T13:20:11", "url": "https://files.pythonhosted.org/packages/66/c1/7f901f9092cf705106e5515438e35e1927fd7240b8cb2eca93b3a4795f3d/django-smalluuid-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a73eb070d7926121cda1ca42f7175a1", "sha256": "68d775aae18fce3551fe8c2e5beae179b0155712c674649ec94c173bc10116a2" }, "downloads": -1, "filename": "django_smalluuid-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2a73eb070d7926121cda1ca42f7175a1", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10101, "upload_time": "2017-02-26T13:20:13", "url": "https://files.pythonhosted.org/packages/b1/30/01cc827542b6a2a5442790e26b7bf2030e116951afbec563a859ef4474c5/django_smalluuid-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37f5894e1c2f7c9f2c1e732d37c7abe1", "sha256": "4657401172b5cea9f473f09d70dc1a8b681273d8734ac00840b866580fb46f91" }, "downloads": -1, "filename": "django-smalluuid-1.1.1.tar.gz", "has_sig": false, "md5_digest": "37f5894e1c2f7c9f2c1e732d37c7abe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7144, "upload_time": "2017-02-26T13:20:11", "url": "https://files.pythonhosted.org/packages/66/c1/7f901f9092cf705106e5515438e35e1927fd7240b8cb2eca93b3a4795f3d/django-smalluuid-1.1.1.tar.gz" } ] }