Skip to main content

Almost Unique IDs

Project description

almost-unique-id

Get almost unique ID names. This package randomly selects an adjective-Name pair from 24,567,933 unique pairs.

These IDs serve much the same pupose as generating a random hex string, that is to get random names for things that are (extrememly) unlikely to overlap. This project was developed alongside several scientific research projects where many trial of an experiment needed to be named distictly. We find that Enlglish languane keys are easier to discuss and remember than some number of digits/letters that might be unpronounceable.

Feel free to use this for any such application. If you have a use for this that you think is worth mentioning in the README, feel free to open a PR and add it so the description.

Installation

This package is installable with pip:

$ pip install almost-unique-id

Or, you can install it from source by git cloning it and installing with pip as follows.

$ git clone https://github.com/aks2203/almost-unique-id.git
$ cd almost-unique-id
$ pip install -e .

Example

from almost_unique_id import generate_id

run_id = generate_id()

Sources:

The names and adjectives are copied from other sources. An effort was made to find a list without explicit content.

The names are copied from this file.

The adjectives are copied from thi file.

Development and Contribution

We believe in open-source community driven software development. Please open issues and pull requests with any questions or improvements you have.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

almost_unique_id-0.0.3.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

almost_unique_id-0.0.3-py3-none-any.whl (74.4 kB view details)

Uploaded Python 3

File details

Details for the file almost_unique_id-0.0.3.tar.gz.

File metadata

  • Download URL: almost_unique_id-0.0.3.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for almost_unique_id-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6a23fa12eb88ad3da80efb97d190df021ea1bed0346931f84730ce94a8087394
MD5 1a15f3abcd6842e3693c5cc94d4a6a1e
BLAKE2b-256 fb969a56def041bbd05f8aaf426c2da58ded7c53bf4e2b529d51ac797c00fbd2

See more details on using hashes here.

File details

Details for the file almost_unique_id-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for almost_unique_id-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b2231da1dd265722ff7ef57475c3b5c0f3d1cea501b2b091da4a5c9f78dd72
MD5 fa1e401d0e1333c9317f7c5c16b704fa
BLAKE2b-256 05736d3575c2cd878fa97641dc2d1d5bed0a08a1a741c1469d882b127cfba5ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page