Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A web-based dashboard to analyzing your data with Python

Project Description

A web-based dashboard to analyzing your data with Python

Screenshot

Installation

pip3 install boardify

Usage

from boardify import *


# Class for the dashboard
class FruitDashboard(BasicDashboard):
    def config(self):
        self.name = "Fruit Company"

        # Add Blocks to the dashboard
        self.add_block(Products())
        self.add_block(NicestFruit())


# Block contains HTML Code
class Products(BasicBlock):
    def config(self):
        self.name = "Products"
        self.description = "A list of our products"

    def data(self):
        return """<ul>
        <li>Apple</li>
        <li>Orange</li>
        <li>Banana</li>
        <li>Kiwifruit</li>
        <li>Blueberry</li>
        <li>Grapes</li>
        </ul>"""


# Block renders a bar chart
class NicestFruit(BasicBlock):
    def config(self):
        self.name = "Nicest Fruit"
        self.description = "A survey of 145 people asked them "Which is the nicest fruit?""

    def data(self):
        # Define the data for the chart
        data = [
            {"label": "Apple", "value": 35, "color": "rgba(247, 0, 0, 0.2)"},
            {"label": "Orange", "value": 20, "color": "rgba(254, 114, 0, 0.2)"},
            {"label": "Banana", "value": 45, "color": "rgba(237, 250, 0, 0.2)"},
            {"label": "Kiwifruit", "value": 10, "color": "rgba(12, 250, 0, 0.2)"},
            {"label": "Blueberry", "value": 30, "color": "rgba(0, 85, 250, 0.2)"},
            {"label": "Grapes", "value": 5, "color": "rgba(177, 0, 250, 0.2)"}
        ]

        # Generate the bar chart
        return BarChart(data, label="Fruits").generate()


# Run the server
dashboard = FruitDashboard()
dashboard.run()

Open the dashboard at http://localhost:7000

Made with

Meta

This project is licensed under the MIT License - see the LICENSE file for details

Release History

This version
History Node

0.2.0

History Node

0.1.0

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
boardify-0.2.0.tar.gz
(3.1 kB) Copy SHA256 Hash SHA256
Source None Dec 16, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting