https://github.com/cleverdevil/nutcracker
Merge several Pecan or WSGI applications into a single app.
https://github.com/cleverdevil/nutcracker
Last synced: 5 months ago
JSON representation
Merge several Pecan or WSGI applications into a single app.
- Host: GitHub
- URL: https://github.com/cleverdevil/nutcracker
- Owner: cleverdevil
- Created: 2014-03-15T00:41:38.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T00:42:02.000Z (almost 12 years ago)
- Last Synced: 2025-09-08T18:36:01.318Z (5 months ago)
- Language: Python
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nutcracker
Nutcracker allows you to easily create a single WSGI application out of several
[Pecan](http://pecanpy.org) applications or WSGI applications, in a declarative
style familiar to Pecan developers.
## Example
The following application will bind four applications together into a single
application.
```python
from nutcracker import Nutcracker, PecanAppRef, WSGIAppRef
from my_wsgi_app import app
class MyNutcracker(Nutcracker):
__root__ = PecanAppRef('/path/to/pecanapp/config.py')
forums = PecanAppRef('/path/to/pecan/forumapp/config.py')
blog = PecanAppRef('/path/to/pecan/blogapp/config.py')
other = WSGIAppRef(app)
from wsgiref.simple_server import make_server
httpd = make_server('', 8123, MyNutcracker())
httpd.serve_forever()
```
## Notes
Nutcracker is based upon Alfredo Deza's
[pecan-mount](http://github.com/alfredodeza/pecan-mount), but features an API
more acceptable to Pecan developers, less documentation, fewer features, and a
complete gaping void when it comes to tests. Hooray!
My goal is to use this project as a place to play around until a feature worthy
of merging into pecan core emerges. Please help. Please.