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.7.1.tar.gz (12.3 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.7.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: silver_bulletin_api-1.7.1.tar.gz
  • Upload date:
  • Size: 12.3 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.7.1.tar.gz
Algorithm Hash digest
SHA256 c981e6e44b943ed207955964e23889ac88084939f87df0f20d067aa067db1f1c
MD5 d5afa0bfcb2429c3b8e0b930eb53cf88
BLAKE2b-256 32a193aa6c2bc40ae75a4bc3bd619bd9d515d9ffc278a4227130ec0c255b7419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for silver_bulletin_api-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9020a28f4e31628510b9c4a661ab124a6f2fb1a11c6c879e8711415b00bba2fd
MD5 bcbb2bbd3ec87b4bb27aaf788eb4b0e3
BLAKE2b-256 31fa16954d326f359e63e529525641f663ebcd79696e9c0bbc8346dbb4494747

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