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.2.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.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pitsidev5-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b425fe1a2e536545807d3f785f6e1bc79422587aa220f99f77291bdd4ed75c67
MD5 8f023cfac7adcec81cbf0174199c4fb1
BLAKE2b-256 8568ee0a70447345ea1a303c15273707cca625cf787a4ecd06e7a8343063f7c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pitsidev5-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f54ee98ad9c409cdff67c9de1d6ac13e04e39f652bb592d56f9b6206794ad9e
MD5 5916eda9f28a64f5613bda876c1b7399
BLAKE2b-256 74818ab3036c1a58533cd1948d7113337aef1eddede323ff94583d84fefefd63

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