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") #incomplet 
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") #incomplet
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.24.tar.gz (3.2 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.24-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rugbydatabase-0.1.24.tar.gz
  • Upload date:
  • Size: 3.2 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.24.tar.gz
Algorithm Hash digest
SHA256 feec0104a5179104bd8dfaf44d3ccfdf03d7f92fb3cbd63476691f4913c3007d
MD5 ef9d20f9c8f2756f63a7d512607d7fc2
BLAKE2b-256 fb1531c052c1a9dea9d3459bfd63fa954aeb3246938c3abe457853aa58b13990

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rugbydatabase-0.1.24-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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 cef44880da86f30487ebaaabf46bebb49846ddfdeaff8a8215d9d369f428e32d
MD5 9349d88b3226f0f4f5451da34428243f
BLAKE2b-256 d3cbea8e0bb1852631339bad79ae6d6c691f82ee50b92fe0e08cb06c12a87b94

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