Skip to content

Instantly share code, notes, and snippets.

View rhythmize's full-sized avatar

Rhythm Chopra rhythmize

  • Microsoft
  • Prague, Czech Republic
View GitHub Profile
@rhythmize
rhythmize / Flasgger Test
Created May 25, 2018 13:26
Sample test for Flasgger to send data in formBody of GET request
from flask import Flask, request
from flasgger import Swagger
app = Flask(__name__)
Swagger(app)
@app.route('/')
def main_route():
"""
Test Endpoint
import gi
gi.require_version('Gst','1.0')
gi.require_version('GstVideo','1.0')
gi.require_version('GstRtspServer','1.0')
from gi.repository import Gst, GObject, GstRtspServer, GstRtsp
Gst.debug_set_active(True)
Gst.debug_set_default_threshold(3)