Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A Python package to manage matches of football.

Project description

Footpy Manager

This project able developer to get insights from matches of football. In the following lines I will show an example of usage.

Getting Started

from footpy_manager import Team, Match, FootpyManager

team1 = Team('Internacional', 'Brazil')
team2 = Team('Gremio', 'Brazil')
team3 = Team('Flamengo', 'Brazil')

match1 = Match(team1, team2, 2, 0, '01-01-2020')
match2 = Match(team3, team2, 1, 2, '01-01-2020')
match3 = Match(team1, team3, 0, 0, '01-01-2020')

matches = [match1, match2, match3]

footpy = FootpyManager()

for match in matches:
    footpy.insert_match(match)

print(footpy.match_with_more_goals())
print("-----------------------------")
print("The mean of goals made by {} is {}".format(team1.name, footpy.mean_goals_made(team1)))

Prerequisites

What things you need to install the software and how to install them

pandas 1.05>

Installing

To install the package you must run this command line.

pip install footpy-manager

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Repository

  • The code of the project can be found here

Acknowledgments

  • The Udacity to encourage the students to share our projects.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for footpy-manager, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size footpy_manager-0.6.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page