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.4.0.tar.gz (10.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.4.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: silver_bulletin_api-1.4.0.tar.gz
  • Upload date:
  • Size: 10.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.4.0.tar.gz
Algorithm Hash digest
SHA256 d549f385ec3a132f010329ea0284a2956f4df72d28f44ed5028e5b277d4384f5
MD5 934131b5b29c48eec70c48c9202c5083
BLAKE2b-256 7bd59137dd7f559b38e4d6810019931c41af6972ab4820af327f35632eaa133e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for silver_bulletin_api-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b169d3fce391c1031d8349f4b9892ebebae37212857f25bbe81ed8245311d3d7
MD5 3e784d6e1269125c1dd3e0a125793dba
BLAKE2b-256 8bf08284b677a445337f58b35954a407420cbb3ad49a1448c16fd6681e0fff62

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