跳转到主要内容

提供数字与英文单词列表之间的双射。

项目描述

word_identifiers

这是一个非负整数与英文单词列表之间的双射。这有助于快速创建url或令牌。

用法

>>> from word_identifiers import words_to_id, id_to_words
>>> id_to_words(76985270495720357)
['head', 'dance', 'bully', 'race', 'gate', 'color']
>>> words_to_id(['head', 'dance', 'bully', 'race', 'gate', 'color'])
76985270495720357

单词列表

使用的单词列表是这个公有领域单词列表,由Michael Wehar汇编。

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

word-identifiers-1.0.0.tar.gz (6.5 kB 查看哈希值)

上传时间: 源代码

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面