PageRenderTime 220ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/README.rst

https://github.com/marcelnicolay/torneira
ReStructuredText | 69 lines | 47 code | 22 blank | 0 comment | 0 complexity | 9833bdf2be751ed5ad5483e81b3a4eb4 MD5 | raw file
  1. Torneira - Lightweight Web Framework
  2. ====================================
  3. Torneira is a lightweight web framework build on top of Tornado_. It's name
  4. came from the idea of getting rapid and fluid development ('torneira' is the
  5. portuguese word for water tap).
  6. .. image:: https://secure.travis-ci.org/marcelnicolay/torneira.png?branch=master
  7. :alt: Build Status
  8. :target: https://secure.travis-ci.org/marcelnicolay/torneira
  9. Installation
  10. ------------
  11. Torrneira is available under PyPI_. You can install using pip:
  12. $ pip install torneira
  13. Quick start
  14. -----------
  15. To build an app using torneira, you just need 3 files: one for your urls
  16. definitions (normally urls.py), one for settings (settings.py) and another for
  17. your handlers (handlers.py). The Application and HTTPServer stuff is already
  18. setup to you.
  19. To start the server on por 8888, just run the following command in the base
  20. directory of your app:
  21. $ torneira
  22. In the directory `demos/simple_app/` there is a minimal app already configured.
  23. If you want to see a more complex app that uses more available features, take a
  24. look at `demos/more_complex_app`.
  25. To see all options that `torneira` command support, run:
  26. $ torneira --help
  27. Contributing
  28. ------------
  29. Send a pull request (preferred) or patches using ``git format-patch``. Also,
  30. torneira comes with some tests in `tests/` directory. Make sure you don't break
  31. anything accidentally and also write some tests for your fix/feature.
  32. Issues
  33. ------
  34. Please report any issues on `GitHub issues`_.
  35. Dependencies
  36. ------------
  37. * Tornado_ (tested with 2.3 and 2.4)
  38. Optional dependencies:
  39. * Mako_ (if you want to use Mako templates instead of built-in tornado.template)
  40. * `SQL Alchemy`_ (only if using torneira.models)
  41. On Python 2.5 we also need simplejson_ module.
  42. .. _GitHub issues: https://github.com/marcelnicolay/torneira/issues
  43. .. _Mako: http://www.makotemplates.org/
  44. .. _PyPI: http://pypi.python.org/package/torneira/
  45. .. _SQL Alchemy: http://www.sqlalchemy.org/
  46. .. _simplejson: http://code.google.com/p/simplejson/
  47. .. _Tornado: http://www.tornadoweb.org/