Need help with tg2?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

756 Stars 74 Forks Other 2.0K Commits 6 Opened issues


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

Services available


Need anything else?

Contributors list


.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. 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:: :target:

To try TurboGears just get

if you don't already have it::
$ curl -O ''
$ python

And install Turbogears::

$ pip install TurboGears2

Then serving a TurboGears web application is as simple as making a
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

and open your browser at

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

  • Getting Started with Turbogears 
  • Building a Wiki in 20 minutes 

Support and Documentation


TurboGears Documentation 
_ for complete documentation and tutorials.

See the

TurboGears website 
_ to get a quick overview of the framework and look for support.


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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.