Skip to main content

gubbins

Serial number generator/validator

A simple but powerful serial number generator and validator written in Python. Given a Prefix and a 32-bit ID, produces a Serial. Given a valid Serial, returns the Prefix and 32-bit ID. Optionally takes Additional Data.

from gubbins import Gubbins

for i in range(10):
	serial = Gubbins.generate("AX", i)
	prefix, id = Gubbins.validate(serial)
	assert prefix.lower() == "AX".lower()
	assert id == i
	print(i, serial)

or via the command-line,

python3 -m gubbins.generate 1-10 --solo --prefix AX | python3 -m gubbins.validate

Requires

License: MIT

Release files for gubbins 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gubbins 0.0.3
File Size Uploaded
gubbins-0.0.3.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gubbins 0.0.3
File Interpreter ABI Platform
gubbins-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / gubbins-0.0.3.tar.gz

Download URL gubbins-0.0.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6c7bab04dba95d3b1206fced25ed29b3cfbdcde651535787483e8794a8a4ddb1
BLAKE2b-256 checksum
How to use checksums
c3a6b8a3492b3140d219d982a041b2a4f749839c4ea11ec5977b10e7b3a1bc09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / gubbins-0.0.3-py3-none-any.whl

Download URL gubbins-0.0.3-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f391f547e80fc0c68aec1c91bd4c3d1192579c034efd917d6554266ea91303
BLAKE2b-256 checksum
How to use checksums
19b3f8dc7df24315673cb2ff48ced66d44b234b015c6fe728f085c562766b2a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page