Skip to main content

A VEX Robotics scouting and analytics library for offline match analysis

Project description

pitsidev5

A Python library for VEX Robotics scouting and advanced match analytics.

pitsidev5 provides tools to fetch data from the RobotEvents API and compute performance metrics like OPR, DPR, ELO, and more — all computed offline from match data.


Features

Data Collection

  • Client for the RobotEvents API
  • Built-in caching to reduce API calls and rate limits
  • Batch team data fetching

Event Analytics

  • OPR (Offensive Power Rating)
  • DPR (Defensive Power Rating)
  • TrueOPR / TrueDPR
  • EPR / APR (Adjusted Power Rating)
  • ELO ratings (currently in the works)
  • Strength of schedule (SOS)
  • Alliance synergy and partner strength

Team Analytics

  • Win/loss/tie record and win rate
  • Average match score and performance margin
  • Carry power and defensive power
  • Robot scoring capability (peak performance)
  • Alliance independence and consistency rating
  • Clutch performance and close-match analysis
  • Autonomous win point (AWP) tracking

Match Prediction

  • Win probability using ELO
  • Score prediction using OPR

Utilities

  • CSV and JSON export
  • Score normalization
  • Batch team analysis
  • Tournament simulation (Monte Carlo)

Installation

pip install pitsidev5

Quick Example

from pitsidev5 import RobotEvents, TeamAnalyzer, EventAnalyzer

re = RobotEvents(api_key="YOUR_API_KEY")

# Fetch team data
team_data = re.fetch_team_data("1234A")

# Analyze team
ta = TeamAnalyzer("1234A", team_data)
print(ta.summary())

# Analyze event
matches = re.get_event_matches(event_id=12345)
ea = EventAnalyzer(matches)

print(ea.opr())
print(ea.elo_ratings())

Notes

  • All analytics are computed offline from match data you provide.
  • Requires a RobotEvents API key.
  • Early release and not yet tested in live competition environments.

License

MIT License


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

pitsidev5-0.2.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

pitsidev5-0.2.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pitsidev5-0.2.0.tar.gz.

File metadata

  • Download URL: pitsidev5-0.2.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pitsidev5-0.2.0.tar.gz
Algorithm Hash digest
SHA256 113aa01f854529239e6eb446197f2f6bacca2ad90724335545512c20f140cd6a
MD5 5135c84e9156a53a59c69b220a9bf4d5
BLAKE2b-256 092cc8f240cb01a006de3b3c4c5919276a1a2b2472c5deb711b6a28ab609e292

See more details on using hashes here.

File details

Details for the file pitsidev5-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pitsidev5-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pitsidev5-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc504cbbb45dbb12bd9bbc7114d2abb71c7ae85a1997237c9692b8c9ea291da
MD5 a8c3a3c289ad8a80a952da2228bdf1f0
BLAKE2b-256 2e59ba1f1d435721c17f93353e99c63d01edb581f096de30ca8d125fca95d694

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