PCAxis.Serializers
1.3.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PCAxis.Serializers --version 1.3.0
NuGet\Install-Package PCAxis.Serializers -Version 1.3.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="PCAxis.Serializers" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PCAxis.Serializers --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PCAxis.Serializers, 1.3.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.
// Install PCAxis.Serializers as a Cake Addin #addin nuget:?package=PCAxis.Serializers&version=1.3.0 // Install PCAxis.Serializers as a Cake Tool #tool nuget:?package=PCAxis.Serializers&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PCAxis.Serializers
This repository contains the serialization components required for serializing PCAxis data represented in PAXIOM from .px-files or CNNM-enabled databases. It enables the conversion from PAXIOM to various formats.
Supported Formats
- Csv
- DecimalJson
- Excel
- Html5Table
- Json
- Xml
- Json-stat v1 & v2 (https://json-stat.org/format/)
- Parquet (https://parquet.apache.org)
- SDMX (https://sdmx.org/)
- Xslx (https://learn.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/f780b2d6-8252-4074-9fe3-5d7bc4830968)
Getting Started
Prerequisites
- .NET Core 3.1 or later.
Installation
dotnet add package PCAxis.Serializers
Example Usage
using System;
using System.IO;
using PCAxis.Paxiom;
using PCAxis.Serializers;
namespace MyPxConverter
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Please provide the PX filename as an argument.");
return;
}
string pxFileName = args[0];
string baseFileName = Path.GetFileNameWithoutExtension(pxFileName);
string outputFileName = $"{baseFileName}.parquet";
try
{
// Initialize and build the PX file model
var builder = new PXFileBuilder(pxFileName);
var selection = Selection.SelectAll(builder.Model.Meta);
builder.BuildForPresentation(selection);
// Serialize to Parquet
using (var stream = new FileStream(outputFileName, FileMode.Create))
{
var parquetSer = new ParquetSerializer();
parquetSer.Serialize(builder.Model, stream);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
}
}
Contributing
We welcome contributions to this project. Please see CONTRIBUTING.md for details.
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
Support and Feedback
For support, feature requests, and bug reporting, please open an issue on the GitHub project page.
See Also
- PxWeb Project Website
- PxWeb on GitHub
- For the C# Serializers, see PxWeb issue #163.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- ClosedXML (>= 0.97.0)
- log4net (>= 2.0.17)
- Newtonsoft.Json (>= 13.0.3)
- Parquet.Net (>= 4.23.5)
- PCAxis.Core (>= 1.2.4)
- PCAxis.Metadata (>= 1.0.3)
- PCAxis.Query (>= 1.0.9)
- System.ComponentModel.Annotations (>= 5.0.0)
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 |
---|---|---|
1.3.1 | 4,127 | 6/14/2024 |
1.3.0 | 579 | 5/8/2024 |
1.2.4 | 120 | 5/7/2024 |
1.2.3 | 2,131 | 12/5/2023 |
1.2.2 | 1,853 | 11/3/2023 |
1.2.2-rc | 124 | 10/27/2023 |
1.2.1-rc | 134 | 10/27/2023 |
1.2.0-rc | 133 | 9/28/2023 |
1.1.2 | 1,595 | 6/14/2023 |
1.1.1 | 284 | 4/17/2023 |
1.1.0 | 1,190 | 1/13/2023 |
1.0.10-rc | 211 | 12/21/2022 |
1.0.9-rc | 152 | 12/20/2022 |
1.0.8-rc | 153 | 12/19/2022 |
1.0.7-rc | 147 | 12/12/2022 |
1.0.6-rc | 175 | 11/21/2022 |
1.0.5-rc | 167 | 11/18/2022 |
1.0.4 | 1,662 | 10/12/2022 |
1.0.3 | 652 | 9/23/2022 |
1.0.2 | 611 | 9/6/2022 |
1.0.1 | 511 | 8/27/2022 |
1.0.0 | 641 | 8/22/2022 |
1.0.0-beta | 182 | 8/19/2022 |