django-tag-fields


Namedjango-tag-fields JSON
Version 4.1.0 PyPI version JSON
download
home_page
SummaryAdd field tags to a Django project
upload_time2023-05-09 01:29:08
maintainer
docs_urlNone
author
requires_python>=3.6
license
keywords django django django tagging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            django-tag-fields
=================

.. image:: https://www.repostatus.org/badges/latest/active.svg
   :alt: Project Status: Active - The project has reached a stable, usable state and is being actively developed.
   :target: https://www.repostatus.org/#active

.. image:: https://img.shields.io/pypi/pyversions/django-tag_fields.svg
   :target: https://pypi.org/project/django-taggit/
   :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/frameworkversions/django/django-tag-fields?logo=django
   :target: https://pypi.org/project/django-taggit/
   :alt: Supported Django versions

.. image:: https://github.com/imAsparky/django-tag-fields/workflows/Test/badge.svg
   :target: https://github.com/imAsparky/django-tag-fields/actions
   :alt: GitHub Actions

.. image:: https://codecov.io/gh/imAsparky/django-tag-fields/branch/main/graph/badge.svg?token=6TPEAAOUUF
   :target: https://codecov.io/gh/imAsparky/django-tag-fields

.. image:: https://readthedocs.org/projects/django-tag-fields/badge/?version=latest
   :target: https://django-tag-fields.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

This is a clone of `Jazzband django-taggit <https://github.com/jazzband/django-taggit>`_ project.

By contributing you agree to abide by the `Contributor Code of Conduct
<https://github.com/imAsparky/django-tag-fields/blob/main/CODE_OF_CONDUCT.md>`_.


.. note::

   This project was cloned from ``django-taggit v3.1.0`` and will continue to work in the same
   way as that version.

   Over time I endeavor to extend django-taggit with individual field tagging.


``django-tag-fields`` a simpler approach to tagging with Django.  Add ``"tag_fields"`` to your
``INSTALLED_APPS`` then just add a TaggableManager to your model and go:

.. code:: python

    from django.db import models

    from tag_fields.managers import TaggableManager


    class Food(models.Model):
        # ... fields here

        tags = TaggableManager()


Then you can use the API like so:

.. code:: pycon

    >>> apple = Food.objects.create(name="apple")
    >>> apple.tags.add("red", "green", "delicious")
    >>> apple.tags.all()
    [<Tag: red>, <Tag: green>, <Tag: delicious>]
    >>> apple.tags.remove("green")
    >>> apple.tags.all()
    [<Tag: red>, <Tag: delicious>]
    >>> Food.objects.filter(tags__name__in=["red"])
    [<Food: apple>, <Food: cherry>]

Tags will show up for you automatically in forms and the admin.

``django-tag-fields`` requires Django 3.2 or greater.

For more info check out the `documentation
<https://django-tag-fields.readthedocs.io/>`_.

