Usernado
Makes it Easy to Manage Tornado :tornado: Applications
Explore the docs »
Why Usernado
I'm using 🌪️ every day. I really like it 😍 . Besides of all advantages of Tornado, it's not a full-stack framework, and I had to put all the pieces of the puzzle together every day 😩! So this is my attempt to follow DRY(Don't Repeat Yourself) principle. This is how the Usernado was born.
Features
-
REST support ⚡
-
Websocket easier than ever ⚡
-
ORM agnostic authentication ⚡
-
Humanize datetime in templates ⚡
-
Better exception printer thanks to tornado-debugger ⚡
Installation
Install either with pip or poetry.
pip install usernado
poetry add usernado
Or optionally you can install from github using
pip install git+https://github.com/reganto/usernado
Usage
Hello Usernado
from usernado.helpers import api_route
from usernado import APIHandler
from tornado import web, ioloop
@api_route("/hello", name="hello")
class Hello(APIHandler):
def get(self):
self.response({"message": "Hello, Usernado"})
def make_app():
return web.Application(api_route.urls, autoreload=True)
def main():
app = make_app()
app.listen(8000)
ioloop.IOLoop.current().start()
if __name__ == "__main__":
main()
For more examples please Check out examples.
Roadmap
- Send and broadcast for websockets
- Abstracted authentication methods
- Authenticaion methods should return True/False
- Add diff_for_human (humanize) decorator
- Add api_route for API handlers
- Add username & password to test login
- Add pluralize (str_plural) uimodule
- Add pagination 🔗
Contact
Email: tell.reganto[at]gmail.com
Metadata
Release files for usernado 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usernado-0.3.2.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usernado-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / usernado-0.3.2.tar.gz
| Download URL | usernado-0.3.2.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f729dbdc70af62892a9f41957c58f3108fbfb5a1e1aeb55c3254fe09034e311
|
|
BLAKE2b-256 checksum How to use checksums |
14f76c32424124bc0706ccecac29a4823ec1e63d4b56af672ac618bf2e7be0d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-46-generic
|
Release files / usernado-0.3.2-py3-none-any.whl
| Download URL | usernado-0.3.2-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1d8b0330853531ba86e73de55b3040a4baf87704228b0adf77d2b1fc699a999
|
|
BLAKE2b-256 checksum How to use checksums |
bd073772ed4bd5dc3420e1bf6584fe6768c8f6f51e03b4e81435afe70ce637f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-46-generic
|