Promptuarium 5.0.0

dotnet add package Promptuarium --version 5.0.0
NuGet\Install-Package Promptuarium -Version 5.0.0
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="Promptuarium" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Promptuarium --version 5.0.0
#r "nuget: Promptuarium, 5.0.0"
#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 Promptuarium as a Cake Addin
#addin nuget:?package=Promptuarium&version=5.0.0

// Install Promptuarium as a Cake Tool
#tool nuget:?package=Promptuarium&version=5.0.0

Promptuarium

.NET

Project summary

Promptuarium is a versatile, tree-based data structure to store or exchange data and metadata efficiently (in binary format). Written in pure C#, but can be used in F#, as well.

Last reviewed: 13. Aug. 2023.

Promptuarium details

Promptuarium is a tree-based solution to store data and metadata in a file stream or exchange data and metadata through network streams efficiently.

However, Promptuarium doesn't use any compression algorithms, it saves as many bytes as possible (uses binary container format). Theoretically, there is no size limit in the binary container, but the .NET limits the data/metadata sizes to 8 exabytes.

The class has list- and LINQ-friendly operations to make it easy to use Promptuarium in any .NET project.

There are many-many conversion operations that simplifies storing and exchanging data (supported by the converter class):

  • bool,
  • byte, byte array,
  • char,
  • short, integer, long, (enumeration),
  • float, double,
  • decimal,
  • DateTime, DateTimeOffset, TimeSpan,
  • GUID,
  • string (ASCII, UTF-8, UTF-16LE and UTF-32LE),
  • VarInt and VarUInt saves as many bytes as possible.

Storing other types are also easy, just serialize them into a stream or byte array. The events help you to load the node content dynamically, i.e. keep big data in file streams.

The Statistics property gives information about i.e.

  • the number of nodes,
  • the depth of the tree,
  • maximum and minimum of the length of the data/metadata,
  • the minimum and maximum number of children,
  • the number of nodes with and without data/metadata/children.

Documentation

See also the Wiki page or the API Reference.

Unit tests

Unit tests help to keep the project code robust.

NuGet packages

License

This code is is distributed under the terms of the MIT license.

Internals

Generate documentation:

cd src
roslynator.exe generate-doc .\Promptuarium.csproj -o ..\docs --host github --heading "Promptuarium API Reference"
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 123 10/10/2023
4.2.1 137 8/25/2023
4.2.0 127 8/13/2023
4.1.0 448 1/17/2022
4.0.0 429 1/17/2022
3.0.0 344 8/12/2021
2.0.1 275 6/9/2021
2.0.0 302 6/9/2021
1.2.1 308 6/8/2021
1.2.0 321 6/8/2021
1.1.0 283 6/8/2021
1.0.1 518 8/13/2019
1.0.0 668 8/8/2019

Children is IReadOnlyList.