← 返回
开发者工具 中文

Uuid Toolkit

Generate, parse, validate, and convert UUIDs (v1/v3/v4/v5), ULIDs, and NanoIDs. Use when creating unique identifiers, parsing existing UUIDs to extract versi...
生成、解析、验证和转换 UUID(v1/v3/v4/v5)、ULID、NanoID。用于创建唯一标识符、解析已有 UUID 提取版本信息等。
johnnywang2001
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 450
下载
💾 5
安装
1
版本
#latest

概述

UUID Toolkit

Generate, parse, validate, and convert UUIDs, ULIDs, and NanoIDs. Zero dependencies (Python 3.9+).

Quick Start

# Generate a UUIDv4
python3 scripts/uuid_toolkit.py generate uuid4

# Generate 10 ULIDs
python3 scripts/uuid_toolkit.py generate ulid --count 10

# Parse a UUID
python3 scripts/uuid_toolkit.py parse 550e8400-e29b-41d4-a716-446655440000

Commands

generate

Create identifiers of any type:

python3 scripts/uuid_toolkit.py generate uuid4                      # Random UUID
python3 scripts/uuid_toolkit.py generate uuid1                      # Time-based UUID
python3 scripts/uuid_toolkit.py generate uuid5 --name example.com   # Deterministic
python3 scripts/uuid_toolkit.py generate ulid                       # Sortable ULID
python3 scripts/uuid_toolkit.py generate nanoid --size 16           # Short NanoID
python3 scripts/uuid_toolkit.py generate uuid4 --count 100 --upper  # Bulk, uppercase
python3 scripts/uuid_toolkit.py generate nil                        # Nil UUID

Types: uuid4, uuid1, uuid3, uuid5, ulid, nanoid, nil.

parse

Extract detailed info from an identifier:

python3 scripts/uuid_toolkit.py parse 550e8400-e29b-41d4-a716-446655440000
python3 scripts/uuid_toolkit.py parse 01ARYZ6S41T1ZTXYZ1234ABCDE  # ULID

Shows version, variant, timestamp (v1/ULID), node/MAC (v1), hex, integer.

validate

Check if identifiers are valid:

python3 scripts/uuid_toolkit.py validate 550e8400-e29b-41d4-a716-446655440000 not-a-uuid

convert

Convert UUID between representations:

python3 scripts/uuid_toolkit.py convert 550e8400-e29b-41d4-a716-446655440000

Outputs: standard, uppercase, no-dashes, URN, integer, base64, bytes-LE, braces.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 09:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,610
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,964
productivity

Agent Invoice Generator

johnnywang2001
根据自然语言或结构化数据生成专业的PDF发票,适用于用户请求创建发票、向客户计费或生成收据等场景。
★ 0 📥 668