All Projects → corpix → shortid

corpix / shortid

Licence: MIT license
Short id generator

Labels

Projects that are alternatives of or similar to shortid

sandid
Every grain of sand on Earth has its own ID.
Stars: ✭ 39 (+5.41%)
Mutual labels:  id
vue-uniq-ids
Vue.js 2.x plugin that helps to use id-related attributes with no side-effect
Stars: ✭ 32 (-13.51%)
Mutual labels:  id
tsid-creator
A Java library for generating Time Sortable Identifiers (TSID).
Stars: ✭ 16 (-56.76%)
Mutual labels:  id
gid
Golang 分布式ID生成系统,高性能、高可用、易扩展的id生成服务
Stars: ✭ 55 (+48.65%)
Mutual labels:  id
distributed-id
基于netty4+twitter-snowFlake分布式Id生成之服务实现
Stars: ✭ 18 (-51.35%)
Mutual labels:  id
hide
ID type with marshalling to/from hash to prevent sending IDs to clients.
Stars: ✭ 45 (+21.62%)
Mutual labels:  id
hashids.sql
PL/pgSQL implementation of hashids library
Stars: ✭ 40 (+8.11%)
Mutual labels:  id
mongoose-auto-increment-reworked
An auto-incrementing field generator for Mongoose 4 & 5
Stars: ✭ 17 (-54.05%)
Mutual labels:  id
id-mask
IDMask is a Java library for masking internal ids (e.g. from your DB) when they need to be published to hide their actual value and to prevent forging. It has support optional randomisation has a wide support for various Java types including long, UUID and BigInteger. This library bases its security on strong cryptographic primitives.
Stars: ✭ 39 (+5.41%)
Mutual labels:  id
leafserver
🍃A high performance distributed unique ID generation system
Stars: ✭ 31 (-16.22%)
Mutual labels:  id
shortid
Super short, fully unique, non-sequential and URL-friendly Ids
Stars: ✭ 20 (-45.95%)
Mutual labels:  id
platform device id
flutter plugin to get device id
Stars: ✭ 32 (-13.51%)
Mutual labels:  id
chinaid
🇨🇳中国大陆身份证号解析/校验
Stars: ✭ 18 (-51.35%)
Mutual labels:  id
rig
RIG - A Randomised ID Card Generator
Stars: ✭ 20 (-45.95%)
Mutual labels:  id
urbit-visor
Urbit Visor is an extension which transforms your web browser into a first class Urbit client.
Stars: ✭ 65 (+75.68%)
Mutual labels:  id
goimpulse
高可用,高性能的分布式发号服务
Stars: ✭ 17 (-54.05%)
Mutual labels:  id
ids
高效的分布式id生成器,每个客户端实例tps可达到100万,服务端毫无压力。即使服务端宕机了,id生成依然可用。支持多数据中心,支持id加密。
Stars: ✭ 47 (+27.03%)
Mutual labels:  id
cedula-panama
Validador javascript de la cédula de panama. A javascript validator of the Panamenian id (cedula)
Stars: ✭ 26 (-29.73%)
Mutual labels:  id
sid
Generate Sortable Identifiers
Stars: ✭ 26 (-29.73%)
Mutual labels:  id
ulid-creator
A Java library for generating Universally Unique Lexicographically Sortable Identifiers (ULID)
Stars: ✭ 38 (+2.7%)
Mutual labels:  id

ShortId Build Status PyPI downloads

Port of the Dylang's library to Python.

ShortId creates amazingly short non-sequential url-friendly unique ids. Perfect for url shorteners, MongoDB and Reddis ids, and any other id users might see.

  • By default 7-14 url-friendly characters: A-Z, a-z, 0-9, _-
  • Non-sequential so they are not predictable.
  • Can generate any number of ids without duplicates, even millions per day.
  • Perfect for games, especially if you are concerned about cheating so you don't want an easily guessable id.
  • Apps can be restarted any number of times without any chance of repeating an id.

Install

$ pip install shortid

Usage

from shortid import ShortId

sid = ShortId()
print(sid.generate()) # dsHaFGMTL2id

License

(The MIT License)

Copyright (c) 2014 Dmitry Moskowski [email protected]

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].