是否有相当于 Laravel 4 的 python?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18798848/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 08:25:27  来源:igfitidea点击:

Is there a python equivalent to Laravel 4?

pythonpython-3.xlaravel

提问by JasonMortonNZ

Laravel 4 enables me to develop both small scale and enterprise scale app's easily and efficiently, and its modular concepts allow me to extend it core, build custom reusable packages, and easily follow TDD practices.

Laravel 4 使我能够轻松高效地开发小型和企业级应用程序,其模块化概念允许我扩展它的核心,构建自定义可重用包,并轻松遵循 TDD 实践。

I have been diving into the wonderful world of python (v3) and wondered what the equivalent web framework would be in the python community? A framework that follows some of the same core concepts built into Laravel 4 such as MVC design pattern, easy testing, modular design, packages etc.

我一直在潜入 Python (v3) 的精彩世界,想知道 Python 社区中等效的 Web 框架是什么?一个遵循 Laravel 4 中内置的一些相同核心概念的框架,例如 MVC 设计模式、简单测试、模块化设计、包等。

回答by Jordan

Yes. Pyramidis what you are looking for. It's written from the ground up to be based in common Python libraries and components, and you can swap out pieces for other pieces as you wish. Python as a language is geared for TDD, and Pyramid takes advantage of that. You can push your own libraries, if they are abstract enough, out to PyPi for yourself, if you wish, but you can of course just keep them within your own projects too.

是的。金字塔就是你要找的。它是从头开始编写的,基于常见的 Python 库和组件,您可以根据需要将部分替换为其他部分。Python 作为一种语言面向 TDD,而 Pyramid 正是利用了这一点。如果您愿意,您可以将自己的库(如果它们足够抽象)推送到 PyPi,但您当然也可以将它们保留在您自己的项目中。

There are other Python frameworks, but if you're looking for modular and extensible, without a whole lot of framework interference in your working style preference, Pyramid is the way to go.

还有其他 Python 框架,但是如果您正在寻找模块化和可扩展的,并且在您的工作风格偏好中没有大量框架干扰,那么 Pyramid 是您的最佳选择。

P.S. this question is better suited for programmers.stackexchange.com.

PS这个问题更适合programmers.stackexchange.com。

回答by Joseph Mancuso

Python also has a web framework called Masonitewhich is a lot like Laravel. Heavily inspired by Laravel and a lot of Laravel developers can pick it up really easily.

Python 还有一个叫做Masonite的网络框架,它很像 Laravel。深受 Laravel 的启发,许多 Laravel 开发人员可以很容易地掌握它。

回答by aacanakin

You can look at the framework I'm currently building, namely glim. There exists inspiration from play framework & laravel in it. You can get more information from the docspage.

您可以查看我目前正在构建的框架,即glim。其中存在来自 play 框架和 laravel 的灵感。您可以从文档页面获取更多信息。

It also has an extension system where developers can integrate to it. You can look at the extensionsI have built;

它还有一个扩展系统,开发人员可以在其中集成。你可以看看我搭建的扩展