public
Description: a lightweight and simple python web framework
Homepage: http://brianreily.com/project/juno/
Clone URL: git://github.com/breily/juno.git
mallipeddi (author)
Sun Feb 08 06:15:55 -0800 2009
Brian Reily (committer)
Mon Feb 09 02:41:47 -0800 2009
juno /
name age message
file .gitignore Mon Feb 09 02:41:47 -0800 2009 Fixed __contains__ in JunoRequest. Added build ... [mallipeddi]
file README Wed Feb 04 10:31:17 -0800 2009 * Noted install changes in README and setup docs. [Brian Reily]
file TODO Wed Feb 04 09:26:15 -0800 2009 * Added install notes to README. * Clarified we... [Brian Reily]
directory doc/ Wed Feb 04 13:13:03 -0800 2009 * Added in my homepage's code as an example. [Brian Reily]
file juno.py Loading commit data...
file setup.py Wed Feb 04 10:28:26 -0800 2009 * Removed setup.rb script * Added setup.py [Brian Reily]
directory templates/ Sat Jan 03 23:06:04 -0800 2009 removed 500 template because it was unused anyways [Brian Reily]
README
  ~  Juno  ~  
--------------

* Juno is a web framework that was designed to make development as fast
  as possible


Say 'Hello, World' in 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)


Models
------

] Person = model('Person', name='string')
] p = Person(name='brian')
] p.name                # => u'brian'
] p.id                  # => 1
]
] find(Person).all()    # => [ <Person: id = 1> ]


Features
--------

- All normal web framework stuff (models, views, routes, templates)
- Development server
- Uses SCGI to connect to Nginx/Apache/etc.
- Templating through Jinja2
- Database access through SQLAlchemy


Install
-------

* To get the latest stable version, pull from the 'stable' branch.  Then do:

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

* To get the latest development version, pull from master.  The same steps will
  install it.
  

Help
----

- See the doc/ directory for the current documentation.


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.