Skip to main content

Generate the RFC-4122 Name-Based UUID.

Project description

uuid-by-string

Generate the RFC-4122 Name-Based UUID. Supports 3 (md5) and 5(sha1) versions of UUID. Referenced from danakt/uuid-by-string: Generates the RFC-4122 Name-Based UUID.

Install

$ pip install uuid-by-string

Usage

from uuid_by_string import generate_uuid

uuid = generate_uuid("a string")
# 555d01e6-c832-56b3-a9f9-2bd811905370
uuid_v3 = generate_uuid("❤️", version=3)
# 080c1417-9a0e-3386-a131-a7fa8dbe2c51
uuid_v5 = generate_uuid("❤️", 5)
# f11c13f0-5595-551d-bdee-e6c2e43fd2a9

Project details


Download files

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

Files for uuid-by-string, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size uuid_by_string-0.1.0-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size uuid_by_string-0.1.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page