IdParser.Core 1.0.0-alpha5

This is a prerelease version of IdParser.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package IdParser.Core --version 1.0.0-alpha5
                    
NuGet\Install-Package IdParser.Core -Version 1.0.0-alpha5
                    
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="IdParser.Core" Version="1.0.0-alpha5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IdParser.Core" Version="1.0.0-alpha5" />
                    
Directory.Packages.props
<PackageReference Include="IdParser.Core" />
                    
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 IdParser.Core --version 1.0.0-alpha5
                    
#r "nuget: IdParser.Core, 1.0.0-alpha5"
                    
#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 IdParser.Core@1.0.0-alpha5
                    
#: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=IdParser.Core&version=1.0.0-alpha5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IdParser.Core&version=1.0.0-alpha5&prerelease
                    
Install as a Cake Tool

ID Parser

Build Status

ID Parser can be used to parse AAMVA-compliant driver's licenses and ID cards into objects that you can work with. More information on the versions of the AAMVA standard can be found here. More information on the D20 Data Dictionary can be found here.

Usage

  1. Include the using
using IdParser;
  1. Then you're off to the races!
var idCard = Barcode.Parse(barcode);
Console.WriteLine(idCard.Address.StreetLine1); // "123 NORTH STATE ST."
Console.WriteLine(idCard.IssuerIdentificationNumber.GetDescription()); // "New York"

if (idCard is DriversLicense license)
{
    Console.WriteLine(license.Jurisdiction.VehicleClass); // "C"
}

More Examples

Take a look at the unit test project for more examples and usage.

Client

The IdParser.Client project is a handy GUI application to help test and verify that an ID will be parsed correctly. The app works with both OPOS and HID keyboard emulation scanners.

alternate text is missing from this package README image

FAQ

  • I can't build IdParser.Client. It's missing a required dependency. You need to have Microsoft POS for .NET installed. The Microsoft.PointOfService dll is GAC'd and will allow you to build and run the client app.

  • The Height class has the wrong TotalInches or Centimeters. The AAMVA standard has no decimal places in the height subfile record. As a result, the conversion between inches and centimeters will be off.

  • The library is throwing ArgumentExcpetions for every barcode I'm passing in. By default, all barcodes are parsed using the Strict validation level. All barcodes are expected to adhere exactly to the AAMVA standard as defined in the PDFs for parsing to succeed. This is the recommended level for scanners using OPOS. However, if HID keyboard emulation is used, especially when scanning using a web browser, the expected data can become malformed. You can try using the None validation level, however this is not guaranteed to work in all cases. Data elements may be skipped and exceptions may still be thrown.

Find IDs Not in Tests Regex

DAJ(?!(AL|AR|AZ|AK|CA|CO|CT|DE|FL|GA|HI|IA|ID|IL|IN|KS|KY|LA|MA|MD|ME|MI|MN|MO|MS|MT|NC|ND|NH|NJ|NM|NV|NY|OH|ON|OR|PA|PE|PR|RI|SC|TN|TX|UT|VA|VT|WA|WI|WV|QC|OK|NS|NE|NB|AB|SD|DC))[A-Z]+
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  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.
  • net6.0

    • No dependencies.

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
3.1.0 740 11/20/2024
3.0.0 1,007 3/28/2024
3.0.0-beta3 166 3/21/2024
3.0.0-beta2 130 3/21/2024
3.0.0-beta1 144 3/12/2024
3.0.0-alpha2 138 3/12/2024
3.0.0-alpha1 140 3/7/2024
2.0.0 226 3/7/2024
2.0.0-alpha5 230 1/10/2024
2.0.0-alpha4 132 1/10/2024
2.0.0-alpha3 128 1/10/2024
2.0.0-alpha2 163 12/23/2023
2.0.0-alpha1 185 12/16/2023
1.1.0 341 12/14/2023
1.0.4 248 12/5/2023
1.0.3 273 10/26/2023
1.0.2 231 9/27/2023
1.0.1 215 9/27/2023
1.0.0 212 9/20/2023
1.0.0-beta8 211 9/8/2023
1.0.0-beta7 205 9/8/2023
1.0.0-beta6 204 9/8/2023
1.0.0-beta5 201 9/8/2023
1.0.0-beta4 222 8/8/2023
1.0.0-beta3 222 7/24/2023
1.0.0-beta2 228 7/23/2023
1.0.0-beta1 206 7/22/2023
1.0.0-alpha9 218 7/22/2023
1.0.0-alpha8 215 7/22/2023
1.0.0-alpha7 231 7/22/2023
1.0.0-alpha6 216 7/22/2023
1.0.0-alpha5 218 7/22/2023
1.0.0-alpha4 223 7/22/2023
1.0.0-alpha3 217 7/22/2023
1.0.0-alpha2 200 7/22/2023
1.0.0-alpha11 199 7/22/2023
1.0.0-alpha10 207 7/22/2023
1.0.0-alpha1 201 7/22/2023