# ext-flask+sqlitedb **Repository Path**: i37ck/ext-flask-sqlitedb ## Basic Information - **Project Name**: ext-flask+sqlitedb - **Description**: flask+sqlitedb - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-16 - **Last Updated**: 2023-10-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 37创客Flask+sqlitedb数据库服务器 ![](./python/_images/featured.png) --------------------------------------------------------- ## Table of Contents * [URL](#url) * [Summary](#summary) * [Blocks](#blocks) * [License](#license) * [Supported targets](#Supportedtargets) ## 链接 URL * Project URL : ```https://github.com/liliang9693/ext-pyFlaskWeb``` * Tutorial URL : ```https://mindplus.dfrobot.com.cn/extensions-user``` ## 简介 Summary 使用Mind+V1.7.2 RC3.0及以上版本包含python模式的版本,在python模式用户库中加载此扩展,可实现使用纯python创建一个网页并在浏览器访问。 使用Flask库创建网页服务器,使用dominate库实现python生成html代码。 > 注意:Mind+内置的是Flask较新的2.x版本,运行可能会报**No module named 'dataclasses'**错误,此时需要将Flask版本降低到1.x版本即可。 > 操作方法:1、打开**库管理**,右上角切换到**清华大学源**,切换到**PIP模式**。 > 2、在输入框中先输入```pip uninstall Flask```后点击运行即可卸载当前Falsk版本,等待下方输出**Successfully**。 > 3、然后输入```pip install Flask==1.1.4```后点击运行即可安装1.1.4版本Flask,等待下方输出**Successfully**即为安装成功。 **使用教程:** 【新课标】信息科技跨学科案例-七年级 向世界介绍我的学校 https://mc.dfrobot.com.cn/thread-314330-1-1.html ## 积木块 Blocks 积木分成两部分,前半部分是搭建网页服务器功能,后半部分是网页内容设计。 ![](./python/_images/block1.png) ![](./python/_images/block3.png) ## 案例 Examples > 使用逻辑: - 1、新建网页对象 - 2、给网页对象添加内容 - 3、将网页对象生成html文件 - 4、启动Flask服务器 - 5、增加网页路由,设定执行函数 - 6、执行函数中根据标签执行对应动作 - 7、浏览器打开网页查看效果 ![](./python/_images/example.png) ![](./python/_images/example2.png) ## License MIT ## 支持 Supported targets MCU | JavaScript | Arduino | MicroPython | Python ------------------ | :----------: | :----------: | :---------: | ----- arduino | | | | micro:bit | | | | esp32 | | | | unihiker | | | | √ PC | | | | √ ## 日志 Release Logs * V0.0.1 基础功能完成 * V0.0.2 增加视频图传功能 * V0.0.3 兼容多级标签