# skorokithakis/shortuuid

A generator library for concise, unambiguous and URL-safe UUIDs.

Repository: https://github.com/skorokithakis/shortuuid
Canonical: https://ross.abutalabs.com/products/shortuuid
Homepage: http://www.stavros.io/
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2026-06-20T09:36:29+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 5716, "days_push": 74, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2196, forks 117 (observed 2026-08-28T04:06:25.218501+00:00)

## What it is
shortuuid is a Python library that generates concise, unambiguous, URL-safe UUIDs by translating standard UUIDs to a base57 alphabet that omits look-alike characters. It also supports custom alphabets, encoding/decoding existing UUIDs, and generating cryptographically secure random strings.

## Use cases
- generate short user-facing unique ids
- create url-safe uuids for slugs and links
- encode and decode existing uuids to shorter strings
- generate random secure strings with a custom alphabet
- avoid ambiguous characters like l, 1, O and 0 in ids

## When to choose
- you need non-sequential ids that users will see and type
- you want url-safe, human-friendly identifiers in a Python project
- you need to shorten existing UUIDs reversibly

## When to avoid
- you need cryptographically strong uniqueness guarantees with truncated ids
- you need standard UUID format for interoperability
- you are not working in Python

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, web-development, databases
- platform: python, cross-platform
- tags: uuid, short-ids, url-safe, base57, identifier-generation

## Member repositories
- skorokithakis/shortuuid (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:25.218501+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:13.708965+00:00, confidence not recorded.
  - readme: https://github.com/skorokithakis/shortuuid (fetched 2026-08-28T04:06:25.218501+00:00, sha f515ff35de63)
  - homepage: http://www.stavros.io/ (fetched 2026-08-29T10:27:35.286558+00:00, sha 28decc6b5fb1)
  - site_page: https://www.stavros.io/about (fetched 2026-08-29T10:27:35.289847+00:00, sha 619d4698256b)
  - registry_pypi: https://pypi.org/pypi/shortuuid/json (fetched 2026-08-29T10:27:35.291724+00:00, sha 558e02f332a2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
