{"id":13813976,"url":"https://github.com/radiac/django-tagulous","last_synced_at":"2025-05-15T04:02:55.304Z","repository":{"id":31864633,"uuid":"35432580","full_name":"radiac/django-tagulous","owner":"radiac","description":"Fabulous Tagging for Django","archived":false,"fork":false,"pushed_at":"2024-08-27T23:31:16.000Z","size":1848,"stargazers_count":352,"open_issues_count":22,"forks_count":67,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-14T01:58:40.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://radiac.net/projects/django-tagulous/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radiac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-11T15:30:35.000Z","updated_at":"2025-04-03T08:39:20.000Z","dependencies_parsed_at":"2023-01-14T19:55:40.468Z","dependency_job_id":"49c5a99a-1188-4248-906d-3bfaf812122c","html_url":"https://github.com/radiac/django-tagulous","commit_stats":{"total_commits":484,"total_committers":24,"mean_commits":"20.166666666666668","dds":0.09297520661157022,"last_synced_commit":"1617a6286f3aea3a569a8410ef27ca908b91807f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radiac%2Fdjango-tagulous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radiac%2Fdjango-tagulous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radiac%2Fdjango-tagulous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radiac%2Fdjango-tagulous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radiac","download_url":"https://codeload.github.com/radiac/django-tagulous/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809032,"owners_count":21164895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T04:01:38.796Z","updated_at":"2025-04-14T01:58:54.112Z","avatar_url":"https://github.com/radiac.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Django Tagulous - Fabulous Tags\n\n\n[![PyPI](https://img.shields.io/pypi/v/django-tagulous.svg)](https://pypi.org/project/django-tagulous/)\n[![Documentation](https://readthedocs.org/projects/django-tagulous/badge/?version=latest)](https://django-tagulous.readthedocs.io/en/latest/)\n[![Tests](https://github.com/radiac/django-tagulous/actions/workflows/ci.yml/badge.svg)](https://github.com/radiac/django-tagulous/actions/workflows/ci.yml)\n[![Coverage](https://codecov.io/gh/radiac/django-tagulous/graph/badge.svg?token=zotfCDdrUG)](https://codecov.io/gh/radiac/django-tagulous)\n\nA tagging library for Django. Built on ForeignKey and ManyToManyField to support tag\nstrings as well as native ORM queries.\n\nUse a `SingleTagField` as a CharField with dynamic choices, or a `TagField` for\nconventional tagging or nested categorisation.\n\n* [Project site](https://radiac.net/projects/django-tagulous/)\n* [Source code](https://github.com/radiac/django-tagulous)\n* [Documentation](https://django-tagulous.readthedocs.io/)\n* [Changelog](https://django-tagulous.readthedocs.io/en/latest/changelog.html)\n\n\n## Features\n\n* Easy to install - simple requirements, **simple syntax**, lots of options\n* Based on ForeignKey and ManyToManyField, so it's **easy to query**\n* **Autocomplete** support built in, if you want it\n* Supports multiple **independent fields** on a single model\n* Supports **trees of nested tags**, for detailed categorisation\n* Admin support for managing tags and tagged models\n\nSupports Django 3.2+, on Python 3.10+.\n\n\nSee the [Documentation](https://django-tagulous.readthedocs.io/)\nfor details of how Tagulous works; in particular:\n\n* [Installation](https://django-tagulous.readthedocs.io/en/latest/installation.html) -\n  how to install Tagulous\n* [Example Usage](https://django-tagulous.readthedocs.io/en/latest/usage.html) -\n  see examples of Tagulous in use\n* [Upgrading](https://django-tagulous.readthedocs.io/en/latest/upgrading.html) -\n  how to upgrade Tagulous, and see what has changed in the\n  [changelog](https://django-tagulous.readthedocs.io/en/latest/changelog.html)\n* [Contributing](https://django-tagulous.readthedocs.io/en/latest/contributing.html) -\n  for how to contribute to Tagulous\n\n\nQuickstart\n==========\n\nInstall with `pip install django-tagulous`, add `tagulous` to Django's `INSTALLED_APPS`\nand\n[define the serializers](http://radiac.net/projects/django-tagulous/documentation/installation/),\nthen start adding tag fields to your model:\n\n```python\nfrom django.db import models\nfrom tagulous.models import SingleTagField, TagField\n\nclass Person(models.Model):\n    name = models.CharField(max_length=255)\n    title = SingleTagField(initial=\"Mr, Mrs, Miss, Ms\")\n    skills = TagField()\n```\n\nYou can now set and get them using strings, lists or querysets::\n\n```python\nmyperson = Person.objects.create(name='Bob', title='Mr', skills='run, hop')\n# myperson.skills == 'run, hop'\nmyperson.skills = ['jump', 'kung fu']\nmyperson.save()\n# myperson.skills == 'jump, \"kung fu\"'\nrunners = Person.objects.filter(skills='run')\n```\n\nBehind the scenes each tag field is a `ForeignKey` or `ManyToManyField` relationship to\na separate model (by default), so more complex queries are simple::\n\n```python\nqs = MyRelatedModel.objects.filter(\n    person__skills__name__in=['run', 'jump'],\n)\n```\n\nAs well as this you also get autocompletion in public and admin forms,\nautomatic slug generation, unicode support, you can build tag clouds easily,\nand can nest tags for more complex categorisation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradiac%2Fdjango-tagulous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradiac%2Fdjango-tagulous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradiac%2Fdjango-tagulous/lists"}