Hydrus.NET 0.8.0

dotnet add package Hydrus.NET --version 0.8.0
                    
NuGet\Install-Package Hydrus.NET -Version 0.8.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="Hydrus.NET" Version="0.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hydrus.NET" Version="0.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Hydrus.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hydrus.NET --version 0.8.0
                    
#r "nuget: Hydrus.NET, 0.8.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.
#:package Hydrus.NET@0.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hydrus.NET&version=0.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Hydrus.NET&version=0.8.0
                    
Install as a Cake Tool

Hydrus.NET

Low-level C# client library for the Hydrus Network's REST API.

I tend to make a lot of little one-off apps that interface with Hydrus and got tired writing the same boilerplate code over and over.

Unfinished.

Because it's hard to write meaningful tests for this kind of library, the .Tests projects assume a real running instance of the Hydrus client. As such, they don't run in CI at present. In the future, I might try to implement 'real' integration tests by spinning up an instance of the client in a container. But Hydrus unfortunately does not make this easy.

Building

git clone https://github.com/yourusername/Hydrus.NET.git
cd Hydrus.NET
dotnet build

Usage

NOTE: the package is not yet on NuGet.

dotnet add package Hydrus.NET
using Hydrus.NET;

// You can retrieve these details in your client by going to:
// services -> review services -> client api ->
// 'open client api base url' / 'copy api access key'
var client = new HydrusClient("http://localhost:45869", "your-api-key");

var response = await _sut.Client.GetVersionAsync();

Console.WriteLine(response.Version); // 80

Design

This is a low-level wrapper for the API; convenience is not currently a goal.

Contributing

PRs are welcome.

License

MIT License.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.8.0 89 7/28/2025