Skip to main content

django-wildewidgets is a Django library designed to help you make charts, graphs, tables, and UI widgets quickly and easily with libraries like Chartjs, Altair, and Datatables.

Project description

      _ _                                        _ _     _               _     _            _       
     | (_)                                      (_) |   | |             (_)   | |          | |      
   __| |_  __ _ _ __   __ _  ___ ________      ___| | __| | _____      ___  __| | __ _  ___| |_ ___ 
  / _` | |/ _` | '_ \ / _` |/ _ \______\ \ /\ / / | |/ _` |/ _ \ \ /\ / / |/ _` |/ _` |/ _ \ __/ __|
 | (_| | | (_| | | | | (_| | (_) |      \ V  V /| | | (_| |  __/\ V  V /| | (_| | (_| |  __/ |_\__ \
  \__,_| |\__,_|_| |_|\__, |\___/        \_/\_/ |_|_|\__,_|\___| \_/\_/ |_|\__,_|\__, |\___|\__|___/
      _/ |             __/ |                                                      __/ |             
     |__/             |___/                                                      |___/              

django-wildewidgets is a Django library designed to help you make charts, graphs, tables, and UI widgets quickly and easily with libraries like Chartjs, Altair, and Datatables.

Quick start

Install:

pip install django-wildewidgets

If you plan on using Altair charts, run:

pip install altair

Add "wildewidgets" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'wildewidgets',
]

Include the wildewidgets URLconf in your project urls.py like this:

from wildewidgets import WildewidgetDispatch

urlpatterns = [
    ...
    path('<urlbasepath>/wildewidgets_json', WildewidgetDispatch.as_view(), name='wildewidgets_json'),
]

Add the appropriate resources to your template files.

For ChartJS (regular business type charts), add the corresponding javascript file:

<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script> 

For Altair (scientific charts), use:

<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>  

And for DataTables, use:

<script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.21/sorting/datetime-moment.js"></script>

and:

<link href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" rel="stylesheet" />

Documentation

django-wildewidgets.readthedocs.io is the full reference for django-wildewidgets.

Project details


Release history Release notifications | RSS feed

This version

0.5.2

Download files

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

Source Distribution

django-wildewidgets-0.5.2.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

django_wildewidgets-0.5.2-py2.py3-none-any.whl (28.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-wildewidgets-0.5.2.tar.gz.

File metadata

  • Download URL: django-wildewidgets-0.5.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

File hashes

Hashes for django-wildewidgets-0.5.2.tar.gz
Algorithm Hash digest
SHA256 b54e587a0eebe31ec66280cae429b5daa6f95bc559ad87de3c4fc4faa034e601
MD5 40cf1d8fb216147d31e7aa0e532b2d09
BLAKE2b-256 3a575128983ce85d47d55853e82b72829676a0eb6b9439eba590329c6930a4dd

See more details on using hashes here.

File details

Details for the file django_wildewidgets-0.5.2-py2.py3-none-any.whl.

File metadata

  • Download URL: django_wildewidgets-0.5.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

File hashes

Hashes for django_wildewidgets-0.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15c4160fb5b1c9124e812e3f00ab6ad6d76f843b392c2f443dbcf4fa00477191
MD5 e1f8a6c0d573870210f6f7bf374612cc
BLAKE2b-256 34f433bb3e552e8e7c9b9ca253e15bd7bfeee3a40a55c823a807368af4393acc

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