![]() |
VOOZH | about |
dotnet add package magic.lambda.csv --version 17.2.0
NuGet\Install-Package magic.lambda.csv -Version 17.2.0
<PackageReference Include="magic.lambda.csv" Version="17.2.0" />
<PackageVersion Include="magic.lambda.csv" Version="17.2.0" />Directory.Packages.props
<PackageReference Include="magic.lambda.csv" />Project file
paket add magic.lambda.csv --version 17.2.0
#r "nuget: magic.lambda.csv, 17.2.0"
#:package magic.lambda.csv@17.2.0
#addin nuget:?package=magic.lambda.csv&version=17.2.0Install as a Cake Addin
#tool nuget:?package=magic.lambda.csv&version=17.2.0Install as a Cake Tool
This project provides CSV helper slots for Magic. More specifically, it provides the following slots.
.data
.
name:Thomas Hansen
age:int:47
.
name:John Doe
age:int:67
lambda2csv:x:-/*
add:x:+/*/types
get-nodes:x:@lambda2csv/*
csv2lambda:x:@lambda2csv
types
Notice, the [lambda2csv] slot will return type information, and the [csv2lambda] slot can optionally be given type information in its [types] argument, allowing you to convert correctly back to the correct type(s) as you convert a CSV string to its lambda objects. The [lambda2csv] slot will also create headers for your CSV string, and the [csv2lambda] slot will use the first line to retrieve these headers, to rebuild the lambda object correctly.
This allows you to roundtrip from a lambda object, to CSV format, and back to lambda again, without loosing type information or names of your nodes. This is necessary since CSV doesn't preserve types in any ways. By default the [lambda2csv] will also treat null values correctly, by adding these into the CSV file as "[NULL]". This allows you to preserve null values, which isn't really possible with CSV normally - However, for some edge cases you might want to use different null value, at which point you can supply this as [null-value] argument to both slots. If you supply a [null-value] argument, but set its value to null - Null values will be ignored, and no null values will be persisted in any direction.
This slot converts a CSV string into a lambda object. In its simplest form it would resemble the following.
.csv:@"name,age
Thomas Hansen,47
John Doe,67"
csv2lambda:x:@.csv
It can optionally take a type declaration through a [types] argument, which allows you to add typing support to the slot.
This slot converts the specified lambda object to a CSV string. Below is an example of usage.
.data
.
name:Thomas Hansen
age:int:47
.
name:John Doe
age:int:67
lambda2csv:x:-/*
The slot will return type information as children of your [lambda2csv] invocation.
Magic is 100% Open Source and you can find the primary project GitHub page here.
The source code for this repository can be found at github.com/polterguy/magic.lambda.csv, and you can provide feedback, provide bug reports, etc at the same place.
The projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by AINIRO.IO.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on magic.lambda.csv:
| Package | Downloads |
|---|---|
|
magic.library
Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by default. To use package go to https://polterguy.github.io |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.2.0 | 1,730 | 1/22/2024 |
| 17.1.7 | 368 | 1/12/2024 |
| 17.1.6 | 340 | 1/11/2024 |
| 17.1.5 | 354 | 1/5/2024 |
| 17.0.1 | 372 | 1/1/2024 |
| 17.0.0 | 534 | 12/14/2023 |
| 16.11.5 | 469 | 11/12/2023 |
| 16.9.0 | 466 | 10/9/2023 |
| 16.7.0 | 774 | 7/11/2023 |
| 16.4.1 | 597 | 7/2/2023 |
| 16.4.0 | 594 | 6/22/2023 |
| 16.3.1 | 502 | 6/7/2023 |
| 16.3.0 | 482 | 5/28/2023 |
| 16.1.9 | 816 | 4/30/2023 |
| 15.10.11 | 662 | 4/13/2023 |
| 15.9.1 | 781 | 3/27/2023 |
| 15.9.0 | 608 | 3/24/2023 |
| 15.8.2 | 646 | 3/20/2023 |
| 15.7.0 | 557 | 3/6/2023 |
| 15.5.0 | 1,792 | 1/28/2023 |