pybet365
Python Wrapper for Bet365 API
Free software: MIT license
Documentation: https://pybet365.readthedocs.io.
Installation
From source
$ git clone https://github.com/leonkozlowski/pybet365.git
$ cd pybet365
$ python3.8 -m venv venv
$ source venv/bin/activate
$ pip install -e .
# For test dependencies
$ pip install -r requirements_dev.txt
From build
$ pip install pybet365
Features
GET Request to Upcoming Events Endpoint
from pybet365 import Bet365
client = Bet365(api_host="someHost", api_key="someKey")
upcoming_events = client.upcoming_events(sport_id="49")
print(upcoming_events)
Response
{
"success": 1,
"pager": {
"page": 1,
"per_page": 50,
"total": 102
},
"results": [
{
"id": "88107197",
"sport_id": "92",
"time": "1586480400",
"time_status": "0",
"league": {
"id": "10036652",
"name": "Moscow Liga Pro"
},
"home": {
"id": "10423098",
"name": "Evgenii Kryuchkov"
},
"away": {
"id": "10433218",
"name": "Aik Lulikyan"
},
"ss": null,
"our_event_id": "2297143",
"updated_at": "1586478473"
}
]
}
Access response objects with dot notation
from pybet365 import Bet365
client = Bet365(api_host="someHost", api_key="someKey")
upcoming_events = client.upcoming_events(sport_id="49")
print(upcoming_events.success)
>>> 1
Access of array type results objects
from pybet365 import Bet365
client = Bet365(api_host="someHost", api_key="someKey")
upcoming_events = client.upcoming_events(sport_id="49")
print(upcoming_events.results[0].id)
>>> "88107197"
Environment Variables
- BET365_HOST
$ export BET365_HOST=yourHost
- BET365_KEY
$ export BET365_KEY=yourSecretKey
Testing
# Test with pytest
make tests
# Lint with flake8
make lint
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-07-25)
First release on PyPI.
Metadata
Release files for pybet365 0.1.1
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 |
|---|---|---|---|---|
| pybet365-0.1.1.tar.gz | 23.1 kB | Without provenance | Details for pybet365-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybet365-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pybet365-0.1.1-py2.py3-none-any.whl |
Total release size: 40.1 kB
Release files / pybet365-0.1.1.tar.gz
| Download URL | pybet365-0.1.1.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53ac7c811372e885e4a9c7b34882d2f15ee8079fa67908f81236b3202e3dc1ce
|
|
BLAKE2b-256 checksum How to use checksums |
c4d4572cb46ceffe2962e8458c8166aaef86e09b4df937f3121aea7d406fe0e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
|
Release files / pybet365-0.1.1-py2.py3-none-any.whl
| Download URL | pybet365-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
34377f968b9f4bdd2980f940525294259b94162aa874dc8e222ecd6211adb156
|
|
BLAKE2b-256 checksum How to use checksums |
d7060a69b0a49979b1b234f33c042ab3ee7a2b98f514927be751a9e92f47d6dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
|
Security for pybet365 0.1.1
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.