Skip to main content

Adds OpenVidu support to your Flask application

Project description

Flask-OpenVidu

https://img.shields.io/pypi/v/flask-openvidu.svg https://img.shields.io/travis/marcsello/flask-openvidu.svg Documentation Status https://api.codacy.com/project/badge/Grade/2e8c279f75694c92892cb732b574e09c

Adds OpenVidu support to your Flask application through PyOpenVidu.

Simple example

A basic Flask app that lists the currently active sessions on the server:

from flask import Flask
from flask_openvidu import OpenVidu

app = Flask(__name__)

app.config["OPENVIDU_URL"] = "https://example.com:4443/"
app.config["OPENVIDU_SECRET"] = "your_secret"

ov = OpenVidu(app)

@app.route('/sessions')
def sessions():
    text = ""
    for session in ov.connection.sessions:
        text += session.id + "\n"

    return text

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2020-04-29)

  • First release on PyPI.

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

flask-openvidu-0.1.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

flask_openvidu-0.1.0-py2.py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 2 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