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.2.1.tar.gz (614.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.2.1-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: confpickem-0.2.1.tar.gz
  • Upload date:
  • Size: 614.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.2.1.tar.gz
Algorithm Hash digest
SHA256 b7aeb63b5fc47b35450c0bd1cf409e23bdb99602d40832ae3f74ca03f6e537a1
MD5 c6b0d231303258236d35cef2e5ed398a
BLAKE2b-256 12952a6e9ee889402864e96e741e976aa818f2847d2c6423b7bca996126eec67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: confpickem-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 53.3 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8e944d8a122ae963937f7b73cad91f77ce74e0f519f586afbeb7b23d404a0f
MD5 09620444e54e2b190c4ac29e73eebbaa
BLAKE2b-256 98c83ab7edd4fb991ef43655a4570e84f574c9fbc9f766df88b1646d4a0655db

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