You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Promptuarium

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Promptuarium

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

5.0.0
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

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"

Keywords

promptuarium

FAQs

Package last updated on 10 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.