Skip to main content

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.

Source Distribution

footpy_manager-0.6.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file footpy_manager-0.6.tar.gz.

File metadata

  • Download URL: footpy_manager-0.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for footpy_manager-0.6.tar.gz
Algorithm Hash digest
SHA256 37a16fec69363c8ac8086b869c7c2aebcbdf6eabae2c3272c2b0ff29ed38b8a8
MD5 b307599c2c451d60a182bbdaf08e261a
BLAKE2b-256 ada7ff51f5c3005760a975584e3a858465522a4ded2b89fa5dcbf62a3254570b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page