Skip to main content

Silver Bulletin data API client — PELE soccer ratings, match forecasts, polls

Project description

silver-bulletin-api

Python client for the Silver Bulletin data API — PELE international soccer ratings, match forecasts, and polling data.

An API key is required (issued by the maintainer).

Setup

pip install silver-bulletin-api
export SB_API_KEY=sb_..._your_key   # put this in your shell profile

Use

from sb_api import SB
sb = SB()                       # returns pandas DataFrames if pandas is installed

sb.pele.ratings()               # current PELE ratings table
sb.pele.teams("kor")            # find a team
sb.pele.upcoming("BRA")         # upcoming match forecasts
sb.polls.average("trump approval")   # published polling averages

Teams accept FIFA codes or names; dates accept 1993, 1993-06, or 1993-06-02. Endpoints your key doesn't cover raise a clear error.

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

silver_bulletin_api-1.9.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silver_bulletin_api-1.9.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file silver_bulletin_api-1.9.0.tar.gz.

File metadata

  • Download URL: silver_bulletin_api-1.9.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for silver_bulletin_api-1.9.0.tar.gz
Algorithm Hash digest
SHA256 fa150b15745d29049eecdaf1f0ea87a2f895beb09ec5839a0ee04ea64af8eca3
MD5 e97d2290d042990c9c30c4d63b7e2243
BLAKE2b-256 bc5331bdc96975869ae1d02b435b9d4b79d614e6d8cc22fe24bdda7022990c7d

See more details on using hashes here.

File details

Details for the file silver_bulletin_api-1.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for silver_bulletin_api-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0deecead78e04a2eb7181148e13ab5f77d47a644378616cc4f8b3c46d9af4199
MD5 9e5a42110a3bf4e706ac0cc85599e9e1
BLAKE2b-256 06102319a5f51442a74faa83fd8193a039a76a1053ff064c538ef1ce8f3a1532

See more details on using hashes here.

Supported by

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