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.0a2.tar.gz (39.8 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.0a2-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dash_flash-0.1.0a2.tar.gz
  • Upload date:
  • Size: 39.8 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.0a2.tar.gz
Algorithm Hash digest
SHA256 e2bf262c310fb4229ac7db98c6f82c01f9157043dfe3888fd6f8adc9df8cde21
MD5 48d1193b4bf4e0bd8779fd08f60308fc
BLAKE2b-256 916f853c8389f47375e0b6bce50f30b68cb8cf5249286b5b6efa45660b594304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dash_flash-0.1.0a2-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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4670e1de7e2bcde47fc80a9ab967fb6ada0c460167635c8f2521531515b7a5fa
MD5 727c9058c25428d9a85775d12064627b
BLAKE2b-256 bea8d02c959e101decefcc777cae78ce4c3397a76987434d1dac809a567680b3

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