A unique number generator
Project description
DISTINCTID
With distinctid, you can generate distinct/unique IDs. Just think of it as something that can replace your UUID. It has the advantage of being a long integer and can be sorted in ASC or DESC order.
Philosophy
This code is pure Python and relies on this article which led to this, this and this present project you are reading now.
100% Unittest Coverage
See the unittest to know how to use it
pip install coverage
# unittest
python -m unittest discover
# OR
# coverage with unittest
coverage run -m unittest discover \
&& coverage html && coverage report
# browse: htmlcov/index.html
How to Compile
pip install build twine
python3 -m build
# add the below line to pyproject.toml to upload, but it has to be removed for the build to work
[pypi]
username = __token__
# upload
python3 -m twine upload --repository distinctid dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file distinctid-1.0.4.tar.gz.
File metadata
- Download URL: distinctid-1.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
712965f31d5a810e542493e14e61fe8d5d1b4847ea65c3b36a9ff1f1fb2d2057
|
|
| MD5 |
adbd26cedc08e81a3d30ae5ba3f4e9d0
|
|
| BLAKE2b-256 |
743a6c37356e255fd4243ce8adcbc52e0f23af254dab472ed2760b2ec8bf4422
|
File details
Details for the file distinctid-1.0.4-py3-none-any.whl.
File metadata
- Download URL: distinctid-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ca278a99af7337d3aeefe52c7d2007620d6d3ece19c9ecadfcbea9475bf61c
|
|
| MD5 |
975d03651c848278cd5c134e40ec44e4
|
|
| BLAKE2b-256 |
862c21160b68f29f934fb6c3b7aca23fdebe9f31ded1ad23c3027e8f8ebc5ef9
|