github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

breily / juno

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 236
    • 13
  • Source
  • Commits
  • Network (13)
  • Issues (2)
  • Downloads (3)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (5)
    • add_tests
    • add_tutorial
    • master ✓
    • stable
    • tmp_branch
  • Tags (2)
    • 0.1.2
    • 0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

a lightweight and simple python web framework — Read more

  cancel

http://brianreily.com/project/juno/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

* Change setup.py wording about SQLAlchemy. 
breily (author)
Mon Apr 13 17:02:02 -0700 2009
commit  8f7695a5f3be04d44f1cf4104828ed9dfaf143ff
tree    73eb52f875f18c5f80447d1a8d3f9de70f7e3f91
parent  b1a5a0da361266c7de91139ed348056ce20326db
juno /
name age
history
message
file .gitignore Sat Mar 14 03:55:46 -0700 2009 * Put Juno onto Pypi * Added MANIFEST file * Ad... [breily]
file LICENSE Mon Mar 09 20:31:37 -0700 2009 * Added MIT license. [breily]
file MANIFEST Sat Mar 14 03:55:46 -0700 2009 * Put Juno onto Pypi * Added MANIFEST file * Ad... [breily]
file README.md Sat Mar 14 04:02:08 -0700 2009 * Added easy_install note to README [breily]
file TODO Wed Mar 25 17:19:17 -0700 2009 * Fixed bug in model.find(); used old model_tab... [breily]
directory doc/ Wed Mar 25 16:56:37 -0700 2009 * Add sessions to documentation (#3). [breily]
file juno.py Wed Mar 25 17:19:17 -0700 2009 * Fixed bug in model.find(); used old model_tab... [breily]
file setup.py Mon Apr 13 17:02:02 -0700 2009 * Change setup.py wording about SQLAlchemy. [breily]
directory templates/ Sun Feb 22 00:33:34 -0800 2009 * 404/500 templates don't show both libraries t... [breily]
directory tests/ Sat Mar 21 10:43:36 -0700 2009 * Added some tests for the Content-Type header. [breily]
README.md

Juno

  • Juno is a web framework that was designed to make development as fast as possible.
  • Homepage: http://brianreily.com/project/juno
  • Repository: http://github.com/breily/juno

Using Juno

To start off:

from juno import *

@route('/')
def index(web):
    return 'Juno says hi'

run()

Add some url handling:

@route('/hello/:name/')
def hello(web, name):
    return 'Hello, %s' %name

Use a template:

@get('/hi_template/:name/')
def template_hi(web, name):
    template('hello.html', name=name)

Build a model:

Person = model('Person', name='string')
p = Person(name='brian')

Features

  • All normal web framework stuff (models, routes, views, templates)
  • WSGI compliant, with included development server as well as SCGI/FastCGI servers
  • Database access through SQLAlchemy
  • Templating included through Jinja2 and Mako, but Juno can use anything.

Install

  • You can use easy_install:

    easy_install Juno
    
  • Or pull from Github, and then do:

    $ python setup.py install   # As root
    $ python
    >>> import juno             # Make sure everything worked
    
  • Requires: SQLAlchemy

  • Optional:
    • Jinja2/Mako (for templating)
    • Flup (for SCGI/FastCGI only)
    • Beaker (for sessions)
    • Werkzeug (for debugging)

Help / Contribute

  • See the doc/ directory for the current documentation.
  • More questions? Find bugs? Check out the new Google group.
  • Contributions are welcome through Github or by emailing me a patch.

Note

  • Juno violates some usual principles of good design (don't use global variables, don't do things implicitly, etc.) for the sake of fast development and less boilerplate code. You've been warned.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server