|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/django-project-python-package-sql-middleware/
课程评论:没有评论
课程名称: Django项目:构建Python包 - SQL中间件 课程概述: 本课程旨在教授学生如何构建和发布Python包至Python包索引(PyPI)。我们将围绕一个在课程中开发的Django中间件工具来构建和发布这个包。课程开始时,我们将学习如何建立Django项目以及如何检查Django应用程序执行的SQL查询。接下来,我们将了解Django中间件的基础知识,并构建一个简单的中间件组件,作为我们包的基本功能。 一旦掌握了Django、Django中间件以及如何捕获执行的SQL查询后,我们将进入构建新包的下一阶段。首先,我们会探索构建新包所需的基本文件和配置,然后将之前构建的中间件整合到新包中,准备将其上传至PyPI。 我们的应用程序生命周期并不在分发后就结束,因此课程还将介绍如何自动化将应用程序交付到PyPI的过程。我们将开发GitHub Actions来管理包的打包和上传。同时,课程中还会介绍使用Pytest进行测试的基础知识,以及创建独立的Django应用程序以辅助测试过程。 通过本课程,学员将获得构建和发布Python包的实用技能,提升Django应用程序开发的能力。
The Python Package Index (PyPI) is a software repository for the Python programming language. in this course, we teach you how to build and publish a Python package to the PyPI. The package we built and published is centred around a Django middleware tool we developed in this course. We start by learning how to build a Django project and how to inspect SQL queries executed by a Django application. We will learn the basics of Django Middleware and how to build a simple middleware component that will form our package's basic functionality. Once we grasp the fundamentals of Django, Django middleware and how to capture SQL queries executed by Django, we move to the next phase, building a new package. In the first stages, we explore the essential files and configurations required to build a new package. We then incorporate the middleware we have built previously and build our package in preparation for being uploaded to the PyPI. The life cycle of our application does not stop after distribution. Therefore we take the following steps to automate the delivery of our app to the PyPI. We develop GitHub actions to manage the packaging and upload of the package to the PyPI. In this course, we provide an introduction to testing with Pytest, creating stand-alone Django apps to aid the testing process.