Skip to main content

a class for compact alpha-numeric serial numbers with (an optional) check digit

Project description

an IDstring is a string-like object which can be incremented, to produce a series of serial-number-like strings, consisting of Arabic digits and upper case letters, skipping those which can be easily misinterpreted (“oh”, “I”, “Q”, and Zed) and which has an optional Luhn-N check digit, capable of detecting any single-letter error and most other errors.

Programmers may define alternate alphabets, alternate lists of “dirty” words (which are skipped), a fixed subfield for generating serial number from multiple sources, and a hash code to create unique check digits algorithms for multiple projects. Passing a hash code of None will surpress check digit operation.

The class will also perform generic binary to alpha conversions in your alphabet (base-32 for the default).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idstring-2.0.3.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

idstring-2.0.3-py3.10.egg (12.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page