Skip to main content

A simple and intuitive Python package for generating unique IDs.

Project description

simpleUID (unique ID) for Python

GitHub releases PyPI release License: MIT

A simple and intuitive Python package for generating unique IDs.

This package helps developers by bringing them some "quality of life" features. Stop rewriting the same piece of code in every project.

Installation

Install using PIP

pip install simpleUID

Note the pip refers to the Python 3 package manager. In environment where Python 2 is also available the correct command may be pip3.

Usage

Import simpleUID:

import simpleUID

Create a random string:

simpleUID.string()

You can specify the string length and a prefix:

simpleUID.string(length=20, prefix='start')

All functions will take the same arguments, existing functions are:

Function Args(with default) Returns
string length=6, prefix 6 character long string
integer length=6, prefix 6 character long integer
password length=8, prefix 10 character alphanumeric password with at least one lowercase character, at least one uppercase character, and at least three digits
database cursor, method="string", length=6, prefix 6 character long string excl. prefix

Keep in mind that the prefix for the integer function should be of type int.

Support

If you found a problem with the software, please create an issue on GitHub.

Maintainer

This project is maintained by Wibo Kuipers.

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

MIT LICENSE

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

simpleUID-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpleUID-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file simpleUID-0.1.2.tar.gz.

File metadata

  • Download URL: simpleUID-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for simpleUID-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4ec7e5461327ca2c60f499fc63720268bdbc93b9279780ed13d887748b6f6d96
MD5 d82be79f12e4e73dcca92cc5270461e2
BLAKE2b-256 5f052abc6b30d61f1ce366bf259bc1a182ebd54785c1f9e773b803dae5aa068c

See more details on using hashes here.

File details

Details for the file simpleUID-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: simpleUID-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for simpleUID-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebaae7696afc8dd59c3a5cec5f162d5e591ff298cf159adf45a1e6cd697cbe8e
MD5 167480e56f312b1ec135ae56c86c8d4d
BLAKE2b-256 4e318d72e2ebbe8282ac70dbb2ea7e3511ef2b1351e87d9287129d7aea2c2b18

See more details on using hashes here.

Supported by

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