Git Product home page Git Product logo

tvapi's Introduction

TV Restful API

This application is a part of TV project group aimed to deliver great experience in browsing TV schedule.

This is REST API which main goal is to give mobile, web, desktop and other applications to get all data about schedule.

Application is based on Flask-restful, uses SqlAlchemy for communications with MySQL database.

Contents:

config.py

API server configuration. It consists of config dictionary with database management system info(mysql), database driver info(pymysql), database user and password, database server location and database scheme. Also provides info about database charset and host:port for API server to start. Last thing is database URI for SqlAlchemy connection.

database.py

Creates session for communication with database with bind engine created for database URI from configuration. After session initialization creates scoped session for use in application.

models

Models module. Classes bind tables from database.

resources

Resources module for use in Flask API. Classes use model and scoped session from database.py to execute queries on database and return results as JSON objects.

tvrestapi.py

Main application script. Creates Flask app and instantiates Flask API for this app, then add resources to that API from resources module and binds it to API routes. Then runs API server.

api_test.http

File contents test API requests for application testing.

secretpassphrase.py

File contains secret pass phrase for generating secret keys. Example: pass_phrase = "MY PASS PHRASE"

tvapi's People

Contributors

isokolovskii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.