Pamoja.Zenoh
0.1.18
dotnet add package Pamoja.Zenoh --version 0.1.18
NuGet\Install-Package Pamoja.Zenoh -Version 0.1.18
<PackageReference Include="Pamoja.Zenoh" Version="0.1.18" />
<PackageVersion Include="Pamoja.Zenoh" Version="0.1.18" />
<PackageReference Include="Pamoja.Zenoh" />
paket add Pamoja.Zenoh --version 0.1.18
#r "nuget: Pamoja.Zenoh, 0.1.18"
#:package Pamoja.Zenoh@0.1.18
#addin nuget:?package=Pamoja.Zenoh&version=0.1.18
#tool nuget:?package=Pamoja.Zenoh&version=0.1.18
Pamoja.Zenoh
Zenoh key expressions: validity, canonical form, and wildcard matching. One capability of pamoja, one memory-safe Rust core with bindings for TypeScript, Python, and C#.
Install
dotnet add package Pamoja.Zenoh
using Pamoja.Zenoh;
This pulls in Pamoja.Native, the compiled engine. dotnet add package Pamoja is the whole framework in one package.
Example
The guide project's example, spliced here as it ran in CI.
From bindings/dotnet/samples/Pamoja.Guides/ZenohGuide.cs:
// A key expression names a set of keys. `*` stands for exactly one chunk, so this
// selects the battery of any node, and not a battery nested deeper.
const string AnyNode = "fleet/*/battery";
foreach (string key in new[] { "fleet/n7/battery", "fleet/n7/rack/battery" })
{
Console.WriteLine($"{AnyNode} covers {key}: {KeyExpression.Matches(AnyNode, key)}");
}
// `**` stands for any number of chunks, including none, which is what a
// subscription covering a whole subtree wants.
Console.WriteLine(
"fleet/** covers a nested key: "
+ KeyExpression.Matches("fleet/**", "fleet/n7/rack/battery"));
Console.WriteLine(
"fleet/**/battery covers fleet/battery: "
+ KeyExpression.Matches("fleet/**/battery", "fleet/battery"));
// Two expressions that select the same keys have one canonical form. Comparing or
// routing on the written form would treat these as different subscriptions.
const string Written = "fleet/**/**/battery";
string? canonical = KeyExpression.Canonize(Written);
Console.WriteLine(
$"{Written} is canonical: {KeyExpression.IsCanon(Written)},"
+ $" and canonizes to {canonical}");
// A malformed expression is rejected rather than canonized into something
// plausible.
const string Malformed = "fleet//battery";
Console.WriteLine(
$"{Malformed} is valid: {KeyExpression.IsValid(Malformed)},"
+ $" canonizes to {KeyExpression.Canonize(Malformed) ?? "nothing"}");
The same capability in every language
| Language | Package | Reference |
|---|---|---|
| Rust | pamoja-zenoh |
reference, docs.rs, install |
| TypeScript | @pamoja/zenoh |
reference, install |
| Python | pamoja-zenoh |
reference, install |
| C# | Pamoja.Zenoh |
reference, install |
Documentation
Pamoja.Zenohreference, every type in this namespace.- The Zenoh keys guide, with the same example in Rust, TypeScript, and Python.
- Every capability, and the install page.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Pamoja.Native (>= 0.1.18)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Pamoja.Zenoh:
| Package | Downloads |
|---|---|
|
Pamoja
The whole pamoja framework in one package: every capability of one memory-safe Rust core, behind an idiomatic C# facade, for IoT, robotics, and drones. |
|
|
Pamoja.Profiles
Profiles and robotics: A node instantiated by name with its policy and schedule, and the naming and encoding rules a robot's topics follow, with no ROS 2 or Zenoh installed. |
GitHub repositories
This package is not used by any popular GitHub repositories.