返回顶部
u

uuid-toolkitUUID工具包

Generate, parse, validate, and convert UUIDs (v1/v3/v4/v5), ULIDs, and NanoIDs. Use when creating unique identifiers, parsing existing UUIDs to extract version/timestamp/node info, validating identifier formats, converting between UUID representations (hex, base64, URN, integer), or generating bulk IDs. No external dependencies.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
205
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

uuid-toolkit

UUID 工具包

生成、解析、验证和转换 UUID、ULID 和 NanoID。零依赖(Python 3.9+)。

快速开始

bash

生成一个 UUIDv4


python3 scripts/uuid_toolkit.py generate uuid4

生成 10 个 ULID

python3 scripts/uuid_toolkit.py generate ulid --count 10

解析一个 UUID

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

命令

generate

创建任意类型的标识符: bash python3 scripts/uuid_toolkit.py generate uuid4 # 随机 UUID python3 scripts/uuid_toolkit.py generate uuid1 # 基于时间的 UUID python3 scripts/uuid_toolkit.py generate uuid5 --name example.com # 确定性 UUID python3 scripts/uuid_toolkit.py generate ulid # 可排序的 ULID python3 scripts/uuid_toolkit.py generate nanoid --size 16 # 短 NanoID python3 scripts/uuid_toolkit.py generate uuid4 --count 100 --upper # 批量生成,大写 python3 scripts/uuid_toolkit.py generate nil # 空 UUID

类型:uuid4、uuid1、uuid3、uuid5、ulid、nanoid、nil。

parse

从标识符中提取详细信息: bash python3 scripts/uuid_toolkit.py parse 550e8400-e29b-41d4-a716-446655440000 python3 scripts/uuid_toolkit.py parse 01ARYZ6S41T1ZTXYZ1234ABCDE # ULID

显示版本、变体、时间戳(v1/ULID)、节点/MAC(v1)、十六进制、整数。

validate

检查标识符是否有效: bash python3 scripts/uuid_toolkit.py validate 550e8400-e29b-41d4-a716-446655440000 not-a-uuid

convert

在表示形式之间转换 UUID: bash python3 scripts/uuid_toolkit.py convert 550e8400-e29b-41d4-a716-446655440000

输出:标准、大写、无连字符、URN、整数、base64、小端字节、花括号。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 uuid-toolkit-1776378434 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 uuid-toolkit-1776378434 技能

通过命令行安装

skillhub install uuid-toolkit-1776378434

下载

⬇ 下载 uuid-toolkit v1.0.0(免费)

文件大小: 4.36 KB | 发布时间: 2026-4-17 16:27

v1.0.0 最新 2026-4-17 16:27
- Initial release of uuid-toolkit.
- Generate, parse, validate, and convert UUIDs (v1, v3, v4, v5), ULIDs, and NanoIDs.
- Supports creating, parsing, and validating identifiers, as well as converting between multiple string and binary formats.
- Offers bulk ID generation, extraction of UUID metadata (version, timestamp, node), and nil UUID support.
- No external dependencies required (Python 3.9+).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部