Skip to content

Make the two-book odds example reproducible with the PyPI wheel - #34

Merged
JacobiusMakes merged 2 commits into
mainfrom
mkt/pypi-price-pair
Dec 5, 2026
Merged

JacobiusMakes merged 2 commits into
mainfrom
mkt/pypi-price-pair

Conversation

@JacobiusMakes

Copy link
Copy Markdown
Owner

Reproduce the two-outcome example linked from the published PyPI package. Previously a soccer event with two one-sided book records and no draw could print a guaranteed-profit claim. The revised example rejects soccer before an account call, checks the two named teams within each bookmaker and separates an implied-probability gap from conditional payout arithmetic.

Add a fictional offline mode and an editable Jupyter notebook using the published 0.3.3 wheel. The PyPI project’s Changelog link now leads to the notebook. This PR changes the repository examples and their checks. It does not publish a package version.

Ten focused cases pass against the installed PyPI wheel, including the missing-draw regression, repeated selections, duplicate bookmakers, the break-even case and an offline run with a dummy environment key.

@JacobiusMakes
JacobiusMakes merged commit 30f6916 into main Dec 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant