{"id":22363,"library":"shortid","title":"shortid","description":"A short id generator for Python, producing compact, URL-friendly unique identifiers. Version 0.1.2 is the latest release; the library appears to be in maintenance mode with no recent updates.","status":"active","version":"0.1.2","language":"python","source_language":"en","source_url":"https://github.com/corpix/shortid","tags":["id-generator","short-id","unique-id"],"install":[{"cmd":"pip install shortid","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct module import does not provide the class; you must import ShortId explicitly.","wrong":"import shortid","symbol":"ShortId","correct":"from shortid import ShortId"}],"quickstart":{"code":"from shortid import ShortId\n\nsid = ShortId()\nshort_id = sid.generate()\nprint(short_id)  # e.g., 'B1rH9k'","lang":"python","description":"Generate a short, URL-friendly unique identifier."},"warnings":[{"fix":"If you need secure IDs, consider a different library or use secrets.token_urlsafe()","message":"ShortId() without arguments uses default alphabet (case-sensitive alphanumeric). Generated IDs are not cryptographically random; use secrets module if you need stronger uniqueness.","severity":"gotcha","affected_versions":"all"},{"fix":"Test with your Python version; if broken, consider alternatives like shortuuid or pyshorteners.","message":"The library has not been updated since 2017 and may not support modern Python versions (3.10+). Build failures possible.","severity":"deprecated","affected_versions":"0.1.2"}],"env_vars":null,"search_vec":"'0.1.2':16 'appear':23 'compact':9 'friend':12 'generat':5,35 'id':4,34,38,41 'id-gener':33 'identifi':14 'latest':19 'librari':22 'mainten':27 'mode':28 'produc':8 'python':7 'recent':31 'releas':20 'short':3,37 'short-id':36 'shortid':1 'uniqu':13,40 'unique-id':39 'updat':32 'url':11 'url-friend':10 'version':15","created_at":"2026-04-27T17:04:46.317542+00:00","updated_at":"2026-04-27T17:04:46.317542+00:00","problems":[{"fix":"Run: pip install shortid","cause":"The package is not installed.","error":"ModuleNotFoundError: No module named 'shortid'"},{"fix":"Use: from shortid import ShortId","cause":"Incorrect import path.","error":"ImportError: cannot import name 'ShortId' from 'shortid'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.1.2","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/corpix/shortid","docs":null,"changelog":null,"pypi":"https://pypi.org/project/shortid/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-28","install_tag":null}}