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.23.tar.gz (3.3 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.23-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rugbydatabase-0.1.23.tar.gz
  • Upload date:
  • Size: 3.3 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.23.tar.gz
Algorithm Hash digest
SHA256 f213d1613db0ba40d9e997efa28485a22d31197897cce17032e5fc83e165627e
MD5 1fa3bea8bfe92b09bfe76d66121893bc
BLAKE2b-256 6a643a0b70653a88d1ba9bde06d057af543efd5000b30747969975c1c3c58eda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rugbydatabase-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.23-py3-none-any.whl
Algorithm Hash digest
SHA256 19137b36dd6f467db3e299b7310150dafc34f168d75bb3eb642f368b1b85b4ec
MD5 bdce9e98c43786819c0e024d784b3ce8
BLAKE2b-256 1a6e649c96e60e606a57c4298cea0554a132b7c0359f6dadc715db8e3078451f

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