DevToys.PolishDataGen 1.0.0

dotnet add package DevToys.PolishDataGen --version 1.0.0
                    
NuGet\Install-Package DevToys.PolishDataGen -Version 1.0.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="DevToys.PolishDataGen" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevToys.PolishDataGen" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DevToys.PolishDataGen" />
                    
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 DevToys.PolishDataGen --version 1.0.0
                    
#r "nuget: DevToys.PolishDataGen, 1.0.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 DevToys.PolishDataGen@1.0.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=DevToys.PolishDataGen&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DevToys.PolishDataGen&version=1.0.0
                    
Install as a Cake Tool

About project

PolishDataGen is a tool for generating and validating polish identification numbers. The tool was implemented as an extension to the DevToys 2.0 preview application.

The current version supports generation and validation:


The extension works for both GUI and CLI versions of DevToys 2.0.

CLI

The CLI version supports the generation of larger output sets than the GUI version. There is also an option to generate data concurrently, but this is a work in progress and at this point does not cause much benefit.

Generator - examples:
.\DevToys.CLI.exe pdg -t identity-card-number -n 100
.\DevToys.CLI.exe pdg -t nip -n 100000 -mt
.\DevToys.CLI.exe pdg --type identity-card-number --number 100
.\DevToys.CLI.exe polish-data-generator --type nip --number 10000 --multithreading

By default, the program prints the generated data to the terminal, but it is possible to use the -o/--output switch to define the path to the output folder containing the generated data. The name of the generated file has the format generated-<NUMBER_OF_IDS>-<DATA_TYPE>-in-<PROCESSING_TIME>-ms.txt.

.\DevToys.CLI.exe pdg -t pesel -n 38000000 -o destination
Validator - examples:

The pdv/polish-data-validator tool allows verification of a single identifier. The -d/--detailed switch returns a list of detailed errors. On the other hand, the -ri/--return-integer switch will cause the process to return an integer value (-1 validation error; 0 - success)

.\DevToys.CLI.exe pdv -t pesel -i 49144367520
.\DevToys.CLI.exe pdv --type pesel --input 49144367520

# Validation result for '49144367520' using 'Pesel': Invalid
.\DevToys.CLI.exe pdv -t pesel -i 49144367520 -d

# Validation result for '49144367520' using 'Pesel': Invalid
# 
# PESEL Month part must be in range 1 to 12
# PESEL Day part must be in range 1 to 31
# PESEL invalid control number
.\DevToys.CLI.exe pdv -t pesel -i 49144367520 -ri
$LASTEXITCODE

# prints -1

GUI

Download DevToys 2.0-preview and the DevToys.PolishDataGen nuget package (from the repository or from the NuGet Gallery) and then install the tool in the extensions management tab.

Launching the project

Unit tests from DevToys.PolishDataGen.Test.csproj that verify generators and validators do not need DevToys 2.0 to work, but developing and debugging the DevToys.PolishDataGen.csproj requires the configuration described in the DevToys application documentation.

Product 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. 
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
1.0.0 327 3/2/2025