May 1, 2012¶
Note
I co-organized the event and gave a talk!
spire.io stack¶
- By Jason Campbell, http://twitter.com/jxson
- One of the guys at http://spire.io
- Details at http://www.spire.io/posts/our-architecture.html
Stack:
- node.js
- coffeescript.js
- reddis
- Ruby (actually jruby)
- Lots of workers and controls of them.
Django and MongoDB: The State of Things¶
- By myself
- Slides forthcoming
Bringing down the system using Python to save lives¶
- By Randall Degges
The issue¶
- Syrian Uprising
- Military killing civilians
F@#$ the government!¶
- Syrian military monitoring civilian communications then dropping bombs
- How to protect people fighting a terrible regime?
- Shut down the system!
Using Voip to save lives¶
- Use Asterisk and pycall to make millions calls
- just a few bytes to make the call
Why Pyramid?¶
- By Michael R
- CTO of http://cars.com
- Known on IRC as ‘goodwill’
- Organized the PyCon Web Summit
Very flexible¶
- Any template engine
- Any ORM or ODM
Support¶
- Fast, 100% test coverage, well-documented
- Open source with strong community support
- Pay for what you get
What Pyramid doesn’t do¶
- Make choices for you
- No assumptions about the structure of your application
Features¶
- Creates a WSGI-compliant application
- Handles HTTP requests and responses
- views, requests, and more
- Awesome t-shirt
- Works with gevent for asynchronous behavior
Example¶
from paste.httpserver import serve
from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
return Response('Hello, World!')
if __name__ == '__main__':
config = Configurator()
config.add_view(hello_world)
app = config.make_wsgi_app()
serve(app, host='127.0.0.1')
Note
Finish rest of sample app
Boilerplate available¶
- Libraries
- Scaffolding (see http://pyramid.opencomparison.org/categories/application-scaffolding/)
- FormAlchemy can do roughly what Django admin