Saravanan666/pypi-org huggingface dataset:
Package: django-taggit-helpers
django-taggit-helpersmakes it easier to work with admin pages of models associated withdjango-taggittags.Source code is available on GitHub atmfcovington/django-taggit-helpers. Information aboutdjango-taggitis available onGitHubandRead the Docs.django-taggit-helpersis compatible with Python 2.7+/3.2+ and Django 1.7+.InstallationConfigurationHelper ClassesTaggitCounterTaggitListFilterTaggitStackedInlineTaggitTabularInlineUpgrading existing projects to Django 1.9+IssuesRevision historyInstallationPyPIpipinstalldjango-taggit-helpersGitHub (development branch)pipinstallgit+http://github.com/mfcovington/django-taggit-helpers.git@developConfigurationAddtaggit_helperstoINSTALLED_APPSinsettings.py:INSTALLED_APPS=(...'taggit','taggit_helpers',)Helper ClassesTaggitCounterDisplay (and sort by) number of Taggit tags associated with tagged items.fromtaggit_helpersimportTaggitCounter# For Django 1.9+, use this instead:# from taggit_helpers.admin import TaggitCounterclassMyModelAdmin(TaggitCounter,admin.ModelAdmin):# TaggitCounter before ModelAdminlist_display=(...'taggit_counter',)Note:Currently, theTaggableManager()field must be namedtags.Note:To avoid overcounting, setdistinct=Trueif further annotating the queryset withCount():queryset.annotate(m2m_field_count=Count('m2m_field',distinct=True))TaggitListFilterFilter records by Taggit tags for the current model only.
Tags are sorted alphabetically by name.fromtaggit_helpersimportTaggitListFilter# For Django 1.9+, use this instead:# from taggit_helpers.admin import TaggitListFilterclassMyModelAdmin(admin.ModelAdmin):list_filter=[TaggitListFilter]TaggitStackedInlineAdd stacked inline for Taggit tags to admin.
Tags are sorted alphabetically by name.fromtaggit_helpersimportTaggitStackedInline# For Django 1.9+, use this instead:# from taggit_helpers.admin import TaggitStackedInlineclassMyModelAdmin(admin.ModelAdmin):inlines=[TaggitStackedInline]TaggitTabularInlineAdd tabular inline for Taggit tags to admin.
Tags are sorted alphabetically by name.fromtaggit_helpersimportTaggitTabularInline# For Django 1.9+, use this instead:# from taggit_helpers.admin import TaggitTabularInlineclassMyModelAdmin(admin.ModelAdmin):inlines=[TaggitTabularInline]Upgrading existing projects to Django 1.9+App loading was refactored in Django 1.9. To make a Django 1.7/1.8 app Django 1.9-compatible with respect todjango-taggit-helpers, run the following shell command in your app’s directory.find.-name'*.py'|xargsperl-i-pe's/from taggit_helpers import/from taggit_helpers.admin import/'Thanks tojpicfor theinspirationfor this snippet!IssuesIf you experience any problems or would like to request a feature, pleasecreate an issueon GitHub.Version 0.1.4Revision history0.1.4 2015-12-04Add Django 1.9 compatibility0.1.3 2015-11-30Require Python 2.7+/3.2+Add slides from Django SF Meetup lightning talk0.1.2 2015-06-14Add Django 1.8 compatibility0.1.1 2015-06-11Renametaggit_counttotaggit_counter0.1.0 2015-06-10Django admin helper classes for django-taggit tagsTaggitCounterTaggitListFilterTaggitStackedInlineTaggitTabularInline
Package: django-taggit-labels
Label widget(s) fordjango-taggit.Now instead of this:You can use this:OverviewThis is a widget for use in the Django admin interface, and it depends on
Django’s namespaced jQuery. It allows you to add and remove tags by selecting
or deselecting visual labels.The label widget does not expose the input field so that you can add new tags. The
base label widget instead shows all available tags and lets you pick between
them in Django’s admin interface. It presumes that you are using a managed (or
‘curated’ if you’re feeling insufferable) tag list.QuickstartInstall django-taggit-labels:pipinstalldjango-taggit-labelsAddtaggit_labelsto your project:INSTALLED_APPS=('taggit','taggit_labels',)Use the label widget:fromtaggit.formsimportTagFieldfromtaggit_labels.widgetsimportLabelWidgetclassContentForm(forms.ModelForm):tags=TagField(required=False,widget=LabelWidget)Just use this form class for yourModelAdminclass now:classContentAdmin(admin.ModelAdmin):form=ContentAdminFormYou can use the widget withyour own tag model, too:fromtaggit.formsimportTagFieldfromtaggit_labels.widgetsimportLabelWidgetclassContentForm(forms.Form):tags=TagField(required=False,widget=LabelWidget(model=MyTag))Thetagmodel from taggit will be presumed if you do not specify a tag model.History0.7.0 (2020-03-20)Updated Django compat and bug fixes0.6.0 (2018-10-29)Django 2, 2.1 compatibility0.5.1 (2017-07-23)Fixes CSS class rendering0.5.0 (2017-02-01)Improved label stylingJavascript updates for usage outside the admin0.4.1 (2016-01-13)Adds fix for widget overloading0.4.0 (2016-01-13)Django 1.9 compatability0.3.1 (2015-08-06)Django 1.7+ compatability bug fix0.3.0 (2015-05-20)Better Unicode handling0.2.0 (2015-03-31)Adds support for multiple tag fields (thanks to Lee Solway)0.1.6 (2014-08-04)Updates styling of tag labels for line breaking and hover state0.1.5 (2014-06-20)Fixes rendering for submitted, invalid forms0.1.4 (2014-06-09)Adds cursor styling for labels0.1.3 (2014-06-08)Adds style update missed in last release0.1.2 (2014-06-08)Breaks up some widget functionality, adds minor tests0.1.1 (2014-06-07)Fixes a bug in custom model initialization0.1.0 (2014-06-07)First release on PyPI.
Package: django-taggit-machinetags
OverviewThis package provides machine tagging (i.e. property:value tagging) built on
top ofdjango-taggit.InstallationGrab from PyPI with:$ pip install django-taggit-machinetagsUpdate your installed apps:INSTALLED_APPS = (
    ...
    'taggit',
    'taggit_machinetags',
    ...
)And run the migrations:$ python manage.py migrateUsageUsage is the same as taggit, but tags can now be specified as, colon-separated,
property-value pairs.# models.py
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')
<MyModel:...>Creating a tag with the string ‘Property:Value’ results in a MachineTag with
the namespacenamespace=Property,name=Value,namespace_slug=property,name_slug=value, andslug=property:value.
Package: django-taggit-templatetags
This is a reusable django app which adds some templatetags todjango-taggit.InstallationJust installdjango-taggit-templatetagsviapip:$ pip install django-taggit-templatetagsAfter installing and configuringdjango-taggit, just addtaggit_templatetagsto yourINSTALLED_APPSin yoursettings.py:INSTALLED_APPS = (
...
'taggit_templatetags',
...
)UsageNow there are some templatetags enabled, at the moment only to create lists of tags and tag-clouds.In your templates, you need to loadtaggit_extras:...
{% load taggit_extras %}
...TaglistsAfter loadingtaggit_extrasyou can create a list of tags for the whole project (in the sense of djangoproject), for an app (in the sense of djangoapp), for a model-class (to get a list for an instance of a model, just use its tag-field).For the tags of a project, just do:{% get_taglist as tags %}For the tags of an app, just do:{% get_taglist as tags for 'yourapp' %}For the tags of an model, just do:{% get_taglist as tags for 'yourapp.yourmodel' %}No matter what you do, you have a list of tags in thetagstemplate variable. You can now iterate over it:<ul>
{% for tag in tags %}
<li>{{tag}} ({{tag.num_times}})</li>
{% endfor %}
<ul>As you can see, each tag has an attributenum_timeswhich declares how many times it was used. The list of tags is sorted descending bynum_times.Inclusion-TagFor convenience, there’s an inclusion-tag. It’s used analogue. For example, for a taglist of a model, just do:{% include_taglist 'yourapp.yourmodel' %}TagcloudsA very popular way to navigate through tags is atagcloud.  This app provides some tags for that:{% get_tagcloud as tags %}or:{% get_tagcloud as tags for 'yourapp' %}or:{% get_tagcloud as tags for 'yourapp.yourmodel' %}respectivly. The resulting list of tags is ordered by theirnameattribute. Besides thenum_itemsattribute, there’s aweightattribute. Its maximum and minimum may be specified as thesettingssection reads.Inclusion-TagEven for the tagcloud there’s an inclusion-tag. For example, for a tagcloud of a model, just do:{% include_tagcloud 'yourapp.yourmodel' %}SettingsThere are a few settings to be set:TAGGIT_TAGCLOUD_MIN (default: 1.0)This specifies the minimum of the weight attribute of a tagcloud’s tags.TAGGIT_TAGCLOUD_MAX (default: 6.0)This specifies the maximum of the weight attribute of a tagcloud’s tags.If you want to use the weight as font-sizes, just do as follows:<font size={{tag.weight|floatformat:0}}>{{tag}}</font>So the weights are converted to integer values.ThanksThanks to the python- and django-community, in particular toAlex Gaynor, the inventor ofdjango-taggitand a wonderful guy to argue with.
Package: django-taggit-tronc
django-taggita simpler approach to tagging with Django.  Add"taggit"to yourINSTALLED_APPSthen just add a TaggableManager to your model and go:fromdjango.dbimportmodelsfromtaggit.managersimportTaggableManagerclassFood(models.Model):# ... fields heretags=TaggableManager()Then you can use the API like so:>>>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-taggitrequires Django 1.7 or greater.For more info check out thedocumentation.  And for questions about usage or
development you can contact themailinglist.
Package: django-tagify
A django tag input field usingTagifybuilt for Django 2.0.
The tags are stored as a comma-delimited (unless if changed)String.UsageModels: UseTagsFieldto represent a tags field.Forms: Make sure you displayform.mediain the html template, for the widget to render correctly.Widget settings: Pass the settings dictionary as followsTagsField(widget_settings={...}.You can specify if ‘duplicates’ are allowed (boolean).You can specify ‘autocomplete’ (boolean) - this matches from the whitelist.You can specify ‘enforceWhitelist’ (boolean).You can specify ‘maxTags’ (int).You can specify the ‘whitelist’ (list containing strings).You can specify the ‘blacklist’ (list containing strings).You can specify the ‘delimiter’ (string).You can specify the RegEx ‘pattern’ to validate the input (string).If you want to allow blank inputs for tags make sure you setblank=TrueonTagsField.
If blank inputs are allowed, they will not be filtered by the whitelist.Note: If you useTagsFieldin a Form, thenForm.is_valid()will automatically verify that its values
conform to those specify in its settings, to prevent malicious behaviour from end users.InstallationInstall the modulepip install django-tagifyAdddjango_tagifyto yourINSTALLED_APPSsetting in the Djangosettings.py.Example:INSTALLED_APPS=(# ...other installed apps'django_tagify',)
Package: django-tagify2
django-tagify2django tag input fieldalt tagCreditsjs,css code usestagifyRequirementspython3+django 2.0+ (maybe 1.x)DocumentationInstallationUsageQuick StartUsing With Model AdminField ArgumentsExampleInstallationdownloadpipinstalldjango-tagify2orpipinstall--index-urlhttps://pypi.org/simple/django-tagify2Add ‘tagify’ application to the INSTALLED_APPSINSTALLED_APPS=[...'tagify',]Make sureAPP_DIRSis True in TEMPLATESTEMPLATES=[...'APP_DIRS':True,...]UsageQuick StartThe form classBuilding a form in Django like this:fromdjangoimportformsfromtagify.fieldsimportTagFieldclassTagForm(forms.Form):languages=TagField(label='languages',place_holder='add a language',delimiters=' ',data_list=['Python','Java','PHP','Golang','JavaScript'],initial='Python Golang')# ordefrandom_number():return[random.randint(10,19),random.randint(10,19),random.randint(10,19),random.randint(10,19),]classNumberForm(forms.Form):number=TagField(label='number',place_holder='add a number',delimiters=' ',data_list=random_number)# orclassTagForm(forms.Form):languages=TagField(label='languages',place_holder='add a language',delimiters=' ',)def__init__(self,*args,**kwargs):super().__init__(*args,**kwargs)self.fields['languages'].set_tag_args('data_list',get_languages())The viewTo handle the form we need to instantiate it in the view for the URL
where we want it to be published:fromdjango.httpimportHttpResponsefromdjango.shortcutsimportrenderfromexample.formsimportTagFormdefindex(request):ifrequest.method=='POST':form=TagForm(request.POST)ifform.is_valid():returnHttpResponse(str(form.cleaned_data['languages']))else:form=TagForm()returnrender(request,'index.html',{'form':form})The templateThe simplest example is:<head>{{ form.media }}</head><body><formaction=""method="post">{% csrf_token %}
      {{ form }}<br><inputtype="submit"value="OK"></form></body>Using With Model```python from django.db import modelsfrom tagify.models import TagFieldclass People(models.Model): name = models.Cha
Package: django-tagify-widget
Django Tagify WidgetThis is a Django widget that integrates withtagify.jsto provide tagging functionality in Django forms.FeaturesIntegrates seamlessly with Django forms.Usestagify.jsfor a sleek, modern UI.InstallationYou can installdjango-tagify-widgetusing pip:pipinstalldjango-tagify-widgetRequirementsDjango 2.0.0 or higherPython 3 or higherUsageTo use thedjango-tagify-widgetin your Django project, simply import it in your forms and use it as you would any standard Django form widget.ExampleHere's a simple example of how to use it in a Django form:pythonfromdjangoimportformsfromdjango.dbimportmodelsfromtagify_widget.widgetsimportTagSelect,TagSelectMultiple# ex_app/models.py of this repogitoryclassBook(models.Model):MALE='M'FEMALE='F'GENDER_CHOICES=[(MALE,'Male'),(FEMALE,'Female'),]name=models.CharField(max_length=50);gender=models.CharField(max_length=1,choices=GENDER_CHOICES);category=models.ForeignKey(Type,on_delete=models.CASCADE)makers=models.ManyToManyField(Maker)def__str__(self)->str:returnself.name# ex_app/admin.py of this repogitoryclassMyModelForm(forms.ModelForm):classMeta:model=Bookfields='__all__'widgets={'gender':TagSelect(),'category':TagSelect(),'makers':TagSelectMultiple(),}ContributingContributions todjango-tagify-widgetare welcome! Please refer to theGitHub repositoryfor more details.AuthorzzqyuEmail:wjdrb0626@naver.comLicenseThis project is licensed under the MIT License
Package: django-tags
django-tagsa simpler approach to tagging with Django.  Add"tags"to yourINSTALLED_APPSthen just add a TaggableManager to your model and go:from django.db import models

from tags.field import TagField

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

    tags = TagField('Tags')Tags will show up for you automatically in forms and the admin.django-tagsrequires Django 1.3 or greater.
Package: django-tags-input
OverviewDjango Tags Input is a module that gives you a modified version of the Xoxco jQuery Tags Input library within Django.The result is a very pretty interface with tags and autocomplete which can optionally automatically create new items when they are missing.One of the most useful features of Django Tags Input is that it stores the elements in the order which you input.So if you insertB, A, Cinto the database, it will return it sorted the way you entered it:B, A, C.LinksThe source:https://github.com/WoLpH/django-tags-inputProject page:https://pypi.python.org/pypi/django-tags-inputReporting bugs:https://github.com/WoLpH/django-tags-input/issuesDocumentation:http://django-tags-input.readthedocs.org/en/latest/My blog:http://w.wol.ph/How to installInstalling this module only takes a couple of minutes.Currently Django 2.2, 3.1 and 3.2 are supported and tested in combination with Python 3.7, 3.8, 3.9 and 3.10.For Django below 2.2 and Python 2.7 up to version 4.6.0 should work.For Django 1.4, Django 1.5, Django 1.6 and Django 1.7 in combination with
Python 2.6 and 2.7. Python 3.2, 3.3 and 3.4. Pypy and Pypy3 version 2.1.0 can
be used.Install the module itselfpip install django-tags-input# oreasy_install django-tags-inputAddtags_inputto yourINSTALLED_APPSsetting in the Djangosettings.py.Example:INSTALLED_APPS=(# ... your other installed apps'tags_input',)Add the mappings to yoursettings.pyfile:Example:TAGS_INPUT_MAPPINGS={'some_app.SomeKeyword':{'field':'some_field',},'some_app.SomeOtherKeyword':{'fields':('some_field','some_other_field'),},'some_app.SomeSortedKeyword':{'field':'some_field','ordering':['some_field','some_other_field',],'filters':{'some_field__istartswith':'a',},'excludes':{'some_field__iexact':'foobar',},},'some_app.SomeCreateableKeyword':{'field':'some_field','create_missing':True,},}Add thetags_inputurls to yoururls.py:Example:fromdjango.confimporturlsurlpatterns=patterns('',url(r'^tags_input/',include('tags_input.urls',namespace='tags_input')),# ... other urls ...)Admin usagefromdjango.contribimportadminimportmodelsfromtags_inputimportadminastags_input_adminclassYourAdmin(tags_input_admin.TagsInputAdmin):#Optionally specify which ManyToMany fields are to be used for tagging#Or define a get_tag_fields() methodtag_fields=["some_field"]admin.site.register(models.YourModel,YourAdmin)QuickstartTo test the project simply clone the repository, install and run the example:# mkvirtualenv is part of virtualenvwrapper, using a regular virtualenv, pyvenv or pipenv is also possible
# Or even without any type of virtualenv at allmkvirtualenvdjango-tags-inputgitclonehttps://github.com/WoLpH/django-tags-input.git# Tested with Django 3.0pipinstalldjangopipinstall-e'django-tags-input[tests]'cddjango-tags-input/examplepythonmanage.pyrunserverNow you can go tohttp://localhost:8000/admin/and login with username and
passwordadminandadminrespectively.After this you can try adding some extraFooobjects through theSpamadmin
here:http://localhost:8000/admin/autocompletionexample/spam/2/Note that some parts of the example are deliberately broken to test the
behaviour in broken environments.
Package: django-tag-tools
=========Tag tools=========This currently provides a tag cloud generator for django-taggit.Optional settings-----------------TAGTOOLS_CLOUD_STEPSHow many different sizes of tags for the cloud. **Default:** 6TAGTOOLS_CLOUD_MIN_COUNTMinimum frequency of a tag before it is included. **Default:** 1Usage-----There's a view ``tagged_object_list`` if you want to devote an entirepage to a tag-cloud. In your url-conf:tags_dict= {'queryset_or_model': YourTaggedModel,'template_name': 'sometemplate.html',}urlpatterns = patterns('tagtools.views',(r'^tag/(?P<tag>[-\w\d]+)/$', 'tagged_object_list', tags_dict),)You can generate lists of tags in a view with the function``tagtools.get_tagcloud_for_model``.You can set tags for a model with ``tagtools.set_tags_for_model``.:Version: 0.2.0
Package: django-tagulous
A tagging library for Django built on ForeignKey and ManyToManyField, giving
you all their normal power with a sprinkling of tagging syntactic sugar.Project site:http://radiac.net/projects/django-tagulous/Source code:https://github.com/radiac/django-tagulousChangelog:http://radiac.net/projects/django-tagulous/documentation/changelog/FeaturesEasy to install - simple requirements,simple syntax, lots of optionsBased on ForeignKey and ManyToManyField, so it’seasy to queryAutocompletesupport built in, if you want itSupports multiple independent tag fields on a single modelCan be used as a user-customisable CharField with choicesSupportstrees of nested tags, for detailed categorisationAdmin support for managing tags and tagged modelsSupports Django 2.2 to 3.2, on Python 3.6 to 3.9.See theDocumentationfor details of how Tagulous works; in particular:Installation- how to install TagulousExample Usage- see examples of Tagulous in useUpgrading-
how to upgrade Tagulous, and see what has changed in thechangelog.Contributing- for how to contribute to Tagulous, and the plannedroadmap.QuickstartInstall withpip installdjango-tagulous, addtagulousto Django’sINSTALLED_APPSanddefine the serializers, then start adding tag fields to your
model:from django.db import models
from tagulous.models import SingleTagField, TagField

class Person(models.Model):
    name = models.CharField(max_length=255)
    title = SingleTagField(initial="Mr, Mrs, Miss, Ms")
    skills = TagField()You can now set and get them using strings, lists or querysets:myperson = Person.objects.create(name='Bob', title='Mr', skills='run, hop')
# myperson.skills == 'run, hop'
myperson.skills = ['jump', 'kung fu']
myperson.save()
# myperson.skills == 'jump, "kung fu"'
runners = Person.objects.filter(skills='run')Behind the scenes your tags are stored in separate models (by default), so
because the fields are based onForeignKeyandManyToManyFieldmore
complex queries are simple:qs = MyRelatedModel.objects.filter(
    person__skills__name__in=['run', 'jump'],
)As well as this you also get autocompletion in public and admin forms,
automatic slug generation, unicode support, you can build tag clouds easily,
and can nest tags for more complex categorisation.
Package: django-tailordev-cms
A simple CMS for your django projects.DependenciesFor now, Django>=1.5 is required for this project to run on production,
with python>=2.6. Currently, this application is not compatible with
python 3.3. We are working on it.This CMS is a simple application that generously takes advantage of the
following django packages:django-grappelli: sexy admin rendering with TinyMCE rich text editor
(this should not be a dependency for further releases)django-reversion: track article edition historydjango-modeltranslation: articles internationalizationdjango-mptt: article categories hierarchyInstallationTo install TailorDev CMS, use pip:$ pip install django-tailordev-cmsIf you intend to test or improve this application, first clone this
repository and install the local dependencies:$ pip install -r requirements/local.txtAddtd_cmsand its dependencies to yourINSTALLED_APPS:INSTALLED_APPS = (
...
    # CMS
    'grappelli',
    'reversion',
    'modeltranslation',
    'mptt',
    'td_cms',
...
)Addtd_cmsurls to your project url patterns:urlpatterns = patterns('',
    ...
    url(r'', include('td_cms.urls')),  # should be last
)

Note due to default url patterns ``/category-slug/page-slug/``, we
strongly recommand to include td\_cms url patterns after all other
patterns.And then update your database:$ python manage.py syncdb
$ python manage.py migrateCreate the filemanager upload directory (replace the {{ MEDIA_ROOT }}
by your setting value):$ mkdir -p {{ MEDIA_ROOT }}/uploads/images/pagesTemplatesCreate a base template to inherit from. It should be visible as_layouts/base.htmlNB: to load td_cms styles, ensure your base template has acssblock.Running the TestsYou can run the tests with via:$ python setup.py testor:$ python runtests.py
Package: django-tailwind
Tailwind CSS integration for Django a.k.a. Django + Tailwind = 💚GoalThis project aims to provide a comfortable way of using theTailwind CSSframework within a Django project.FeaturesAn opinionatedTailwind CSSsetup that makes your life easier;Hot reloading of CSS, configuration files, andDjangotemplates. No more manual page refreshes!Out of the box support for CSS imports, SASS-like variables, and nesting;Includes officialTailwind CSSplugins liketypography,form,line-clamp, andaspect-ratio;Supports the latestTailwind CSSv3.x;For instructions on upgrading fromv2tov3, see this post on my blog.RequirementsPython 3.10 or newer with Django >= 3.2 or newer.DocumentationThe full documentation is athttps://django-tailwind.readthedocs.io/InstallationVia PIP:pipinstalldjango-tailwind[RECOMMENDED IN DEV] If you want to use automatic page reloads during development use the[reload]extras, which installs thedjango-browser-reloadpackage in addition:pipinstall'django-tailwind[reload]'Check docs for theInstallationinstructions.Bugs and suggestionsPlease seeCONTRIBUTING.2019 - 2023 (c)Tim Kamanin - A Full Stack Django Developer