All Projects → TurboGears → Tg2

TurboGears / Tg2

Licence: other
Python web framework with full-stack layer implemented on top of a microframework core with support for MongoDB, Pluggable Applications and autogenerated Admin

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tg2

Masonite
The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Slack channel questions: http://slack.masoniteproject.com
Stars: ✭ 1,681 (+122.35%)
Mutual labels:  framework, webframework
Buffalo
Rapid Web Development w/ Go
Stars: ✭ 6,476 (+756.61%)
Mutual labels:  framework, webframework
Sifrr
⚡️ Set of tiny, independent libraries for creating modern and fast webapps with javascript/typescript
Stars: ✭ 174 (-76.98%)
Mutual labels:  framework, fullstack
Zinky
minimalist semi-opinionated modular framework.
Stars: ✭ 28 (-96.3%)
Mutual labels:  framework, fullstack
Xweb
High performance async web framework.
Stars: ✭ 314 (-58.47%)
Mutual labels:  webframework, microframework
Twig
Twig - less is more's web server for golang
Stars: ✭ 98 (-87.04%)
Mutual labels:  framework, webframework
Framework
The li₃ fullstack distribution, including overarching directory layout, starting application, and a copy of the framework.
Stars: ✭ 199 (-73.68%)
Mutual labels:  framework, fullstack
Chubbyphp Framework
A based PSR-15 microframework that also sets maximum flexibility with minimum complexity and easy replaceability of the individual components, but also of the framework.
Stars: ✭ 69 (-90.87%)
Mutual labels:  framework, microframework
Golf
⛳️ The Golf web framework
Stars: ✭ 248 (-67.2%)
Mutual labels:  framework, webframework
Moonzoon
Rust Fullstack Framework
Stars: ✭ 244 (-67.72%)
Mutual labels:  framework, fullstack
Jooby
The modular web framework for Java and Kotlin
Stars: ✭ 1,309 (+73.15%)
Mutual labels:  webframework, microframework
Spock
Another Haskell web framework for rapid development
Stars: ✭ 623 (-17.59%)
Mutual labels:  framework, webframework
Aleph.js
The Full-stack Framework in Deno.
Stars: ✭ 3,448 (+356.08%)
Mutual labels:  framework, fullstack
Frappejs
Node + Electron + Vue based metadata web framework (inspired by Frappe)
Stars: ✭ 214 (-71.69%)
Mutual labels:  framework, webframework
Korolev
Single Page Applications running on the server side.
Stars: ✭ 510 (-32.54%)
Mutual labels:  framework, fullstack
Kvision
Object oriented web framework for Kotlin/JS
Stars: ✭ 658 (-12.96%)
Mutual labels:  framework, fullstack
Dancer
The easiest way to write web applications with Perl (Perl web micro-framework)
Stars: ✭ 713 (-5.69%)
Mutual labels:  framework
Chota
A micro (3kb) CSS framework
Stars: ✭ 733 (-3.04%)
Mutual labels:  framework
Pyflow
Visual scripting framework for python - https://wonderworks-software.github.io/PyFlow
Stars: ✭ 710 (-6.08%)
Mutual labels:  framework
Awesome Ui Component Library
Curated list of framework component libraries for UI styles/toolkit
Stars: ✭ 702 (-7.14%)
Mutual labels:  framework

TurboGears

.. image:: https://travis-ci.org/TurboGears/tg2.svg?branch=development :target: https://travis-ci.org/TurboGears/tg2

.. image:: https://coveralls.io/repos/TurboGears/tg2/badge.svg?branch=development :target: https://coveralls.io/r/TurboGears/tg2?branch=development

.. image:: https://img.shields.io/pypi/v/TurboGears2.svg :target: https://pypi.python.org/pypi/TurboGears2

.. image:: https://img.shields.io/pypi/pyversions/TurboGears2.svg :target: https://pypi.python.org/pypi/TurboGears2

.. image:: https://img.shields.io/pypi/l/TurboGears2.svg :target: https://pypi.python.org/pypi/TurboGears2

.. image:: https://www.codetriage.com/turbogears/tg2/badges/users.svg :target: https://www.codetriage.com/turbogears/tg2

.. image:: https://img.shields.io/gitter/room/turbogears/Lobby.svg :target: https://gitter.im/turbogears/Lobby

.. image:: https://img.shields.io/twitter/follow/turbogearsorg.svg?style=social&label=Follow :target: https://twitter.com/turbogearsorg

.. raw:: html

TurboGears is a hybrid web framework able to act both as a Full Stack framework or as a Microframework. TurboGears helps you get going fast and gets out of your way when you want it!

TurboGears can be used both as a full stack framework or as a microframework in single file mode.

Get Started

.. image:: https://asciinema.org/a/181221.png :target: https://asciinema.org/a/181221

To try TurboGears just get pip if you don't already have it::

$ curl -O 'https://bootstrap.pypa.io/get-pip.py'
$ python get-pip.py

And install Turbogears::

$ pip install TurboGears2

Then serving a TurboGears web application is as simple as making a webapp.py file with your application::

from wsgiref.simple_server import make_server
from tg import MinimalApplicationConfigurator
from tg import expose, TGController

# RootController of our web app, in charge of serving content for /
class RootController(TGController):
    @expose(content_type="text/plain")
    def index(self):
        return 'Hello World'

# Configure a new minimal application with our root controller.
config = MinimalApplicationConfigurator()
config.update_blueprint({
    'root_controller': RootController()
})

# Serve the newly configured web application.
print("Serving on port 8080...")
httpd = make_server('', 8080, config.make_wsgi_app())
httpd.serve_forever()

Start it with python webapp.py and open your browser at http://localhost:8080/

Want to play further with TurboGears? Try the TurboGears Tutorials:

  • Getting Started with Turbogears <http://turbogears.readthedocs.io/en/latest/turbogears/minimal/index.html>_
  • Building a Wiki in 20 minutes <http://turbogears.readthedocs.io/en/latest/turbogears/wiki20.html>_

Support and Documentation

Visit TurboGears Documentation <http://turbogears.readthedocs.io/>_ for complete documentation and tutorials.

See the TurboGears website <http://www.turbogears.org/>_ to get a quick overview of the framework and look for support.

License

TurboGears is licensed under an MIT-style license (see LICENSE.txt). Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].