Skip to main content

Flash - async port of the Dash framework

Project description

Flash

Flash is a Quart async Patch of Dash.

Flash is a async patch of the Plotly Dash library, building on Quart as backend instead of Flask. It is very inspired by the already existing dash-async repo, but covering all features up to Dash 2.18.2

Quarts async capabilities are directly baked into the standard library, making it easy to inject into existing projects.

Flash makes it possible to run true async callbacks and layout functions while running sync functions in a separate thread (asyncio.run_in_executor).

With dash-extensions you can create native websocket components and handle server side events making your application realtime compatible.

Table Of Contents

Motivation

One of my biggest pain points in Dash was to handle database requests, forcing me to add quite alot callbacks to first fetch a lacy component and then render the real component when the ID of the lacy copmonent appeared. Often leading to quite complex pattern matching callbacks to fetch each components data.

Now the DB requests dont block each other and alot interaction can be outsourced to the URL. In order to enhace further responsiveness i am thinking about to add a LazyLoad compoent (more-infos)

Caveats

  • background callbacks have run to sync
    • will be fixed in the future
    • sync callback gets put into a spearate exeuctor
  • dash testings - dash_duo had to be changed to a multi process runner instead of a threaded runner
  • somehow I can't turn of logs in dev mode

Known Issues

  • not all tests pass - detailed look in TEST_LOGS.md
    • 10 integration tests
    • 2 unit tests

TODO

  • shared callbacks / channel callbacks like dash-devices offered. Will most likly be implemented with redis PubSub

  • adding a LacyLoad component like dash-grocery, this will also increase responsiveness and overall better UI feeling

Project details


Download files

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

Source Distribution

dash_flash-0.1.0a1.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

dash_flash-0.1.0a1-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file dash_flash-0.1.0a1.tar.gz.

File metadata

  • Download URL: dash_flash-0.1.0a1.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for dash_flash-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 a31361977e935dd0dd61f7e40259684271aacb4b3d35cb3423c1ffc2159560d4
MD5 c2e5827d6ec40c905055bc699b71035a
BLAKE2b-256 a8afda255016425178b4a7a158b47564bf578574ca6cc6cc9f8ba03e660a74e4

See more details on using hashes here.

File details

Details for the file dash_flash-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: dash_flash-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for dash_flash-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae69fff1e3d8c13775833cefbca1aa13a4559ef57fedbd2e0b92e9817079b212
MD5 a46b0d5067d07f5e573e1f220ef179e2
BLAKE2b-256 e24f2cc264f9c274355a17402fa6a16be8e05368d39d4b1236dd7a6175561a63

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