About uuid-generator
uuid-generator is a Python tool and CLI for generating and validating UUIDs. It supports several UUID versions, bulk output, namespace-based identifiers, multiple formats, and file exports for development and data workflows.
Key features
- 01UUID1, UUID4, and UUID5 generation
- 02Bulk UUID generation
- 03Hyphenated, compact, and URN formats
- 04Namespace-based deterministic UUIDs
- 05UUID format and version validation
- 06CSV, JSON, and text export
Use cases
- 01Create database primary keys
- 02Generate identifiers for API resources
- 03Produce session tokens or tracking IDs
- 04Export batches of UUIDs to files
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dkyazzentwatwa/ chatgpt-skills --skill uuid-generatorAfter installing, type/uuid-generatorin Claude Code to confirm it loaded.
Bundled filesscripts/requirements.txtscripts/uuid_generator.py
Details
From the project READMEUUID Generator
Generate universally unique identifiers (UUIDs) in various formats for distributed systems, databases, and APIs.
Purpose
UUID generation for:
- Database primary keys
- API resource identifiers
- Distributed system coordination
- Session tokens and tracking
- File naming and versioning
Features
- Multiple Versions: UUID1 (time-based), UUID4 (random), UUID5 (namespace)
- Bulk Generation: Generate thousands of UUIDs
- Custom Formats: Hyphenated, compact, URN format
- Namespace UUIDs: Deterministic UUIDs from names
- Validation: Check UUID format and version
- Export: CSV, JSON, plain text
Quick Start
from uuid_generator import UUIDGenerator
# Generate UUID4 (random)
gen = UUIDGenerator()
uuid = gen.generate() # 'a1b2c3d4-e5f6-4789-g0h1-i2j3k4l5m6n7'
# Bulk generation
uuids = gen.generate_bulk(count=1000, version=4)
# Namespace UUID (deterministic)
uuid = gen.generate_namespace('example.com', namespace='dns')
CLI Usage
# Generate single UUID
python uuid_generator.py
# Generate 1000 UUIDs
python uuid_generator.py --count 1000 --output uuids.txt
# Generate namespace UUID
python uuid_generator.py --namespace dns --name example.com
Comments
Markdown supported