简体   繁体   中英

user management framework for app engine python?

Here are a few user management frameworks I've read about:

  • GAE Sessions

  • Flask Login

  • gae-init (uses Flask)

  • Beaker

  • GAE Utilities

  • gmemsess

  • suas

Is there a library that is widely adopted in the python app engine community?

Thanks.

Edit: I should be more specific about what I am looking for. I am looking for a framework that will handle user registration, login, password reset, sticky sessions, custom fields for users, takes advantage of memcache for faster session lookup, and of course do all of this securely and simply.

I'd like to be able to specify my user model, and have an api such as:

// If this decorator fails, this function will return some value to signify the user is not logged in.
@user_management_api.authenticate_user
def some_func(user):
    // Get the user model data.
    name = user.name
    // etc.

// To return a session key to the application (ios, android, webapp, etc) for a sticky session.
@user_management_api.login
def login(user):
    return user_management_api.get_session_key()

def register():
    user_management_api.register_user()

@user_management_api.authenticate_user
def reset_user_password():
    user_management_api.reset_user_password()

The libraries we use for Google App Engine are webapp2 , jinja2 , WTForms , and babel for localization. Some frameworks just bundle these components and call it a framework, then I think it's better to take the components right aways and make your own framework since flask for instance mostly just combines these components to make its framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM