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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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