Skip to content

Generalise fastf1 proxy #1

@psychemedia

Description

@psychemedia

The fastf1 CORS proxy was generated using a prompt to claude.ai and inspired by the monkey patching trick used by requests-cache to patch requests and add cacheing abilities to it without having ro fork the requests package itself.

The code included the fastf1_proxy is currently tied in to fastf1 but could presumably be simplified to produce:

  • a package that can add a proxy to requests in the absence of requests-cache;
  • a package that can add a proxy to requests in the presence of requests-cache.

Also, the fastf1 package could be iterated to use the fastf1 logger, and then either added as a monkey patch package to fastf1 or integrated more deeply within the fastf1 requests machinery.

I suspect that the fastf1 live timing requests don't work in their current form in emscripten environments, but if they did, would they need proxying too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions