Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
Starlight
=========
Starlight is a Web framework written in Python and based on Werkzeug. Though
Werkzeug is very powerful, it is also comparatively low-level - simple apps
written in it require a lot of common code to route URLs, trap HTTP errors,
build the request, etc. Starlight acts as a layer on top of Werkzeug, handling
the things like routing and request generation itself so you just have to
write the business logic.

The basic way to use Starlight is to subclass ``starlight.App`` and provide
methods. These methods should be decorated with ``@dispatch(route)``, where
``route`` is a Werkzeug URL routing specification. Their first argument is
self, and the rest are any parameters captured from the route as
keyword arguments. You can access the request from the ``request`` object,
which is included in a ``from starlight import *``, but lives in
``starlight.utils``. More documentation is forthcoming, but until then you can
look at the apps in the ``examples`` folder.

Starlight's home page, bug tracker, and Mercurial repository are at
``http://bitbucket.org/leafstorm/starlight/``.

Starlight is released under the MIT license, which is reproduced in the
COPYING file. In addition to that legal notice, here is a blessing:

    May you do good and not evil.
    May you find forgiveness for yourself and forgive others.
    May you share freely, never taking more than you give.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.