Skip to content

Challenge using Sanic Framework base in Python 3 with Champions League datasets

Notifications You must be signed in to change notification settings

joaopaulolndev/ChampionsLeagueChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Champions League REST API Challenge:

Desafio Champions league, using Python 3 and Sanic Framework.

Champions League Challenge, using Python 3 and Sanic Framework.

Para realização deste trabalho tenha como referência a temporada 2017-2018 da Champions League. Recomenda-se a utilização do framework Sanic ou Django REST para o desenvolvimento desta API, assim como a ferramenta Postman para a criação das requisições HTTP. Devem utilizar o Git como ferramenta da controlo de versão.

For the accomplishment of this work reference has been made to the 2017-2018 season of the Champions League. It is recommended to use the Sanic or Django REST framework for the development of this API, as well as the Postman tool for the creation of HTTP requests. They should use Git as a version control tool.

Todos os recursos disponibilizados devem utilizar JSON, seja para receber ou entregar dados. As rotas podem receber um <parâmetro>. Todo parâmetro deve ser considerado como string.

All available resources must use JSON, either to receive or deliver data. Routes can receive a <parameter>. Every parameter must be considered as a string.

Requirements:

  • Python 3.6
  • Sanic Framework 18.12

Installing Sanic Framework

Installing sanic from the pip

pip3 install sanic

Installing sanic from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, sanic can be installed with:

conda install sanic

It is possible to list all of the versions of sanic available on your platform with:

conda search sanic --channel conda-forge

Run Instructions:

Run this code local > python3 main.py 
Open the Browser http://0.0.0.0:8000

Build:

Pode visualizar a aplicação nesse endereço.
You can view the application at this address.

https://champions-league-challenge.herokuapp.com/api/champions-league/

Resources:

Parameters:

Segue a documentação sobre utilização dos parametros das requisições
Follow the documentation about use parameters of requisitions

  • <season> : 2016-17, 2017-18...
  • group-stage/<season>/ : A, B, C, D, E, F, G, H
  • <team1> and <team2> : use somente a key do time / use only the team key :
    anderlecht, feyenoord, porto, benfica, sportinglisboa, cskamoskva, spartak, celtic, besiktas, donezk, maribor, qarabag, olympiacos, apoel, barcelona, liverpool, bayern, dortmund, leipzig, chelsea, tottenham, manutd, mancity, madrid, atletico, sevilla, roma, juventus, napoli, paris, monaco, basel

Patterns

Utilizado para boas práticas de programação em Python o PEP 8 -- Style Guide for Python Code como referência.

Used for good programming practice in Python the PEP 8 -- Style Guide for Python Code as a reference.

References:

About

Challenge using Sanic Framework base in Python 3 with Champions League datasets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages