Dedicated Server
Sending Request…

a lightweight and simple python web framework Read more

Sorry, but there was a problem saving your changes.

Cancel

Read+Write access

Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files.

  name
No matching files

Jump to Line

Latest commit to the master branch

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.


[image]

Keyboard Shortcuts (see all)

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selection down
k
Move selection up
c or o or enter
Open commit
y
Expand URL to its canonical form

Pull request list

j
Move selection down
k
Move selection up
o or enter
Open issue

Issues

j
Move selection down
k
Move selection up
x
Toggle selection
o or enter
Open issue
I
Mark selection as read
U
Mark selection as unread
e
Close selection
y
Remove selection from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Issues Dashboard

j
Move selection down
k
Move selection up
o or enter
Open issue

Network Graph

↠or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ↠or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down

Source Code Browsing

t
Activates the file finder
l
Jump to line
w
Switch branch/tag
y
Expand URL to its canonical form

Markdown Cheat Sheet

Format Text

Headers

# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag

Text styles

*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__

*You **can** combine them*

Lists

Unordered

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
   * Item 3a
   * Item 3b

Miscellaneous

Images

![GitHub Logo](/images/logo.png)
Format: ![Alt Text](url)

Links

http://github.com - automatic!
[GitHub](http://github.com)

Blockquotes

As Kanye West said:

> We're living the future so
> the present is our past.

Code Examples in Markdown

Syntax highlighting with GFM

```javascript
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}
```

Or, indent your code 4 spaces

Here is a Python code example
without syntax highlighting:

    def foo:
      if not bar:
        return true

Inline code for comments

I think you should use an
`<addr>` element here instead.

Something went wrong with that request. Please try again. Dismiss


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser