Skip to main content

boardify

A web-based dashboard to analyzing your data with Python

PyPI Requirements Status

Screenshot

Installation

pip3 install boardify

Usage

from boardify import BaseDashboard, BaseBlock, BarChart


# Class for the dashboard
class FruitDashboard(BaseDashboard):
    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(BaseBlock):
    def config(self):
        self.name = "Products"
        self.description = "A list of our products"

    def generate(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(BarChart):
    def config(self):
        self.name = "Nicest Fruit"
        self.description = ("A survey of 145 people asked them "
                            "\"Which is the nicest fruit?\"")

    def data(self):
        return {
            "datasets": {
                "Survey One": [35, 20, 45, 10, 30, 5],
                "Survey Two": [30, 25, 60, 5, 35, 0],
            },
            "labels": ["Apple",
                       "Orange",
                       "Banana",
                       "Kiwifruit",
                       "Blueberry",
                       "Grapes"],
            "background_color": ["rgb(128, 18, 2)",
                                 "rgb(244, 132, 0)",
                                 "rgb(246, 221, 0)",
                                 "rgba(83, 65, 25, 0.97)",
                                 "rgb(35, 123, 214)",
                                 "rgb(99, 74, 161)"]
        }


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

Open the dashboard at http://localhost:7000

Made with

Meta

Lucas Hild - https://lucas-hild.de
This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for boardify 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boardify 0.5.1
File Size Uploaded Provenance Actions
boardify-0.5.1.tar.gz 4.2 kB Without provenance Details for boardify-0.5.1.tar.gz

Release files / boardify-0.5.1.tar.gz

Download URL boardify-0.5.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8ecf299d192c75aca52a65be4de05f8ef4f6989b7b385b3344c7b6d33da588ab
BLAKE2b-256 checksum
How to use checksums
10a7a38fe3e47977d783954c4819c4d0ffc2885d6f2c6a1f8873d847aa4b9a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for boardify 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page