• Stars
    star
    802
  • Rank 56,815 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 13 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

TurboGears

https://coveralls.io/repos/TurboGears/tg2/badge.svg?branch=development https://img.shields.io/twitter/follow/turbogearsorg.svg?style=social&label=Follow

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

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

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:

Support and Documentation

Visit TurboGears Documentation for complete documentation and tutorials.

See the TurboGears website 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.

More Repositories

1

Ming

MongoDB ODM (Object Document Mapper) with Unit of Works, IdentityMap, Relations and Mongo-In-Memory implementation
Python
28
star
2

gearbox

Command line toolkit born as a paster command replacement for the TurboGears2 web framework
Python
23
star
3

tg2devtools

TurboGears 2.x DevTools repository
Python
16
star
4

tg2docs

TurboGears 2.x Docs repository
Shell
15
star
5

backlash

Standalone WebOb port of the Werkzeug Debugger with Python3 support born as a WebError replacement for TurboGears2
Python
13
star
6

tgext.pluggable

Pluggable applications support for TurboGears2
Python
11
star
7

tgext.admin

Admin Controller add-on for TurboGears2
Python
9
star
8

tgext.crud

Crud Controller Extension for TG2
Python
8
star
9

tgext.debugbar

Debug Toolbar for TurboGears2 framework.
Python
6
star
10

tgext.menu

TurboGears 2.x extension for automatically maintaining navbar, sidebars, and the like.
Python
5
star
11

tgwebsite

The next version of the TurboGears website. Sphinx for now, while we put a new application together.
HTML
4
star
12

sprox

Form Generation from database schema for ToscaWidgets with support for various database backends
Python
4
star
13

tgext.utils

Collection of utility methods for TurboGears2
Python
3
star
14

tgming

TurboGears2 utilities for MongoDB database using the Ming ODM
Python
3
star
15

tgext.routes

Provides Routes based dispatching for TurboGears2
Python
3
star
16

tg2tut

TurboGears 2.x Tutorials
Python
2
star
17

crank

Generalized Object based Dispatch mechanism for use across frameworks
Python
2
star
18

tgext.xmlrpc

TurboGears XMLRPC Controller
Python
1
star