Official Python library for generating short, unique, URL-safe IDs from numbers.
Sqids Python is a library that generates short, unique, URL-safe IDs from numbers. It solves the problem of creating compact, reversible identifiers for systems like link shortening or event tracking, where IDs need to be decoded back to their original numbers for quick database lookups.
Python developers building applications that require short, reversible ID generation for public URLs, internal systems, or database optimization.
Developers choose Sqids Python for its simplicity, URL safety, and ability to decode IDs back to numbers efficiently, making it ideal for non-sensitive use cases where quick database lookups are needed.
Official Python port of Sqids. Generate short unique IDs from numbers.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Can encode arrays of non-negative integers, allowing complex ID generation from multiple data points, as demonstrated in examples encoding [1, 2, 3].
Decodes IDs back to original numbers efficiently, enabling quick database lookups without additional storage, which is core to its design for link shortening.
Auto-generated IDs avoid common profane words and are safe for URLs, with built-in blocklist support for further customization, as shown in the examples.
Sequential input numbers produce non-consecutive IDs, preventing predictable sequences and enhancing privacy in public systems like event tracking.
The algorithm can produce multiple IDs that decode to the same number sequence, which may cause issues in systems requiring unique, canonical identifiers, as noted in the README warning.
Only supports non-negative integers, restricting use with negative numbers or floating-point values, a limitation not addressed in the library's features.
Explicitly not an encryption tool, making it unsuitable for any application where data security or obscurity is a concern, as stated in the 'Not good for' section.