Skip to main content

A Python module for aggregating Kabaddi data

Project description

kabaddi_api_logo

kabaddiPy - Data collection and analysis tools for professional Kabaddi leagues

FeaturesInstallationUsageContributingLicenseDocumentation

License PyPI version Python Versions


kabaddiPy is a Python module that provides tools for collecting and analyzing data from professional Kabaddi leagues. It uses web scraping techniques to gather information about teams, players, and match statistics from various online sources.

Installation

Please install the development version of kabaddiPy using pip:

pip install kabaddiPy

Deployed here: https://pypi.org/project/kabaddiPy/

Quick Function Overview

Function Overview

Usage

Here's a quick minimal example of how to get started with the kabaddiPy package:

import kabaddiPy

pkl = PKL()

# Get roster for a specific team for a specific season
team_roster = pkl.build_team_roster(team_id=3, season=1)
print(team_roster)

For more detailed usage instructions and API documentation, please refer to our documentation page.

For more complicated examples, check out the examples directory.

Features

KabaddiPy offers a comprehensive set of features for analyzing Pro Kabaddi League (PKL) data. Here are some of the key functionalities:

Season Standings

standings = pkl.get_standings(season=9, qualified=True)

Retrieve PKL standings for a specific season, with options to filter for qualified teams.

Match Data

season_matches = pkl.get_season_matches(season=6)

Get detailed information about all matches in a specific season.

Team Information

team_rank, team_value, team_per_match, team_raider_skills, team_defender_skills = pkl.get_team_info(season=6, team_id=29)

Access comprehensive team statistics, including rankings, absolute values for statistics, and per-match metrics. Additionally get a summary of the various Raider/Defender Skills employed throught the season by the team.

Player Information

player_stats_rank, player_stats_value, player_stats_per_match = pkl.get_player_info(player_id=660, season=9)

Retrieve detailed player statistics, including rankings, performance metrics, and Raider vs. Defender (RVD) data.

Match Details

match_detail_df, events_df, zones_df, team1_df, team2_df, breakdown_df = pkl.load_match_details(season=9, match_id='2895')

Access comprehensive match data, including events, team performances, and breakdown statistics.

Play-by-Play Data

pbp_events_data = pkl.load_pbp(season=9, match_id='2895')

Get detailed play-by-play data for specific matches.

Team Roster

team_roster_df = pkl.get_team_roster(season=9, team_id=3)

Generate a comprehensive roster for a specific team in a given season.

Visualization Tools

pkl.plot_player_zones(player_id=143, season=5, zone_type='strong')
pkl.plot_team_zones(team_id=4, season=5, zone_type='weak')
pkl.plot_point_progression(season=10, match_id=3163)

Create visual representations of player and team performance, including zone analysis and point progression charts.

Multi-Player Comparison

pkl.plot_player_zones_grid([143, 12, 211, 160], season=5, zone_type='strong', max_cols=2)

Generate grid visualizations for comparing multiple players' performances.

These features provide a robust toolkit for analyzing PKL data, from high-level season statistics to detailed player and match analyses.

The package offers both data retrieval and visualization capabilities, making it a versatile resource for kabaddi enthusiasts, analysts, and researchers.

Contributing

We welcome contributions to the Kabaddi Data Aggregator project! If you'd like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature-name)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin feature/your-feature-name)
  6. Create a new Pull Request

License

This project is licensed under the GPL-2.0 License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the various website owners for providing the data source

Contact

If you have any questions, feel free to reach out to Aniruddha Mukherjee or Bhaskar Lalwani or open an issue in the GitHub repository.


Made with ❤️ for Kabaddi enthusiasts and data analysts

Please ⭐️ this repository if you found it helpful! Your support is greatly appreciated. :)

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

kabaddipy-1.0.0.tar.gz (14.6 MB view details)

Uploaded Source

Built Distribution

kabaddiPy-1.0.0-py3-none-any.whl (17.6 MB view details)

Uploaded Python 3

File details

Details for the file kabaddipy-1.0.0.tar.gz.

File metadata

  • Download URL: kabaddipy-1.0.0.tar.gz
  • Upload date:
  • Size: 14.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for kabaddipy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0df786e449b28babb36bf320745dbd82f74169853886ce48feb00d44ec530c7c
MD5 7bac16bb98a7c1e4a304b790ab66df67
BLAKE2b-256 93694b9e9de60cf3f22492f3d26c75cbe91dc6b3d746cd82966d92695a92f0c3

See more details on using hashes here.

File details

Details for the file kabaddiPy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kabaddiPy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for kabaddiPy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb00a0d6772e85f40e3e6f8f939b25c7ce0ef86e21590b589e86c209324ec04e
MD5 a48e65b8e58080ea2c8a7fb52aadb925
BLAKE2b-256 bab2ecc41af9f2b46a2fd97a24da77da3c34086d1254de942e96bcebb98f29f0

See more details on using hashes here.

Supported by

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