Skip to main content

automates simple bettor tasks

Project description

PyPI version fury.io Lifecycle: experimental Twitter Follow

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

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

pybettor-1.1.2.tar.gz (15.5 MB view details)

Uploaded Source

Built Distribution

pybettor-1.1.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file pybettor-1.1.2.tar.gz.

File metadata

  • Download URL: pybettor-1.1.2.tar.gz
  • Upload date:
  • Size: 15.5 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pybettor-1.1.2.tar.gz
Algorithm Hash digest
SHA256 97e6e16ee3f4524d69f6055b65ace23004f864745141ff7d559971b6647bfbeb
MD5 195d571d6e9aa10c5167a0cb4480465f
BLAKE2b-256 af01a7caf96a374a9aa935edefbfdd336ba59ed62a9ac784d08eaa937e77f548

See more details on using hashes here.

File details

Details for the file pybettor-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pybettor-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pybettor-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1459cf0192a4395e124e4eca62b2e1ad30b70d2048672b3d5692cda211acca24
MD5 378babb33212d2d4b58559ee7fc10380
BLAKE2b-256 44ff56555c85614ad9d7f23a05cb36e3b5ae797bc3c59756a1eeae6b96089f60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page