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 giving them some "quality of life" features. Stop rewriting the same piece of code in every project.

Installation

Requirements

Use this section to list unusual dependencies or dependencies that must be installed manually.

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 excl. prefix
integer length=6, prefix 6 character long integer 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 Filmage.

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.0.2.tar.gz (3.7 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.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleUID-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 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.0.2.tar.gz
Algorithm Hash digest
SHA256 5d745f4d63c77e6b1ba35b44c32eaf9297e516f794d663d08d237fe172034d5f
MD5 4cc8c4ba023a537c721c507223f80706
BLAKE2b-256 934ca8b8e8f868f1fb776b463ae78b68acdaecc26ecc545bc799fc234d5f4c47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleUID-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54afe49860fa543f15a03a6d8df31f7108c2ab150c2ffa8129ea43dd74c4082b
MD5 b2b4211063a48d0a825d4b75f64dbf66
BLAKE2b-256 68d45860fc17ebbfb34ac758f36c78928b38bda346bbc4b6df09535371f9e0a5

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