penaltyblog is a production-ready Python toolkit for football analytics β built for speed, clarity, and real-world impact.
- β½ Scrape Data β Collect match statistics from sources like FBRef, Understat, Club Elo, and Fantasy Premier League.
- π Model Matches Efficiently β High-performance implementations of Poisson, Bivariate Poisson, Dixon-Coles, and other advanced statistical models, optimized with Cython for rapid analysis.
- π° Bet Smarter β Precisely estimate probabilities for Asian handicaps, over/under totals, match outcomes, and more.
- π Rank Teams β Evaluate team strengths with sophisticated methods including Elo, Massey, Colley, and Pi ratings.
- π Decode Bookmaker Odds β Accurately extract implied probabilities by removing bookmaker margins (overrounds).
- π― Fantasy Football Optimisation β Mathematically optimize your fantasy football squad to maximize performance.
Take your football analytics and betting strategy to the next level with penaltyblog π
pip install penaltyblog
Learn more about how to utilize penaltyblog
by exploring the official documentation and detailed examples:
- Scraping football data
- Predicting football matches and betting markets
- Estimating implied odds from bookmaker prices
- Calculating Massey, Colley, Pi, and Elo ratings
- Calculating metrics such as Ranked Probability Scores
Unlike many football analytics resources that are academic, one-off, or hard to scale, penaltyblog
is designed from the ground up to be production-ready, performance-optimized, and practically useful.
It combines advanced statistical models, efficient implementations (via Cython), and real-world workflows β from scraping public data to modelling outcomes and optimising fantasy teams.
Built by Martin Eastwood, who has worked with football clubs, governing bodies, and player agencies worldwide, penaltyblog
is the foundation for football analytics.
Whether you're a club analyst, independent researcher, or just data-curious, penaltyblog
gives you the tools to go from data to insight β fast, flexibly, and with confidence.
If you're working at a football club, agency, or organisation and want help applying these tools to your own data or workflows, I'm open to:
- π Integration support
- π§ Custom model development
- π§ Technical collaboration on football analytics projects
β‘οΈ Get in touch here