swift-zsv

0.4.0-alpha-2

Swift wrapper for "libzsv"
mihai8804858/swift-zsv

What's New

v0.4.0-alpha-2

2024-12-29T21:32:12Z
  • Enable strict concurrency

Full Changelog: v0.4.0-alpha...v0.4.0-alpha-2

SwiftZSV

Swift wrapper for libzsv.

CI

Installation

You can add swift-zsv to an Xcode project by adding it to your project as a package.

https://github.com/mihai8804858/swift-zsv

If you want to use swift-zsv in a SwiftPM project, it's as simple as adding it to your Package.swift:

dependencies: [
    .package(url: "https://github.com/mihai8804858/swift-zsv", branch: "main")
]

And then adding the product to any target that needs access to the library:

.product(name: "SwiftZSV", package: "swift-zsv")

Quick Start

Just import SwiftZSV in your project to access the underlying zsv C API:

import SwiftZSV

let parser = zsv_new(nil)
zsv_set_row_handler(parser) { _ in
    // handle CSV row
}
zsv_parse_bytes(parser, ...)
zsv_finish(parser)
zsv_delete(parser)

Prebuilt Versions

License

This library is released under the MIT license. See LICENSE for details.

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri May 16 2025 18:32:48 GMT-0900 (Hawaii-Aleutian Daylight Time)