Skip to main content

A wrapper for speedrun.com's obscure 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;

  • Complete datatype coverage & testing to detect regressions & SRC-side additions
  • Document more enums
  • Convenience properties potentially exploiting cached data?

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.3.3.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

speedruncompy-0.3.3-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for speedruncompy-0.3.3.tar.gz
Algorithm Hash digest
SHA256 c2ee4ef1e4e7ff3f0e16372e4b8039d0c7df29454c1b24f14cc4e269d843d5ac
MD5 80c1a09599a42e591b32fe941e2742a1
BLAKE2b-256 0021a3ece51a690c78deb498cc5a24e3c2136db462faa92cd750ec3fa521b90f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speedruncompy-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba010c9d636dc0d2501a3fd96d89bf3d619a8fbf5b83c1a121dfe33a097f056e
MD5 a614b8a24053b377c5ff5c2cf1c6dbc5
BLAKE2b-256 bdf79a8119c3fd2e9add268fd2c9e90b437c46632bdbf916887ca6f74986a009

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