Skip to main content

Simulation-based tool to analyze Confidence Pick Em pools

Project description

confpickem logo

confpickem - NFL Confidence Pick'em Analyzer

A 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

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

confpickem-0.3.0.tar.gz (623.4 kB view details)

Uploaded Source

Built Distribution

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

confpickem-0.3.0-py3-none-any.whl (60.1 kB view details)

Uploaded Python 3

File details

Details for the file confpickem-0.3.0.tar.gz.

File metadata

  • Download URL: confpickem-0.3.0.tar.gz
  • Upload date:
  • Size: 623.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for confpickem-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b5ca4d66ca94314601f6ae0c8f452bc0a99890b3d33c847e4cf3f8131e02a6f0
MD5 39a5d9dea0dfa9755ba9b2f8197759b9
BLAKE2b-256 44dcab1172762acf60f62cf587bd927ccad3a7bc668e520897cb8f019b2301a7

See more details on using hashes here.

File details

Details for the file confpickem-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: confpickem-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 60.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for confpickem-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d46d2dba98bd8cb449208dae363e63a07a1e1ff8830c2c647ef8f861812cf4
MD5 09b2dab41a359c7de8d0fd01b5ffdfdc
BLAKE2b-256 867d9bc4b0b92baa0c1abff77239984f71e8440bdccf296e73644db444ef3bd3

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