Skip to main content

Serves up pandas dataframes via the Django REST Framework for client-side visualizations.

Project description

Django REST Pandas

Django REST Framework + pandas = A Model-driven Visualization API

Django REST Pandas (DRP) provides a simple way to generate and serve pandas DataFrames via the Django REST Framework. The resulting API can serve up CSV (and a number of other formats for consumption by a client-side visualization tool like @wq/analyst.

The design philosophy of DRP enforces a strict separation between data and presentation. This keeps the implementation simple, but also has the nice side effect of making it trivial to provide the source data for your visualizations. This capability can often be leveraged by sending users to the same URL that your visualization code uses internally to load the data.

While DRP is primarily a data API, it also provides a default collection of interactive visualizations through the @wq/chart library, and a @wq/pandas loader to facilitate custom JavaScript charts that work well with CSV output served by DRP. These can be used to create interactive time series, scatter, and box plot charts - as well as any of the other charting possibilities Plotly provides.

Latest PyPI Release Release Notes License GitHub Stars GitHub Forks GitHub Issues

Tests Python Support Django Support

Documentation

DRP is configured by defining one or more API views and mapping them to URLs. The underlying implementation is a set of serializers that take Django REST Framework's serializer output and converts it into a dataframe. Then, the included renderers generate the output file using pandas' built in functionality.

  1. Getting Started

  2. API Documentation

  3. Data Visualization

Download files

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

Source Distribution

rest-pandas-2.0.0a1.tar.gz (214.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rest_pandas-2.0.0a1-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

Details for the file rest-pandas-2.0.0a1.tar.gz.

File metadata

  • Download URL: rest-pandas-2.0.0a1.tar.gz
  • Upload date:
  • Size: 214.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for rest-pandas-2.0.0a1.tar.gz
Algorithm Hash digest
SHA256 8fa28296806ed71f7920ee9c209bde6d1e398daef089f357428c533e6f0f8602
MD5 91f3ba557eebcdae09da4e76cb92600d
BLAKE2b-256 cf17bf6de4c54e1b446a121b721a5040777851b94d17e02f6a516b18e048e98a

See more details on using hashes here.

File details

Details for the file rest_pandas-2.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: rest_pandas-2.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for rest_pandas-2.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 952cd499054fac17b161ba1871f86e67e9f50577017b92cfde75375eeb0a251c
MD5 addc033e861fae7baa32d24b01308e08
BLAKE2b-256 973f462adc4c68f7218ae6363841888b01383da49ee4e56156dcaba8206dab15

See more details on using hashes here.

Supported by

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