Torneira is a lightweight web framework build on top of Tornado. It’s name came from the idea of getting rapid and fluid development (‘torneira’ is the portuguese word for water tap).
Installation
Torrneira is available under PyPI. You can install using pip:
$ pip install torneira
Quick start
To build an app using torneira, you just need 3 files: one for your urls definitions (normally urls.py), one for settings (settings.py) and another for your handlers (handlers.py). The Application and HTTPServer stuff is already setup to you.
To start the server on por 8888, just run the following command in the base directory of your app:
$ torneira
In the directory demos/simple_app/ there is a minimal app already configured. If you want to see a more complex app that uses more available features, take a look at demos/more_complex_app.
To see all options that torneira command support, run:
$ torneira –help
Contributing
Send a pull request (preferred) or patches using git format-patch. Also, torneira comes with some tests in tests/ directory. Make sure you don’t break anything accidentally and also write some tests for your fix/feature.
Issues
Please report any issues on GitHub issues.
Dependencies
Tornado (tested with 2.3 and 2.4)
Optional dependencies:
Mako (if you want to use Mako templates instead of built-in tornado.template)
SQL Alchemy (only if using torneira.models)
On Python 2.5 we also need simplejson module.
Release files for torneira 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torneira-0.3.3.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torneira-0.3.3.macosx-10.4-x86_64.exe | Details |
Total release size: 117.7 kB
Release files / torneira-0.3.3.tar.gz
| Download URL | torneira-0.3.3.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6467991ee537c06fd2800b0bc05bf099fc28caf7bc82d0f553b96645c4a201bc
|
|
BLAKE2b-256 checksum How to use checksums |
d7760ca531f64b480d278463dd5c531518b1bbea5abe7a468df6ed2954c1240c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / torneira-0.3.3.macosx-10.4-x86_64.exe
| Download URL | torneira-0.3.3.macosx-10.4-x86_64.exe |
|---|---|
| Size | 98.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f77e9d56c4565f841d76008ee6cc49aa15a92b2458a73525586b5570f24c8178
|
|
BLAKE2b-256 checksum How to use checksums |
8f859c58cfe904e32c083f3d0694e5173adab14b73471aca9fc8a786864430bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |