Viklover.Seaweed
1.1.0
dotnet add package Viklover.Seaweed --version 1.1.0
NuGet\Install-Package Viklover.Seaweed -Version 1.1.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="Viklover.Seaweed" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Viklover.Seaweed" Version="1.1.0" />
<PackageReference Include="Viklover.Seaweed" />
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 Viklover.Seaweed --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Viklover.Seaweed, 1.1.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 Viklover.Seaweed@1.1.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=Viklover.Seaweed&version=1.1.0
#tool nuget:?package=Viklover.Seaweed&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SeaweedFS .NET Client
Simple HTTP client implementation for SeaweedFS API.
📚 Features
- Complete file lifecycle: assign, upload, download, check existence, delete
- Single-step and two-step upload modes
- Volume server discovery via
/dir/lookup - Fully asynchronous API
- Strongly typed models
- Optional collection support for logical file grouping
🚀 Quick start
dotnet add package Viklover.Seaweed --version 1.0.0
using Viklover.Seaweed.Process;
// Create client with master server URI and optional collection name
var masterUri = new Uri("http://localhost:9333");
using var client = new SeaweedHttpClient(masterUri, "MyCollection");
// Single-step upload
var fileId = await client.UploadAsync(fileContent, cancellationToken);
// Two-step upload (allows custom volume selection)
var (assignedId, volumeRoute) = await client.CreateFileAsync(cancellationToken);
await client.UploadAsync(volumeRoute, assignedId, fileContent, cancellationToken);
// Download
var content = await client.GetFileAsync(volumeRoute, fileId, cancellationToken);
// Check existence
var exists = await client.ExistsFileAsync(volumeRoute, fileId, cancellationToken);
// Delete
await client.DeleteAsync(volumeRoute, fileId, cancellationToken);
// Lookup volume routes
var routes = await client.LookupVolumeRoutesAsync(fileId.VolumeId, cancellationToken);
🛠️ Contribution
- Report bugs 🐛
- Suggest features 💡
- Submit pull requests 🔄
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. 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. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- JsonHelper.Net (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.