Simulation-based tool to analyze Confidence Pick Em pools
Project description
confpickem - NFL Confidence Pick'em AnalyzerA Python package for analyzing and optimizing picks for NFL Confidence Pick'em pools. This package provides tools for: - Scraping Yahoo Pick'em league data - Analyzing pick distributions and trends - Simulating outcomes and optimizing picks - Evaluating different picking strategies |
Installation
You can install the package using pip:
pip install confpickem
Quick Start
Command Line Interface (Recommended)
The easiest way to use confpickem is through the command-line tools:
# Optimize your picks for mid-week with live odds
confpickem --week 10 --mode midweek --live-odds
# Check win probabilities for all players
confpickem-win-probability --week 10 --live-odds
# Update player skills from historical data
confpickem-player-skills update --weeks 3,4,5,6,7,8,9 --week 10
Installation: Install the package to get these commands:
pip install -e . # From project root
See the CLI Documentation for full details.
Python API
You can also use the package programmatically:
from confpickem import YahooPickEm, ConfidencePickEmSimulator, run_simulation
# Initialize scraper with your league info
yahoo = YahooPickEm(
week=1,
league_id=YOUR_LEAGUE_ID,
cookies_file='cookies.txt'
)
# Run simulation with actual picks
simulator, stats = run_simulation(yahoo)
# Print expected points and win percentages
print("\nExpected Points by Player:")
print(stats['expected_points'])
print("\nWin Percentages:")
print(stats['win_pct'])
Features
🎯 Unified CLI Tools
- optimize.py - Comprehensive pick optimization with live odds support
- win_probability.py - Monte Carlo win probability calculator
- player_skills.py - Historical performance analysis and skill modeling
📊 Yahoo Data Scraping
- Scrape pick distributions and crowd confidence levels
- Track actual picks and results from your league
- Cache responses to avoid excessive requests
🎲 Simulation and Analysis
- Monte Carlo simulation of game outcomes
- Player skill modeling and analysis
- Pick optimization algorithms
- Risk/reward and game importance analysis
🔴 Live Vegas Odds Integration
- Real-time betting line integration via The Odds API
- More accurate win probabilities than Yahoo spreads
- Automatic fallback to Yahoo data when API unavailable
🧠 Strategy Optimization
- Evaluate different picking strategies
- Optimize confidence point assignments
- Mid-week re-optimization with completed game results
- Fast mode for quick decisions (~85% accuracy, 10x speed)
Dependencies
- Python ≥ 3.8
- requests
- pandas
- numpy
- beautifulsoup4
- scipy
Documentation
- CLI Tools Guide - Comprehensive guide for command-line tools
- CLI Tools (in package) - Detailed CLI documentation
- GitHub Repository - Source code and issues
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file confpickem-0.2.0.tar.gz.
File metadata
- Download URL: confpickem-0.2.0.tar.gz
- Upload date:
- Size: 618.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e35f90db89c35fff44fe69160f04fbf9296cf547811347c34a700e5381acf894
|
|
| MD5 |
d5c5cb122a3a26b98b309326954717de
|
|
| BLAKE2b-256 |
3cc0e69a5c6757f0b085443decba143c31235a24ba1a00e3b8614ee5e533f7b8
|
File details
Details for the file confpickem-0.2.0-py3-none-any.whl.
File metadata
- Download URL: confpickem-0.2.0-py3-none-any.whl
- Upload date:
- Size: 52.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9dae3c0d9030a217321b2279f6759bcafdcaf746a79bd0a30d3c15ee539f89c
|
|
| MD5 |
16cfc2f857951be6d80fb7f7a0069883
|
|
| BLAKE2b-256 |
5042c51404e503b98bad1ef85bd73a39c70141d33c0b0d71b2927f06e40455c0
|