Skip to content

alexdredmon/cuteuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CuteUID

Generate cute UIDs, i.e. unique(ish) identifiers that are similar in appearance to UUIDs.

Install

pip install cuteuid

View on PyPi via https://pypi.org/project/cuteuid/

Usage

from cuteuid import generate_cuteuid

generate_cuteuid()                  # 1337 UID
# 3xampl3a-boy1-goa1-5ucc33dd3p7h
# d1v151on-5ho3-1w31-d1571ngu15ha
# 7ak351h3-k33p-175a-5ympa7h371c1

generate_cuteuid(hex_only=True)     # 1337 UID (hex only)
# 10adca9a-4057-5a13-901171ca1136
# 0ff1c1a1-50f7-f33d-43517a73b3d1
# ad01053a-9057-7311-c411d400da50

generate_cuteuid(emoji=True)        # EmojiUID
# โ›นโ€โ™‚๏ธ๐Ÿงœโ€โ™‚๏ธโฌœ๏ธ3๏ธโƒฃ๐Ÿ“๐Ÿงน๐Ÿคด๐Ÿ—พโž–๐Ÿ‡ต๐Ÿ‡ฐ๐Ÿ“”๐Ÿ’น๐ŸŒณโž–๐Ÿ‡ฎ๐Ÿ‡ด๐Ÿ…๐Ÿ›‚๐Ÿ‡น๐Ÿ‡ฑโž–๐Ÿ‡ง๐Ÿ‡ฑ๐Ÿ—พ๐Ÿ•ฃ๐Ÿ’ฟ๐Ÿ‘ฑโ€โ™€๏ธ๐Ÿ’žโ—๏ธ๐Ÿ‘ท๐Ÿ‡ธ๐Ÿ‡ช๐Ÿคค๐Ÿ„โ€โ™‚๏ธ๐Ÿฒ
# ๐Ÿ…๐Ÿงซ๐Ÿ‹โ€โ™‚๏ธ๐Ÿ‡น๐Ÿ‡ฑ๐Ÿ‘ซ๐Ÿ‡ฆ๐Ÿ‡ฑ๐Ÿ‡น๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡บโž–๐Ÿ˜š๐Ÿคฝโ€โ™‚๏ธ๐Ÿ‘‚๐Ÿ’ฎโž–๐Ÿ‘ฉโ€๐Ÿ”ฌ๐Ÿ˜จ๐Ÿ‘ญ๐Ÿ‡ฆ๐Ÿ‡ฉโž–๐Ÿฆ๐Ÿ”ท๐Ÿ‡ต๐Ÿ‡ฆ๐ŸŽ๐Ÿ˜“๐Ÿฅ—๐Ÿฅต๐Ÿคพโ€โ™€๏ธ๐Ÿง—โ€โ™€๏ธ๐Ÿ˜ฝ๐Ÿ›ต๐Ÿ—บ
# ๐Ÿ‘…๐Ÿง๐Ÿ™…โ€โ™‚๏ธ๐Ÿš‡๐Ÿ“˜๐Ÿš•๐Ÿ‘ญโ›น๏ธโ€โ™€๏ธโž–๐Ÿคฝโ€โ™€๏ธ๐Ÿ•ต๏ธโ€โ™‚๏ธ๐ŸŒโ€โ™€๏ธ๐Ÿฆ˜โž–๐Ÿ„โ€โ™‚๏ธ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿˆด๐ŸŽ—โž–๐Ÿ’•๐Ÿ’‚โ€โ™‚๏ธ๐Ÿณ๏ธ๐Ÿง๐Ÿ˜ฅ๐Ÿ‡ฌ๐Ÿ‡ณ๐Ÿ’€๐Ÿค•๐Ÿ”ป๐Ÿ™†๐ŸŸ๐Ÿ‡ต๐Ÿ‡ผ

