Skip to main content

Python SDK for weasl.in

Project description

Python Weasl SDK

This package is the Python integration for authentication powered by Weasl

Examples

Here are a couple examples you can use to get started:

Flask

from flask import Flask, jsonify, session
from weasl.integrations.flask import login_required

app = Flask(__name__)
app.config['WEASL_CLIENT_ID'] = 'YOUR CLIENT ID'


@app.route('/me')
@login_required
def user():
    return jsonify(session.current_user)

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

weasl-sdk-0.0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distributions

weasl_sdk-0.0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

weasl_sdk-0.0.2-py2-none-any.whl (4.1 kB view hashes)

Uploaded Python 2

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