Skip to content

fantasia-y/JolpicaKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JolpicaKit

JolpicaKit is a Swift Wrapper for the Jolpica API which is a replacement for the soon deprecated Ergast API. Check out their GitHub Page here!

Installation

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.gitfor 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

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

Usage

Coming soon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages