Skip to main content

Python package to access rugby datasets.

Project description

rugbyDatabase

Python package to access rugby datasets.

Install

pip install rugbyDatabase

Usage

from rugbyDatabase import get_unique_teams

teams = get_unique_teams()
print(teams)

#OUTPUT
[['Algeria', 101], 
 ['Andorra', 102], 
 ['Argentina', 103], 
 ['Australia', 104]]
from rugbyDatabase import get_home_teams

home_teams = get_home_teams()
print(home_teams)
from rugbyDatabase import get_teams_by_home_team_form

teams = get_teams_by_home_team_form("France")
print(teams)
from rugbyDatabase import get_players_by_team

france_players = get_players_by_team(102) # team_id instead of team name
print(france_players)
from rugbyDatabase import get_player_important_info

info = get_player_important_info("Antoine Dupont")
print(info)

#OUTPUT
{
  'player_id': 12345,
  'player_name': 'Antoine Dupont',
  'team': 'France',
  'team_id': 101,
  'position': 'Scrum-half',
  'weight_kg': 85,
  'height_cm': 174,
  'carries': 12.4,
  'metres_carried': 78.2,
  'tries': 0.6,
  'tackles_made': 9.1,
  'turnovers_won': 1.3,
  'penalties_conceded': 0.8,
  'yellow_cards': 0.1,
  'red_cards': 0.0
}

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

rugbydatabase-0.1.22.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rugbydatabase-0.1.22-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file rugbydatabase-0.1.22.tar.gz.

File metadata

  • Download URL: rugbydatabase-0.1.22.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for rugbydatabase-0.1.22.tar.gz
Algorithm Hash digest
SHA256 d937fd1f7f4ff68e7c0be5d26bf82aef19cb4f413133e8fade251c1bc3c07a04
MD5 741983d711e62ce47152216d842e0e94
BLAKE2b-256 0158c8cb6f766d05c5dc68f153209936146f2436c25d9d4f132b175da3045e01

See more details on using hashes here.

File details

Details for the file rugbydatabase-0.1.22-py3-none-any.whl.

File metadata

  • Download URL: rugbydatabase-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for rugbydatabase-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 7f245556cf76dbe7632af168b536d0bb12961d2a5b4234798572759bcb78d17d
MD5 b596b5e8516453fa5caf47f4b02b40d5
BLAKE2b-256 4ff6c8d45e6d21e68fe1b5d7a9345214d03df55fa62f926d8153e36704cfa4d8

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