Collection of Python modules for generating unique identifiers.
Project description
Collection of Python modules for generating unique identifiers.
Installation
pip install kis-uid-generator-utils
Usage
Example Python script:
from kis_uid_generator_utils import constants
from kis_uid_generator_utils.generator import Generator
config_file = constants.DEFAULT_CONFIG_FILE
# Example usage
if __name__ == "__main__":
generator = Generator(config_file=config_file)
# Generate some example IDs
print(generator.generate_id("gene")) # e.g., "GN-5f8b3a2e-20250304"
print(generator.generate_id("protein", "BRCA1")) # e.g., "PR-BRCA1-7a9c2d1f-20250304"
print(generator.generate_id("variant")) # e.g., "VR-8b3e4f5a-20250304"
Invocation:
python example.py
GN-192f63b6-20250305
PR-BRCA1-0ed3e01b-20250305
VR-6e2bf02e-20250305
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 kis_uid_generator_utils-0.1.1.tar.gz.
File metadata
- Download URL: kis_uid_generator_utils-0.1.1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea19cdf211dfcdd19fde0083903cdfb59cd8c51b2697f9e1a2780ddb099aaac
|
|
| MD5 |
db06f760d46eaaea050d0a8c7bb39f09
|
|
| BLAKE2b-256 |
9ef7fe0bb4201a809daac5f8b8cd6c1208ff09c4d1c9b563822544ed76068dfa
|
File details
Details for the file kis_uid_generator_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kis_uid_generator_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d2fd05a4971e93a54c187f058ac353c1a29d279baa25dc65bdefe04b1d1d66
|
|
| MD5 |
3af35a2ffde6c506faeb09ec8672cad2
|
|
| BLAKE2b-256 |
68383f44e6c9bf381f54d1c872b226fc049526c43e7d3641ca7560d530724aae
|