generate_cuteuid(                   # EmojiUID (flags only)
    emoji=True,
    flags_only=True
)
# ๐Ÿ‡ฑ๐Ÿ‡ง๐Ÿ‡ผ๐Ÿ‡ธ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฒ๐Ÿ‡ณ๐Ÿ‡ฌ๐Ÿ‡น๐Ÿ‡ฆ๐Ÿ‡ฒ๐Ÿ‡ฌ๐Ÿ‡ถ๐Ÿ‡ฌ๐Ÿ‡พโž–๐Ÿ‡ธ๐Ÿ‡ง๐Ÿ‡ฒ๐Ÿ‡บ๐Ÿ‡ง๐Ÿ‡ฌ๐Ÿ‡ธ๐Ÿ‡ฑโž–๐Ÿ‡ฎ๐Ÿ‡ธ๐Ÿ๐Ÿ‡ช๐Ÿ‡บ๐Ÿ‡ฑ๐Ÿ‡ปโž–๐Ÿ‡ฟ๐Ÿ‡ฒ๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ๐Ÿ‡ธ๐Ÿ‡ธ๐Ÿ‡ต๐Ÿ‡ฒ๐Ÿ‡ฌ๐Ÿ‡ถ๐Ÿ‡ง๐Ÿ‡ฌ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ฒ๐Ÿ‡ฐ๐Ÿ‡ฟ๐Ÿ‡ผ๐Ÿ‡ธ๐Ÿ‡ญ๐Ÿ‡ฌ๐Ÿ‡ถ๐Ÿ‡ฎ๐Ÿ‡ด
# ๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฎ๐Ÿ‡ธ๐Ÿ‡ผ๐Ÿ‡ซ๐Ÿ‡น๐Ÿ‡ฉ๐Ÿ‡ต๐Ÿ‡ซ๐Ÿšฉ๐Ÿ‡ง๐Ÿ‡ซ๐Ÿ‡ฌ๐Ÿ‡ถโž–๐Ÿ‡จ๐Ÿ‡ฐ๐Ÿ‡ฒ๐Ÿ‡ช๐Ÿ‡ซ๐Ÿ‡ฏ๐Ÿ‡ฟ๐Ÿ‡ฆโž–๐Ÿ‡ฌ๐Ÿ‡ฑ๐Ÿ‡น๐Ÿ‡ฌ๐Ÿ‡ถ๐Ÿ‡ฆ๐Ÿ‡ณ๐Ÿ‡จโž–๐Ÿ‡ฟ๐Ÿ‡ผ๐Ÿ‡ฒ๐Ÿ‡ฌ๐Ÿ‡ธ๐Ÿ‡ฎ๐Ÿ‡ฌ๐Ÿ‡ญ๐Ÿ‡บ๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฆ๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ๐Ÿ‡น๐Ÿ‡น๐Ÿ‡ป๐Ÿ‡บ๐Ÿ‡ณ๐Ÿ‡ด๐Ÿ‡ง๐Ÿ‡ถ๐Ÿ‡น๐Ÿ‡ป
# ๐Ÿ‡ฒ๐Ÿ‡ฆ๐Ÿ‡ฌ๐Ÿ‡ถ๐Ÿ‡ง๐Ÿ‡ฑ๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ๐Ÿ‡น๐Ÿ‡ป๐Ÿ‡ฑ๐Ÿ‡ท๐Ÿ‡ป๐Ÿ‡ณ๐Ÿ‡ฒ๐Ÿ‡พโž–๐Ÿ‡ช๐Ÿ‡ฌ๐Ÿ‡ธ๐Ÿ‡ฆ๐Ÿ‡ง๐Ÿ‡ซ๐Ÿ‡จ๐Ÿ‡บโž–๐Ÿ‡จ๐Ÿ‡ป๐Ÿ‡ป๐Ÿ‡จ๐Ÿ‡บ๐Ÿ‡ฟ๐Ÿ‡ซ๐Ÿ‡ทโž–๐Ÿ‡น๐Ÿ‡ฉ๐Ÿ‡ฒ๐Ÿ‡ท๐Ÿ‡ธ๐Ÿ‡ฐ๐Ÿดโ€โ˜ ๏ธ๐Ÿ‡ท๐Ÿ‡ธ๐ŸŽŒ๐Ÿ‡ฐ๐Ÿ‡ช๐Ÿ‡น๐Ÿ‡ฒ๐Ÿ‡จ๐Ÿ‡ฒ๐Ÿ‡จ๐Ÿ‡ด๐Ÿ‡ฌ๐Ÿ‡ธ๐Ÿ

generate_cuteuid(                   # EmojiUID (smileys only)
    emoji=True,
    smileys_only=True
)
# ๐Ÿ˜‡๐Ÿ˜ ๐Ÿ˜ฒ๐Ÿ˜ข๐Ÿ˜š๐Ÿ˜๐Ÿ˜๐Ÿ˜Œโž–๐Ÿ™๐Ÿคฎ๐Ÿ˜ฃ๐Ÿ™โž–๐Ÿฅฐ๐Ÿ˜‘๐Ÿคก๐Ÿคฅโž–๐Ÿ™๐Ÿ˜ž๐Ÿ˜๐Ÿคข๐Ÿคข๐Ÿคฌ๐Ÿ˜‚๐Ÿ˜’๐Ÿคข๐Ÿ˜š๐Ÿ˜ฐ๐Ÿ˜
# ๐Ÿ˜ฅ๐Ÿคซ๐Ÿ˜จ๐Ÿคข๐Ÿ˜”๐Ÿ˜ง๐Ÿ˜ฉ๐Ÿ˜ถโž–๐Ÿ˜ฐ๐Ÿ˜™๐Ÿฅด๐Ÿ˜„โž–๐Ÿ˜‘๐Ÿ˜จ๐Ÿ˜ฒ๐Ÿฅดโž–๐Ÿ˜ฐ๐Ÿ˜ฒ๐Ÿฅณ๐Ÿ˜ญ๐Ÿ™๐Ÿ˜Ÿ๐Ÿ˜š๐Ÿ˜€๐Ÿ˜ถ๐Ÿค ๐Ÿคฅ๐Ÿ˜„
# ๐Ÿ˜ฌ๐Ÿคข๐Ÿค“๐Ÿค ๐Ÿคข๐Ÿ˜ฅ๐Ÿ˜ช๐Ÿ˜‘โž–๐Ÿฅด๐Ÿ™„๐Ÿ˜ ๐Ÿ˜ขโž–๐Ÿ™ƒ๐Ÿ˜†๐Ÿ˜Š๐Ÿคฅโž–๐Ÿคฏ๐Ÿ˜’๐Ÿ˜ข๐Ÿฅถ๐Ÿ˜จ๐Ÿ˜Œ๐Ÿ˜ง๐Ÿ™๐Ÿ˜ฎ๐Ÿ˜ฃ๐Ÿคญ๐Ÿ˜”

Preprocess

To rerun 1337 text preprocesing (translating word list into 1337 and hex 1337), update preprocess.py to point WORDLIST_URL to a URL containing a valid JSON list of words and run:

make preprocess

Disclaimer

This project is intended for entertainment purposes only - it is not recommended for use in your production or intended as a replacement to existing UUID generation mechanisms. It might be a fun thing to include in your non-mission critical personal project(s), provided you're the right kind of weird.

License

The MIT License (MIT)

Copyright (c) 2019 Alex Redmon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

๐Ÿ˜Š Generate cute UIDs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published