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.1.0.tar.gz (15.2 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.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pitsidev5-0.1.0.tar.gz
Algorithm Hash digest
SHA256 18bab839df3e51560ae483fbed5810a11fba19b2c917b829b7b899e663ea436c
MD5 e08a5d3df98edfb02fd72037ee96ce0c
BLAKE2b-256 7314fd5aa39642532046a55b2beae4dc0503a5261bfe248c087d3e7b7b72aaac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pitsidev5-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d70f0b70484c9aee17a18ff6076db35f7ff0941a23dcb254c3a58de3b15343a
MD5 69da9bee8f47b1c1ad9bcb3eb9670a34
BLAKE2b-256 d68056c773b953e4788d5dab8edb01c2c577758633f621dfe7d9b360140f0e77

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