Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Dashborg Python SDK

Modern internal tools. Defined, controlled, and deployed directly from backend code. No JavaScript. Secure.

  • Define your UI in HTML
  • Define handlers in Go/Python
  • Run your program to deploy your app

Dashborg was built to be the simplest way to create secure web-based internal tools from backend code. Define your UI and control it completely within your backend code. All backend communication is secured with public/private key encryption. Add client password or user-account authentication with one line of code.

Documentation

Key Features

  • No Javascript - No context switching. Write your dashboards using pure HTML and backend code. No JavaScript environment to set up, no messing with NPM, Yarn, Webpack, Babel, React, Angular, etc.
  • No Open Ports - No webhooks, firewall configuration, IP whitelists, or open ports required for your backend.
  • No Frontend Hosting - You get a secure, internet accessible frontend out of the box. No web server configuration, domain name, load balancer, or WAF setup and configuration required.
  • No Shared Passwords - No incoming connections to your infrastructure. Dashborg does not require or store your database passwords or API keys. It does not access any 3rd party service on your behalf.
  • Built For Real Developers - Use the editor, libraries, and frameworks that you already use to write your tools -- no 3rd-party GUI tools to learn, or typing code into text boxes on a website. Easy to get started, but powerful enough to build complex tools and interactions.
  • Secure - All connections are secured using SSL public/private key encryption with client auth. HTTPS on the frontend. Secure your dashboards with a simple password or user accounts. SSO coming soon.
  • Control - Dashborg panels are 100% defined from your backend code. That means you can version them in your own code repository, and run and test them in your current dev, staging, and production environments.
  • Modern Frontend Controls - Tables, Lists, Forms, Inputs, and Buttons all out of the box, with more to come! No Javascript or CSS frameworks required. All styled to look good and work together.

Dashborg Hello World

First install the Dashborg SDK:

pip install dashborg-python-sdk

The code below is the complete code for your first Dashborg program. Copy and paste it into a new file (demo.py).

import asyncio
import dashborg

async def root_handler(req):
    req.set_html("""
        <panel>
            <h1>Hello World</h1>
            <d-button handler="/run-handler">Run</d-button>
        </panel>
    """)

async def run_handler(req):
    print("Running Handler!")

async def main():
    config = dashborg.Config(proc_name="demo", anon_acc=True, auto_keygen=True)
    await dashborg.start_proc_client(config)
    await dashborg.register_panel_handler("default", "/", root_handler)
    await dashborg.register_panel_handler("default", "/run-handler", run_handler)
    while True:
        await asyncio.sleep(1)

asyncio.run(main())

You should see output that looks similar to:

Dashborg created new self-signed keypair key:dashborg-client.key cert:dashborg-client.crt for new accountid:[YOUR-ACCOUNT-ID]
Dashborg KeyFile:dashborg-client.key CertFile:dashborg-client.crt SHA256:[YOUR-KEY-FINGERPRINT]
Dashborg Initialized Client AccId:[YOUR-ACCOUNT-ID] Zone:default ProcName:demo ProcRunId:4f4e8364-5d39-495f-8c9e-1009741b1b47
Dashborg Panel Link [default]: https://console.dashborg.net/acc/YOUR-OWN-PRIVATE-LINK

Copy and paste your panel link (console.dashborg.net) into your browser to see your live dashboard!

Questions? Join the Dashborg Slack Channel

Metadata

Release files for dashborg-python-sdk 0.3.0.dev1

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

Source distribution (sdist)

Source distribution for dashborg-python-sdk 0.3.0.dev1
File Size Uploaded
dashborg-python-sdk-0.3.0.dev1.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dashborg-python-sdk 0.3.0.dev1
File Interpreter ABI Platform
dashborg_python_sdk-0.3.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 40.9 kB

Release files / dashborg-python-sdk-0.3.0.dev1.tar.gz

Download URL dashborg-python-sdk-0.3.0.dev1.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
25e1f9b36f57665fa5eeb235751358a24be71cc268ac52bb9d63f17cb9ee1777
BLAKE2b-256 checksum
How to use checksums
9622782efe2d995ef2774c7c78730c3cf7ad67eea9d2966f0cf11895d2ccd8ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

Release files / dashborg_python_sdk-0.3.0.dev1-py3-none-any.whl

Download URL dashborg_python_sdk-0.3.0.dev1-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb9b0a2bba360fcc08abe66cbca0b102cdffc70d6959c06e5b42d0df7de43c68
BLAKE2b-256 checksum
How to use checksums
6ab55acfe4e303e09dc332a91c5591b7dbb071e7903b6c04cb10d05c5888c3f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
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