Eplicta.ArchiveReport
1.2.0
dotnet add package Eplicta.ArchiveReport --version 1.2.0
NuGet\Install-Package Eplicta.ArchiveReport -Version 1.2.0
<PackageReference Include="Eplicta.ArchiveReport" Version="1.2.0" />
<PackageVersion Include="Eplicta.ArchiveReport" Version="1.2.0" />
<PackageReference Include="Eplicta.ArchiveReport" />
paket add Eplicta.ArchiveReport --version 1.2.0
#r "nuget: Eplicta.ArchiveReport, 1.2.0"
#:package Eplicta.ArchiveReport@1.2.0
#addin nuget:?package=Eplicta.ArchiveReport&version=1.2.0
#tool nuget:?package=Eplicta.ArchiveReport&version=1.2.0
Eplicta.ArchiveReport
Generates Riksarkivet's metadata appendix ("Metadatabilaga") — an Excel workbook describing a web archiving delivery, with one row per archived file.
The repository contains two projects:
Eplicta.Conserver.ArchiveReport— the reusable NuGet package (Eplicta.ArchiveReport). It exposes the data model and the Excel renderer; it does not touch the file system or read archives. Consumers build the data model and call the renderer.Eplicta.Conserver.Cli— a thin command-line harness that builds the data model from a finished delivery zip (readssip.xml, scans files) and renders the report. Useful for manual testing.
Package API
var report = new ArchiveReport
{
Description = "My delivery",
ArchiveBuilder = "Example AB",
// ... remaining delivery-level metadata (see ArchiveReport) ...
Files =
[
new FileEntry { FileName = "index.html", FileType = "text/html", SizeBytes = 1234, Charset = "utf-8", Path = "https://example.org/" },
// ... one FileEntry per page/resource ...
]
};
byte[] xlsx = new Renderer().GetBytes(report);
// or: new Renderer().Save(report, "metadatabilaga.xlsx");
ArchiveReport— delivery-level metadata + the file list (the "Allmänt" sheet).FileEntry— the 10 Riksarkivet columns per file (the "Filer" sheet).Renderer— fills the embeddedmall_webb_2026.xlsxtemplate and returns the workbook as bytes.
Excel handling uses ClosedXML (MIT). No external license configuration is required.
CLI usage
dotnet run --project Eplicta.Conserver.Cli -- <path-to-delivery.zip> [options]
The report is written next to the input as <name>.xlsx. Metadata not present in the archive can be supplied with --description=, --creator=, --systemname=, --system=, --withdrawaldate=, --comment=.
The CLI expects a sip.xml inside the archive and a nested content zip. Media duration is read with TagLib#.
Author
Eplicta ArchiveReport Team
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- ClosedXML (>= 0.105.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Eplicta.ArchiveReport:
| Package | Downloads |
|---|---|
|
Eplicta.Conserver.Cli
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.