Skip to content

A python package to manipulate, convert and validate AIC codes

License

Notifications You must be signed in to change notification settings

FabrizioMontanari/pyAIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyAIC

This package define a series of function to manipulate, convert and (syntactically) validate AIC codes as described in the italian "Gazzetta Ufficiale della Repubblica Italiana" Serie Generale n.165 del 18-07-2014, attachment A. The document describes two valid representation of an AIC code.

Functions

The functions to validate a code are is_base32_AIC and is_base32_AIC. Using strict=True will validate only real AIC codes (they must start with "0"), while strict=False will validate PARAF codes.

The functions to convert between base32 and base10 representation are from10to32 and from32to10.

The last char of a base10 code is a checksum, to check it use check_AIC_base10_checksum, to compute it use calc_AIC_base10_checksum.

About

A python package to manipulate, convert and validate AIC codes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages