Skip to main content

A wrapper for speedrun.com's new v2 API, as used by their new site

Project description

Speedrun.com v2 API wrapper

A WIP python wrapper for speedrun.com's new backend API.

WIP documentation for the API can be found in speedruncom-apiv2-docs

Usage

pip install speedruncompy, then import speedruncompy.

Default namespace contains all endpoints. Login flow in speedruncompy.auth. Other notable fields include enums and exceptions. data_structures is currently unused, but may be useful to help construct common data structures.

Authorisation

Note that this uses the API in the same way as https://speedrun.com. The v2 API does not currently accept the Bearer token the v1 API can use - but v2 is also not half-broken, and contains most of the new features SRC has added over the years.

As such, authorisation requires your username & password (and 2FA token). This means logging in requires a massive leap of trust, and so I encourage you to inspect the auth module, and if you're very concerned consider either changing your SRC password or manually get an authed PHPSESSID with your own requests, then use auth.loginSESSID.

Goals

Future versions will aim to assist further in development;

  • Flesh out data_structures to include most desired structures
  • Document more enums
  • Automatic pagination handling

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

speedruncompy-0.1.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

speedruncompy-0.1.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file speedruncompy-0.1.0.tar.gz.

File metadata

  • Download URL: speedruncompy-0.1.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for speedruncompy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec3d2611c4f14472e4547ae669ef4c5d693f83e89b2c0364b85df2580d7c570a
MD5 ce19d72fb9650d2f0ac98c4f6abf121b
BLAKE2b-256 afbe3c5996698c4193fb022948d0ecc3ec2ebf2418abfd03d255f4acad0b4283

See more details on using hashes here.

File details

Details for the file speedruncompy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for speedruncompy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93b366adf0dd8eca8cca1b59cc70f03d180d1f171adc5e51fd82a4120ff67b8a
MD5 409211381292b1db4e8d5192a21af427
BLAKE2b-256 4dc145c20a41fdd66b3a52ac6eea94d91486efe8aad9e70ff3856bca18b5ab0e

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