生成像docker和github这样的随机形容词-名词名称。
项目描述
randomname
使用真实单词生成随机唯一ID - 像docker容器或github仓库。
通常,我厌倦了试图在用一些数字ID区分的文件夹中寻找文件,除非我需要将时间步长编码到名称中,否则我更愿意使用易于记忆和输入的ID。
单词表由以下来源慷慨提供: https://github.com/imsky/wordlists
注意:如果您在这些单词表中遇到任何令人反感的单词,请通过问题报告给我!任何使用的单词表都来自外部来源,有很多单词。
安装
pip install randomname
使用方法
# get adj-noun:
$ randomname get
# sleek-voxel
$ randomname get
# frayed-potentiality
$ randomname get
# recursive-vector
$ randomname get
# convoluted-peninsula
# specify adj-noun sub-categories (respectively):
$ randomname get weather shopping,cats
# freezing-store
# or define your own format:
$ randomname generate adj/sound n/apex_predators
# blaring-crocodile
# use multiple categories:
$ randomname generate v/art,v/thought a/sound n/apex_predators
# doodle-silent-salamander
# mix in your own words (e.g. "cat"):
$ randomname generate v/fire a/music_theory n/cats cat
# toast-adagio-angora-cat
列表包括各种词类
adjectives
(a
,adj
) - 你知道那些描述性的东西- 例如
a/colors
,adj/shape
,adjectives/sound
- 例如
nouns
(n
,nn
) - 人,地方,事物- 例如
n/cats
,nn/ghosts
,nouns/wine
- 例如
verbs
(v
,vb
) - 做事情- 例如
v/art
,vb/3d_graphics
- 例如
names
(nm
) - 像姓氏,街道,城市等的东西- 例如
nm/cities
,names/codenames
- 例如
ipsum
(ip
) - 其他- 例如
ip/reddit
,ipsum/blockchain
- 例如
它也可以导入!
import randomname
# generate name using all categories
name = randomname.get_name()
# or specify a subset of the categories
name = randomname.get_name(adj=('music_theory',), noun=('cats', 'food'))
# or - you can take a bit more liberty about
name = randomname.generate(
'v/fire', 'adj/music_theory', ('n/cats', 'n/food'))
# these contain the available groups
print('adjective categories:', randomname.ADJECTIVES)
print('noun categories:', randomname.NOUNS)
可用
形容词
速度
,天气
,形状
,声音
,物理
,温度
,公司前缀
,复杂度
,颜色
,味道
,数量
,大小
,算法
,几何
,材料
,建筑
,音乐理论
,外观
,语言学
,情感
,年龄
,性格
名词
会计
,堡垒
,印刷术
,酒精
,棉花
,汽车零部件
,购物
,化学
,调味品
,游戏
,猫
,房地产
,木材
,海军
,酒
,音乐制作
,运动
,肉类
,物理
,物理-波
,公司
,网页开发
,调味品
,设计
,汽车
,金属
,快餐
,收音机
,物理-单位
,空军
,3D打印
,3D图形
,旅行
,狗
,房屋
,天文学
,建筑
,矿物
,初创企业
,算法
,水果
,顶级捕食者
,基础设施
,几何
,集合理论
,鬼魂
,陆军
,乐器
,电影制作
,鸟类
,建筑
,音乐理论
,公司职位
,驾驶
,线性代数
,鱼
,编码
,建筑
,写作
,电话
,机器学习
,家具
,历史
,植物
,奶酪
,食物
,容器
,版本控制系统
,水
,存储
,地理
,物理-光学
,数据结构
,剧本写作
,保险
动词
图形
,运动
,音乐
,烹饪
,思想
,海军
,音乐制作
,操作
,运动
,公司
,创造
,破坏
,数量
,收音机
,3D图形
,看
,开火
,收集
,编程
,艺术
,驾驶
,版本控制系统
,通信
,网络
ipsum
公司
,嬉皮士
,区块链
,lorem
,
示例
extremal-cluster
,cerulean-portal
,afraid-cabana
,forward-segment
,angry-croissant
,coffee-shore
,binding-frontlist
,nondeterministic-wall
,cool-quail
,optical-valid
,ornery-solenoid
,immense-aside
,square-loan
,fast-limiter
,wicker-tritone
,white-commander
,wan-flam
,violent-slider
,isothermal-lark
,seething-luggage
,resolving-section
,steel-snippet
,shortest-linkage
,oscillating-palisade
,tense-nailer
,adjacent-sea
,mechanical-molding
,cold-feed
,either-scene
,crazy-boundary
,simple-bass
,roaring-annuity
,paper-melt
,scared-angle
,shiny-hydrolysis
,ornery-pretzel
,brute-force-keel
,worn-cliff
,brownian-contingency
,naive-shop
,heartless-object
,bronze-microphone
,universal-yeoman
,icy-reflection
,blue-cliche
,forward-integrator
,trusting-cobra
,online-assignment
,religious-gun
,quiet-hook
,blaring-quaver
,archaic-height
,eager-oboe
,leather-narrator
,shortest-bucket
,free-matrix
,radioactive-loss
,glossy-take
,formal-schema
,quantum-agreement
,local-bit
,bone-centroid
,cyan-resin
,mild-chimpanzee
,mute-bugle
,amiable-margin
,basic-pond
,humane-tangerine
,horizontal-bocaccio
,big-export
,pleasant-facet
,fixed-glass
,muffled-futon
,volumetric-simulation
,piercing-skier
,pleasant-observatory
,honest-hound
,cross-recon
,future-surface
,ash-crew
,medium-stunt
,latent-mayonnaise
,nippy-valance
,open-gate
,crazy-papaya
,khaki-bat
,honest-melon
,congruent-truss
,express-flat
,glad-simulation
,sizzling-parakeet
,interior-pantone
,coplanar-gully
,merciless-mud
,direct-asadero
,several-jackdaw
,wide-agent
,fixed-heather
,kind-slab
,genteel-designer
项目详情
randomname-0.2.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b79b98302ba4479164b0a4f87995b7bebbd1d91012aeda483341e3e58ace520e |
|
MD5 | 84140c06667b9615fae850708ac369ab |
|
BLAKE2b-256 | e8c2525e9e9b458c3ca493d9bd0871f3ed9b51446d26fe82d462494de188f848 |