Skip to main content

Usernado is a Tornado extension to make life easier..

Project description

Usernado is a Tornado extension to make life easier.

Installation

You can install Usernado as usual with pip:

pip install usernado

Example

from usernado import Handler

# Create User model in advance
from database.models import User


class RegisterUser(Handler.Web):
    def get(self):
        self.render("register.html")

    def post(self):
        username = self.get_escaped_argument("username")
        password = self.get_escaped_argument("password")

        self.register(User, username, password)

As you see Handler is a Facade. you can use it to handle your requests as you wish.

Resources

TODO

  • Send and broadcast for websockets
  • Abstracted authentication methods
  • Authenticaion methods should return True/False
  • Add username & password to test login
  • Add pluralize (str_plural) uimodule
  • Add diff_for_human (humanize) decorator
  • Add third party authentication abstract methods
  • Add pagination

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usernado-0.0.7.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

usernado-0.0.7-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page