Tools for Sports Betting
This package contains tools and functions to help sports bettors make more money!
Installation
You can install pybettor from PyPi with:
pip install "pybettor"
Running Tests
pip install pytest
pytest
Running Linting
pip install flake8
flake8 . --count --max-complexity=15 --max-line-length=128 --statistics
Examples
Implied Probability
Implied probabilities, or break-even win percentage, can easily be found with this function. Here is an example with given odds of -300 (US Odds), 2.5 (Decimal Odds), 4.9 (Decimal Odds), 7/1 (Fractional Odds).
implied_prob(-300, category="us")
[0.75]
implied_prob(2.5, category="dec")
[0.4]
implied_prob(7/1, category="frac")
[0.125]
Odds from Probabilities
Let’s say you believe a bet has a 75% chance to cover, what would the price be? Using the implied odds function can give you the price based on your probability.
implied_odds(0.75, category="us")
[-300]
implied_odds(0.75, category="dec")
[1.33]
implied_odds(0.75, category="frac")
['1/3']
implied_odds(0.75, category="all")
American Decimal Fraction Implied Probability
0 -300.0 1.33 33/100 0.75
Converting Odds
Let’s say you want to convert the American Odds you see on the screen (-175) to another type.
convert_odds(-175)
American Decimal Fraction Implied Probability
0 -175 1.57 4/7 0.636364
Special Thanks
- To the entire A.I. Sports team!
Metadata
Release files for pybettor 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybettor-1.1.3.tar.gz | 15.5 MB | Without provenance | Details for pybettor-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybettor-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for pybettor-1.1.3-py3-none-any.whl |
Total release size: 15.5 MB
Release files / pybettor-1.1.3.tar.gz
| Download URL | pybettor-1.1.3.tar.gz |
|---|---|
| Size | 15.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be97995e9c209474c2e02ec1a288aa2c5052614e7bcb052f050ec00beb344573
|
|
BLAKE2b-256 checksum How to use checksums |
2ddf8a9ae932e18936f3166a149552b3f605344d9a411bdd88018eac725d448e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / pybettor-1.1.3-py3-none-any.whl
| Download URL | pybettor-1.1.3-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30dbdd1b6882e1dd659d7a0400b1fe63ca4a011a78fee551b85c3597e578b2fd
|
|
BLAKE2b-256 checksum How to use checksums |
4098172c814e362e8e73381a9079b195b4258f522991249462f319050853c800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for pybettor 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.