Best Flask open-source libraries and packages

Freesound oauth2 python flask

A simple web app based on flask and python to download original sound files from freesound.org using oauth2 authorizsation
Updated 6 years ago

freesound-oauth2-python-flask

A simple web app based on flask and python to download original sound files from freesound.org using oauth2 authorization. T

NOTE : If you want much more sophiscated and scalable search, filtering and effective downloads, use the freesound-python client library, you can also find some simple cases in the repo. An oauth2 example can be found here.

Code optimised from kemitche's repository.

Setup

  1. Install dependencies from requirements.txt. Ideally create a virtualenv and install the requirements

  2. Apply for your freesound API key from here and update it in the code

  3. [IMPORTANT] Set your "callback_url" as http://localhost:5000/freesound_callback

  4. Open terminal and navigate to your working directory and run the code.

In Mac

  $ export FLASK_APP=freesound_oauth2.py
  $ flask run

In Windows

  $ export FLASK_APP=freesound_oauth2.py
  $ python -m flask run
  1. Open your web browser with url http://localhost:5000 and authorise your app.

Find flask documentation here