Skip to main content

A tool to parse football game stats.

Project description

PylonParser

A tool to parse football game stats.

Installation

This project uses Poetry for dependency management. To install the project and its dependencies, run:

pip install pylonparser

Usage Provide instructions on how to use your project. Include code examples if possible.

import pandas as pd
from pylonparser.parser import get_game_stats

game_stats = get_game_stats("https://www.pro-football-reference.com/boxscores/202009100kan.htm", "player_offense")
df = pd.DataFrame(game_stats)
print(df.head())           player        id team pass_cmp pass_att pass_yds pass_td pass_int pass_sacked  ... rush_td rush_long targets rec rec_yds rec_td rec_long fumbles fumbles_lost
0  Deshaun Watson  WatsDe00  HOU       20       32      253       1        1           4  ...       1        13       0   0       0      0        0       0            0
1   David Johnson  JohnDa08  HOU        0        0        0       0        0           0  ...       1        19       4   3      32      0       15       0            0
2    Duke Johnson  JohnDu00  HOU        0        0        0       0        0           0  ...       0         7       1   0       0      0        0       0            0
3     Will Fuller  FullWi01  HOU        0        0        0       0        0           0  ...       0         0      10   8     112      0       31       0            0
4    Jordan Akins  AkinJo00  HOU        0        0        0       0        0           0  ...       0         0       2   2      39      1       20       0            0

Testing This project uses pytest for testing. To run the tests, use:

Contributing Contributions are welcome! Please read the contributing guidelines first.

License This project is licensed under the MIT License. See the LICENSE file for details.

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

pylonparser-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

pylonparser-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pylonparser-0.1.2.tar.gz.

File metadata

  • Download URL: pylonparser-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for pylonparser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 387e5a9e55998fd9e6531cd356484d75998e3f16b671cfb76819405ee06a24e3
MD5 ba60d3e703c0ce68673acd4188121625
BLAKE2b-256 82ab533a648b3b2b7a00d4204dd909a450918fdfa3cb03eb8cd05c62d1b26f1f

See more details on using hashes here.

File details

Details for the file pylonparser-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pylonparser-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for pylonparser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 236778aaa0e197fddf2372dc04fb28933d3d09410b0a9ae9537420f1e053c267
MD5 60c1ae7d6361db7b83942f8ca090bbde
BLAKE2b-256 9e38e07cafad0d7be9b474c27a2207f5699baeca33f8db70689aa3bc820ccf02

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