Skip to main content

Django-rest-framework API for django-categories

Project description

Django Categories

codecov Run Tox tests Run Tox tests

This application provides basic django-rest-framework API for Django Categories.

Features of the project

The output contains category tree with counts of category items in each node (cummulative as well as direct counts).

Countable fields

The API can contain number of related objects associatet with category. This can be achieved by setting COUNTABLE_FIELD_RELATED_NAMES property in CATEGORIES_SETTINGS:

  CATEGORIES_SETTINGS = {
      "COUNTABLE_FIELD_RELATED_NAMES": ('field_name'),
  }

Settings

The cache timeout and staggering can be changed by:

  CATEGORIES_SETTINGS = {
      "CACHE_TIMEOUT": 60 * 60,
      "CACHE_STAGGERING": 60 * 10,
  }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-categories-api-0.2.2.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

django_categories_api-0.2.2-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-categories-api-0.2.2.tar.gz.

File metadata

  • Download URL: django-categories-api-0.2.2.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for django-categories-api-0.2.2.tar.gz
Algorithm Hash digest
SHA256 01407c0536a75466ae26a22837cb748908addec645d95dd1e5a3d518c7140c90
MD5 6cee96faa49b9719841054f50a699a3a
BLAKE2b-256 fc80333a4b34b907d89652790f0a0626c338a96b5e3221f608b2489a0f6c091d

See more details on using hashes here.

File details

Details for the file django_categories_api-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_categories_api-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 234bb2db6d31f19b94dd209b37762a5628d2e3f2247f01902117f66f4db2683c
MD5 ffc43577183b47868ca26ac222abac5c
BLAKE2b-256 558c5c210f88395d687b144d963f69706fdc855e58fb0ac28b62d686d013e28f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page