Swiftpack.co -  Package - alextall/DataKit
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
alextall/DataKit
Combine-ified persistence and networking APIs
.package(url: "https://github.com/alextall/DataKit.git", from: "v0.3.0")

DataKit

DataKit consists of several modules that add a Combine interface to CoreData and URLSession. These modules can be used individually or together as needed.

CoreDataClient: A CoreData stack with convenience methods for the basic CRUD operations. Includes support for NSManagedObjects that conform to Codable.

HTTPClient: A URLSession wrapper with convenience methods for GET, POST, PUT, and DELETE methods as well as executing pre-built URLRequests.

DataKit: All of the above in one tidy package.

Getting Started

DataKit is still in an experimental phase. Feel free to test it, but DataKit is not fit for production use.

Requirements

DataKit uses Swift 5.1 in Xcode 11 and supports the platforms below.

  • macOS 10.15+
  • iOS 13.0+
  • tvOS 13.0+
  • watchOS 6.0+

Installation

Swift Package Manager

Swift Package Manager is the recommended way to install DataKit.

.package(url: "https://github.com/alextall/DataKit.git", from: "0.3.0")

GitHub

link
Stars: 1
Last commit: 2 hours ago

Release Notes

v0.3.0
1 year ago

ATTENTION:

This release contains many breaking changes. Be cautious before upgrading.

NEW:

  • PersistenceClient has been renamed to CoreDataClient and now includes Codable support
  • HTTPResponse has been renamed to HTTPOutput

CHANGED:

  • No longer erasing to AnyPublisher. We are now exposing Future types.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco