Flask Landing - Learn the Python Microframework

所在平台: Udemy

课程主页: https://www.udemy.com/course/learn-flask-python-microframework/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Flask Landing - 学习Python微框架 课程概述:Flask是一个灵活的Python网络框架,其特点是功能范围狭窄,学习相对简单。使用Flask构建的网络应用程序可以非常简洁,最简单的应用仅需4行代码。无论你的技术背景如何,Flask的简单性意味着学习曲线较小。虽然您可以添加各种技术(如SQL数据库)以增强Flask的功能,但这完全是可选的。 Flask的使用案例包括: - 快速高效的RESTful API服务 - 为主应用(如Django应用)卸载任务的微服务,处理各种处理过程(如生成缩略图、运行机器学习、进行网页抓取、发送通知及计算账单等) - 完整的网络应用(用户登录、数据存储、用户分享等) - 集成到IoT设备中以控制传感器、电机、伺服器、麦克风、摄像头等 - 作为服务间的中介(例如,需要分析Shopify中的客户数据后再生成Zap) Flask与许多Python包一样,其功能非常强大,可以实现几乎所有你能够想象的需求,并且很可能有人已经创建了相关的包来显著缩短项目开发时间。 Flask与Django比较:这两个框架常常被拿来比较,虽然它们的核心目标都是网络应用开发,但方法却截然不同: - Flask更灵活,但在大型项目的开发上时间较长 - Django在大型项目上能有效缩短长期开发时间 - Flask的文件体积较小 - Django体积较大,但内置了许多安全特性(如CSRF和点击劫持防护) - Django具有ORM,而Flask则可以轻松集成SQLAlchemy - 学习Flask后转向学习Django会变得更容易,反之亦然。 如果你准备好开始学习,那么就让我们开始吧!

课程评论(0条)

课程详情

Flask is a flexible web framework written in Python. It's narrow in scope so that means it's much easier to learn.A web application with Flask can be as simple as 1 function with 4 total lines of code. Regardless of your technical background, what I want that to signal to you is that Flask can be very very small in scope which means a much smaller learning curve.Of course, you can add all kinds of technology (such as a SQL database), to make Flask even more functional but that's completely optional. Here's a few use cases of flask:Quick and fast RESTful API serviceMicroservice for offloading tasks from a main app (such as a Django app) to handle all sorts of processing (creating thumbnails, running machine learning, doing web scraping, sending notifications, calculating bills and invoices, and so on)Full fledged Web Application (user login, data storage, user sharing, etc)Integrating into an iot device to control sensors, motors, servos, mics, cameras, and so on. As middleman between services like Shopify and Zapier. (Ie you need to analyze some customer data from Shopify before it becomes a zap?)Anything you can imageFlask, as with many Python Package, can almost do anything you can image. And there's a good chance that someone has already created a package to help your project's development time increase in a big way.Django vs FlaskThese two are compared all the time. At their core, they attempt to accomplish the same thing: web application development. But they do it in very different ways.First off, remember that Python is flexible so Django and Flask are flexible.Flask can be more flexible but increases development time on larger projectsDjango cuts long term development time on larger projectsFlask is smaller as in file sizeDjango is bigger but has many security features built in (such as CSRF and clickjacking)Django has an ORMFlask can easily be integrated into SQLAlchemyIf you know Flask, learning Django will be easier and vice versa. In fact, once you know any python web framework it's much easier to learn others so you can find the best library that your project needs.Are you ready to begin?Let's do this!Justin

课程标签

0人关注该课程

主题相关的课程