Sep 0.1.0-preview.3

This is a prerelease version of Sep.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Sep --version 0.1.0-preview.3
NuGet\Install-Package Sep -Version 0.1.0-preview.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sep" Version="0.1.0-preview.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sep --version 0.1.0-preview.3
#r "nuget: Sep, 0.1.0-preview.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Sep as a Cake Addin
#addin nuget:?package=Sep&version=0.1.0-preview.3&prerelease

// Install Sep as a Cake Tool
#tool nuget:?package=Sep&version=0.1.0-preview.3&prerelease

Sep

Modern, ultra fast, zero allocation¹ reading and writing separated values (csv, tsv etc.).

¹ After creation and first few rows both for parsing and formatting.

var text =
@"A;B;C
x;1;1.1
y;2;2.2";

using var reader = Sep.Reader().FromText(text);
using var writer = reader.Sep.Writer().ToText();
foreach (var readRow in reader)
{
    var a = readRow["A"].Span;
    var b = readRow["B"].Parse<int>();
    var c = readRow["C"].Parse<double>();

    using var writeRow = writer.NewRow();
    writeRow["A"].Format(a);
    writeRow["B"].Format($"{b * 2}");
    writeRow["C"].Format($"{c / 2}");
}

var expected =
@"A;B;C
x;2;0.55
y;4;1.1";
Assert.AreEqual(expected, writer.ToString());
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Sep:

Repository Stars
DataDog/dd-trace-dotnet
.NET Library for Datadog APM
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
Version Downloads Last updated
0.4.0 2,430 1/1/2024
0.4.0-preview.1 89 12/23/2023
0.3.0 440,514 11/18/2023
0.2.7 2,286 10/12/2023
0.2.6 443 9/27/2023
0.2.5 236 9/14/2023
0.2.4 219 9/8/2023
0.2.3 246 9/5/2023
0.2.2 475,287 8/10/2023
0.2.1 135 8/10/2023
0.2.0 910 8/7/2023
0.2.0-preview.3 96 7/29/2023
0.1.0 564 5/30/2023
0.1.0-rc.1 84 5/26/2023
0.1.0-preview.8 71 5/26/2023
0.1.0-preview.7 90 5/8/2023
0.1.0-preview.6 87 4/24/2023
0.1.0-preview.5 93 3/19/2023
0.1.0-preview.4 100 12/31/2022
0.1.0-preview.3 100 12/4/2022
0.1.0-preview.2 126 3/21/2022
0.1.0-preview.1 130 1/28/2022