{ "info": { "author": "Andy Mikhailenko", "author_email": "neithere@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General" ], "description": "django-autoslug\n~~~~~~~~~~~~~~~\n\n.. image:: https://img.shields.io/coveralls/neithere/django-autoslug.svg\n :target: https://coveralls.io/r/neithere/django-autoslug\n\n.. image:: https://img.shields.io/travis/neithere/django-autoslug.svg\n :target: https://travis-ci.org/neithere/django-autoslug\n\n.. image:: https://img.shields.io/pypi/format/django-autoslug.svg\n :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/status/django-autoslug.svg\n :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/v/django-autoslug.svg\n :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/pyversions/django-autoslug.svg\n :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://img.shields.io/pypi/dd/django-autoslug.svg\n :target: https://pypi.python.org/pypi/django-autoslug\n\n.. image:: https://readthedocs.org/projects/django-autoslug/badge/?version=stable\n :target: http://django-autoslug.readthedocs.org/en/stable/\n\n.. image:: https://readthedocs.org/projects/django-autoslug/badge/?version=latest\n :target: http://django-autoslug.readthedocs.org/en/latest/\n\nDjango-autoslug is a reusable Django library that provides an improved\nslug field which can automatically:\n\na) populate itself from another field,\nb) preserve uniqueness of the value and\nc) use custom `slugify()` functions for better i18n.\n\nThe field is highly configurable.\n\nRequirements\n------------\n\n*Python 2.7, 3.5 or PyPy*.\n\n*Django 1.7.10* or higher.\n\nIt may be possible to successfully use django-autoslug in other environments\nbut they are not tested.\n\n.. note::\n\n PyPy3 is not officially supported only because there were some problems with\n permissions and `__pycache__` on CI unrelated to django-autoslug itself.\n\nExamples\n--------\n\nA simple example:\n\n.. code-block:: python\n\n from django.db.models import CharField, Model\n from autoslug import AutoSlugField\n\n class Article(Model):\n title = CharField(max_length=200)\n slug = AutoSlugField(populate_from='title')\n\nMore complex example:\n\n.. code-block:: python\n\n from django.db.models import CharField, DateField, ForeignKey, Model\n from django.contrib.auth.models import User\n from autoslug import AutoSlugField\n\n class Article(Model):\n title = CharField(max_length=200)\n pub_date = DateField(auto_now_add=True)\n author = ForeignKey(User)\n slug = AutoSlugField(populate_from=lambda instance: instance.title,\n unique_with=['author__name', 'pub_date__month'],\n slugify=lambda value: value.replace(' ','-'))\n\nDocumentation\n-------------\n\nSee the `complete documentation `_\non ReadTheDocs. It is built automatically for the latest version.\n\nCommunity\n---------\n\nThis application was initially created by Andy Mikhailenko and then improved\nby other developers. They are listed in `AUTHORS.rst`.\n\nPlease feel free to file issues and/or submit patches.\n\nSee `CONTRIBUTING.rst` for hints related to the preferred workflow.\n\nLicensing\n---------\n\nDjango-autoslug is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public License as\npublished by the Free Software Foundation; either version 3 of the\nLicense, or (at your option) any later version.\n\nDjango-autoslug is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this program; see the file COPYING.LESSER. If not,\nsee `GNU licenses `_.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/LeetCode-OpenSource/django-autoslug/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LeetCode-OpenSource/django-autoslug/", "keywords": "django field slug auto unique transliteration i18n", "license": "GNU Lesser General Public License (LGPL), Version 3", "maintainer": "", "maintainer_email": "", "name": "lc-django-autoslug", "package_url": "https://pypi.org/project/lc-django-autoslug/", "platform": "", "project_url": "https://pypi.org/project/lc-django-autoslug/", "project_urls": { "Download": "https://github.com/LeetCode-OpenSource/django-autoslug/archive/master.zip", "Homepage": "https://github.com/LeetCode-OpenSource/django-autoslug/" }, "release_url": "https://pypi.org/project/lc-django-autoslug/1.9.4/", "requires_dist": [ "pytils (>=0.2); extra == 'cyrillic'", "translitcodec (>=0.3); extra == 'translitcodec'" ], "requires_python": "", "summary": "An automated slug field for Django.", "version": "1.9.4" }, "last_serial": 4311998, "releases": { "1.9.4": [ { "comment_text": "", "digests": { "md5": "8dba7f8459bc7028ca400c0008b4bf9c", "sha256": "750e4bf6f2daae5cce72aa7f58c0bcd2323d222ec14fed4a531441949300a0ad" }, "downloads": -1, "filename": "lc_django_autoslug-1.9.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8dba7f8459bc7028ca400c0008b4bf9c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11671, "upload_time": "2018-09-26T11:28:43", "url": "https://files.pythonhosted.org/packages/d4/f0/f4b6473a7e13990378af0a984dcdd7e8218476e6dbc5291aaab8d6287aa0/lc_django_autoslug-1.9.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fd79335ff05016db6a3acaafcb4c157", "sha256": "c03dc813e35e83fce287489f7f10313f2215fc972bf3d10d788afe281cb83e81" }, "downloads": -1, "filename": "lc-django-autoslug-1.9.4.tar.gz", "has_sig": false, "md5_digest": "5fd79335ff05016db6a3acaafcb4c157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20148, "upload_time": "2018-09-26T11:28:45", "url": "https://files.pythonhosted.org/packages/03/f2/8939ada7555d682e98fa6295c70629245c46502b844784d86fe8e67f8773/lc-django-autoslug-1.9.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8dba7f8459bc7028ca400c0008b4bf9c", "sha256": "750e4bf6f2daae5cce72aa7f58c0bcd2323d222ec14fed4a531441949300a0ad" }, "downloads": -1, "filename": "lc_django_autoslug-1.9.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8dba7f8459bc7028ca400c0008b4bf9c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11671, "upload_time": "2018-09-26T11:28:43", "url": "https://files.pythonhosted.org/packages/d4/f0/f4b6473a7e13990378af0a984dcdd7e8218476e6dbc5291aaab8d6287aa0/lc_django_autoslug-1.9.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fd79335ff05016db6a3acaafcb4c157", "sha256": "c03dc813e35e83fce287489f7f10313f2215fc972bf3d10d788afe281cb83e81" }, "downloads": -1, "filename": "lc-django-autoslug-1.9.4.tar.gz", "has_sig": false, "md5_digest": "5fd79335ff05016db6a3acaafcb4c157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20148, "upload_time": "2018-09-26T11:28:45", "url": "https://files.pythonhosted.org/packages/03/f2/8939ada7555d682e98fa6295c70629245c46502b844784d86fe8e67f8773/lc-django-autoslug-1.9.4.tar.gz" } ] }