Contents

fantasia-y/jolpicakit

JolpicaKit is a Swift Wrapper for the Jolpica API which is a replacement for the soon deprecated Ergast API.

Requirements

  • iOS 13.0+ / macOS 10.15+ / tvOS 13+ / watchOS 6+ / visionOS 1+
  • Xcode 16+
  • Swift 6+

Swift Package Manager

If you're using Xcode, follow this guide to JolipcaKit to your Project. Use `https://github.com/fantasia-y/JolpicaKit.git`for the url.

Getting started

After adding the dependency you'll be able to import the package and initialize the client.

// Jolpica.swift

import JolpicaKit

let jolpica = Jolpica()

Documentation

Documentation for the API can found at the Jolpica API GitHub Page.

Configuration

At the moment no configuration is needed, just install the dependency and you're ready to go. This section will change in the future as soon as the Jolpica team finished implementing access tokens.

Logging

You can however enable logging

let jolpica = Jolpica(
    enableLogging: true
)

TODO

  • [X] Switch to swift-log for linux support
  • [X] Query Parameters (limit, offset)
  • [X] More control over caching
  • [ ] Tests

Usage

Coming soon

Package Metadata

Repository: fantasia-y/jolpicakit

Default branch: main

README: README.md