跳转到主要内容

为Dash的DAQ组件

项目描述

dash_daq

为Dash提供的DAQ组件。

文档:https://dash.plotly.com/dash-daq

安装

pip install dash_daq

(或在Python 3中,pip3 install dash_daq)

对贡献者的入门指南

# Clone this repository
git clone https://github.com/plotly/dash-daq.git

# Install dependencies
$ yarn

# Watch source for changes and build to `lib/`
$ yarn start

文档

组件API文档可以在https://dash.plotly.com/dash-daq找到

开发

演示服务器

您可以启动一个演示开发服务器来查看渲染组件的演示。

$ yarn demo
$ open https://127.0.0.1:9000

您需要在demo/Demo.react.js中维护组件列表。

代码质量和测试

运行lint和单元测试

$ yarn test

在Dash中测试您的组件

  1. 将开发包构建到lib/并监视更改

     # Once this is started, you can just leave it running.
     $ yarn start
    
  2. 本地安装模块(每次更改后)

     # Generate metadata, and build the JavaScript bundle
     $ yarn install-local
    
     # Now you're done. For subsequent changes, if you've got `yarn start`
     # running in a separate process, it's enough to just do:
     $ python setup.py install
    
  3. 运行Dash演示

     $ python demo.py
    

本地安装Python包

在发布到PyPi之前,您可以测试本地安装模块

# Install in `site-packages` on your machine
$ yarn run install-local

本地卸载Python包

$ yarn run uninstall-local

以tar包的形式发布新版本

vim dash_daq/version.py # and increase it to X.X.X
rm -rf node_modules dist build lib
yarn install
yarn build-tarball
ls dist/dash_daq-X.X.X.tar.gz # this is your tarball

演示应用程序

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面