Description
This application provides a simple url-path based api for django-taggit to add or remove tags.
The api is best described by the url-patterns itself:
Remove a tag from all objects of a model using the tag-id or -slug:
'remove-tag/<int:tag_id>/from/<slug:app_label>/<slug:model_name>/' 'remove-tag/<slug:tag_slug>/from/<slug:app_label>/<slug:model_name>/'
Remove a tag from a single object using the tag-id or -slug:
'remove-tag/<int:tag_id>/from/<slug:app_label>/<slug:model_name>/<int:obj_id>/' 'remove-tag/<slug:tag_slug>/from/<slug:app_label>/<slug:model_name>/<int:obj_id>/'
Add a tag to an object using the tag-id or -slug:
'add-tag/<int:tag_id>/to/<slug:app_label>/<slug:model_name>/<int:obj_id>/' 'add-tag/<slug:tag_slug>/to/<slug:app_label>/<slug:model_name>/<int:obj_id>/'
Installation
Install from pypi.org:
pip install django-taggit-api
Setup
Add taggit_api to your installed apps:
INSTALLED_APPS = [
'taggit_api',
...
]
Extend your url_patterns in urls.py:
urlpatterns = [
...
path('api/', include('taggit_api.urls')),
]
Metadata
Release files for django-taggit-api 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_taggit_api-1.1.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_taggit_api-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / django_taggit_api-1.1.tar.gz
| Download URL | django_taggit_api-1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f66e2eeba0f37a60c1e7d001ca2e2fe5a64222375ebdff44bf68eade67f97cf
|
|
BLAKE2b-256 checksum How to use checksums |
8a736c54f4b5a9f5b8c0c1a5a4a4a7ac836f1b62564fce35b3a66f344acff25d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / django_taggit_api-1.1-py3-none-any.whl
| Download URL | django_taggit_api-1.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d000f7de0d99549c1a7cd312a746ea408fbf62c8e7db0e556e45fea170912dd
|
|
BLAKE2b-256 checksum How to use checksums |
e59d4386b545fcb869e49e183c6f573343185e007e570c88aa820f10bf35c493
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|