shortuuid 开源Python URL UUID生成器
shortuuid开源的Python UUID生成器
shortuuid,是一个开源的Python第三方库。据Github上的介绍,shortuuid is a simple python library that generates concise, unambiguous, URL-safe UUIDs.可以用于快速地生成UUID。UUID 是 通用唯一识别码(Universally Unique Identifier)的缩写,是一种软件建构的标准,亦为开放软件基金会组织在分布式计算环境领域的一部分。其目的,是让分布式系统中的所有元素,都能有唯一的辨识信息。
shortuuid应用实例
>>> import shortuuid
>>> shortuuid.uuid()
'vytxeTZskVKR7C7WgdSP3d'
>>> shortuuid.uuid(name="example.com")
'exu3DTbj2ncsn9tLdLWspw'
Github开源协议和stars
BSD-3-Clause license
Github 1.9k stars
shortuuid安装命令
pip install shortuuid
Python版本要求
Python 3.x.
shortuuid文档
Github:shortuuid
免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。