For questions about usage or development you can create an issue on Github (if your question is about
usage please add the ``question`` label).


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-tag-fields",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Mark Sevelj <mark.sevelj@dunwright.com.au>",
    "keywords": "Django,django,django tagging",
    "author": "",
    "author_email": "Alex Gaynor <alex.gaynor@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f9/c5/59a97f21274f02911a7811fc7ee29caa99562c9f4f723a7d28265b3e4e8f/django-tag-fields-4.1.0.tar.gz",
    "platform": null,
    "description": "django-tag-fields\n=================\n\n.. image:: https://www.repostatus.org/badges/latest/active.svg\n   :alt: Project Status: Active - The project has reached a stable, usable state and is being actively developed.\n   :target: https://www.repostatus.org/#active\n\n.. image:: https://img.shields.io/pypi/pyversions/django-tag_fields.svg\n   :target: https://pypi.org/project/django-taggit/\n   :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/frameworkversions/django/django-tag-fields?logo=django\n   :target: https://pypi.org/project/django-taggit/\n   :alt: Supported Django versions\n\n.. image:: https://github.com/imAsparky/django-tag-fields/workflows/Test/badge.svg\n   :target: https://github.com/imAsparky/django-tag-fields/actions\n   :alt: GitHub Actions\n\n.. image:: https://codecov.io/gh/imAsparky/django-tag-fields/branch/main/graph/badge.svg?token=6TPEAAOUUF\n   :target: https://codecov.io/gh/imAsparky/django-tag-fields\n\n.. image:: https://readthedocs.org/projects/django-tag-fields/badge/?version=latest\n   :target: https://django-tag-fields.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\nThis is a clone of `Jazzband django-taggit <https://github.com/jazzband/django-taggit>`_ project.\n\nBy contributing you agree to abide by the `Contributor Code of Conduct\n<https://github.com/imAsparky/django-tag-fields/blob/main/CODE_OF_CONDUCT.md>`_.\n\n\n.. note::\n\n   This project was cloned from ``django-taggit v3.1.0`` and will continue to work in the same\n   way as that version.\n\n   Over time I endeavor to extend django-taggit with individual field tagging.\n\n\n``django-tag-fields`` a simpler approach to tagging with Django.  Add ``\"tag_fields\"`` to your\n``INSTALLED_APPS`` then just add a TaggableManager to your model and go:\n\n.. code:: python\n\n    from django.db import models\n\n    from tag_fields.managers import TaggableManager\n\n\n    class Food(models.Model):\n        # ... fields here\n\n        tags = TaggableManager()\n\n\nThen you can use the API like so:\n\n.. code:: pycon\n\n    >>> apple = Food.objects.create(name=\"apple\")\n    >>> apple.tags.add(\"red\", \"green\", \"delicious\")\n    >>> apple.tags.all()\n    [<Tag: red>, <Tag: green>, <Tag: delicious>]\n    >>> apple.tags.remove(\"green\")\n    >>> apple.tags.all()\n    [<Tag: red>, <Tag: delicious>]\n    >>> Food.objects.filter(tags__name__in=[\"red\"])\n    [<Food: apple>, <Food: cherry>]\n\nTags will show up for you automatically in forms and the admin.\n\n``django-tag-fields`` requires Django 3.2 or greater.\n\nFor more info check out the `documentation\n<https://django-tag-fields.readthedocs.io/>`_.\n\nFor questions about usage or development you can create an issue on Github (if your question is about\nusage please add the ``question`` label).\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Add field tags to a Django project",
    "version": "4.1.0",
    "project_urls": {
        "Documentation": "https://django-tag-fields.readthedocs.io",
        "Repository": "https://github.com/imAsparky/django-tag-fields",
        "Tracker": "https://github.com/imAsparky/django-tag-fields/issues"
    },
    "split_keywords": [
        "django",
        "django",
        "django tagging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f931fd0c7c785a71acd16c55597c986b66155e9f34386f7251783d645dc36d88",
                "md5": "5cb3a1047ab7ed3b4eebda9bb9d1978d",
                "sha256": "7f7307739cc71997008567275c993d20eef8d04a1f63b8e07efeb60c0c100bf3"
            },
            "downloads": -1,
            "filename": "django_tag_fields-4.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5cb3a1047ab7ed3b4eebda9bb9d1978d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 59911,
            "upload_time": "2023-05-09T01:29:05",
            "upload_time_iso_8601": "2023-05-09T01:29:05.896383Z",
            "url": "https://files.pythonhosted.org/packages/f9/31/fd0c7c785a71acd16c55597c986b66155e9f34386f7251783d645dc36d88/django_tag_fields-4.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9c559a97f21274f02911a7811fc7ee29caa99562c9f4f723a7d28265b3e4e8f",
                "md5": "d4a1e905c904cc7ee75825242ba7c1cd",
                "sha256": "dd7215be50d42ce1ce71e1cb260efdf341f077330c7b5e17d94f53ec61720118"
            },
            "downloads": -1,
            "filename": "django-tag-fields-4.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d4a1e905c904cc7ee75825242ba7c1cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 73562,
            "upload_time": "2023-05-09T01:29:08",
            "upload_time_iso_8601": "2023-05-09T01:29:08.353712Z",
            "url": "https://files.pythonhosted.org/packages/f9/c5/59a97f21274f02911a7811fc7ee29caa99562c9f4f723a7d28265b3e4e8f/django-tag-fields-4.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-09 01:29:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "imAsparky",
    "github_project": "django-tag-fields",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-tag-fields"
}
        
Elapsed time: 0.20106s