skip to navigation
skip to content

django-taggit-machinetags 0.5.0

Machine tagging built upon django-taggit


This package provides machine tagging (i.e. property:value tagging) built on top of django-taggit.


Grab from PyPI with:

$ pip install django-taggit-machinetags

Update your installed apps:


And run the migrations:

$ python migrate

Or if you’re not using south (why are you not using south?):

$ python syncdb


Usage is the same as taggit, but tags can now be specified as, colon-separated, property-value pairs.

from django.db import models
from taggit_machinetags.managers import MachineTaggableManager

class MyModel(models.Model):

    name = models.CharField(...)
    tags = MachineTaggableManager()

>>> instance = MyModel.objects.all()[0]
>>> instance.tags.add('Property:Value')
>>> instance.tags.add('Taggy:McTag')
>>> instance.tags.get(namespace='Property')
<MachineTag: Property:Value>
>> MyModel.objects.filter(tags__slug='taggy:mctag')

Creating a tag with the string ‘Property:Value’ results in a MachineTag with the namespace namespace=Property, name=Value, namespace_slug=property, name_slug=value, and slug=property:value.

File Type Py Version Uploaded on Size
django-taggit-machinetags-0.5.0.tar.gz (md5) Source 2014-11-05 6KB
django_taggit_machinetags-0.5.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2014-11-05 8KB
  • Downloads (All Versions):
  • 19 downloads in the last day
  • 135 downloads in the last week
  • 612 downloads in the last month