为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中测试您的组件
-
将开发包构建到
lib/
并监视更改# Once this is started, you can just leave it running. $ yarn start
-
本地安装模块(每次更改后)
# 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
-
运行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
演示应用程序
- Dash Daq HP万用表 - http://dash-gallery.plotly.host/dash-daq-hp-multimeter
- Dash Daq IV Tracer - http://dash-gallery.plotly.host/dash-daq-iv-tracer
- Dash Daq LED控制 - http://dash-gallery.plotly.host/dash-daq-led
- Dash Daq Omega PID - http://dash-gallery.plotly.host/dash-daq-omega-pid
- Dash Daq 压力表 KJL - http://dash-gallery.plotly.host/dash-daq-pressure-gauge-kjl
- Dash Daq 压力表 Pfeiffer - http://dash-gallery.plotly.host/dash-daq-pressure-gauge-pv
- Dash Daq 机械臂 Edge - http://dash-gallery.plotly.host/dash-daq-robotic-arm
- Dash Daq Sparki - http://dash-gallery.plotly.host/dash-daq-sparki
- Dash Daq 步进电机 - http://dash-gallery.plotly.host/dash-daq-stepper-motor
- Dash Tektronix 350 - http://dash-gallery.plotly.host/dash-daq-tektronix350
- Dash Ocean Optics - http://dash-gallery.plotly.host/dash-ocean-optics
关闭
dash_daq-0.5.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a1d85b6799f7b885652fbc44aebdb58c41254616a8d350b943beeb42ade4256a |
|
MD5 | 116becd448b2de6688ebe81077bbc3da |
|
BLAKE2b-256 | 16c19c6adfc3646990965a5b2ca073f579cc9c09d15553fcfcd83aefd1255494 |