Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kis_uid_generator_utils-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

kis_uid_generator_utils-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for kis_uid_generator_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ea19cdf211dfcdd19fde0083903cdfb59cd8c51b2697f9e1a2780ddb099aaac
MD5 db06f760d46eaaea050d0a8c7bb39f09
BLAKE2b-256 9ef7fe0bb4201a809daac5f8b8cd6c1208ff09c4d1c9b563822544ed76068dfa

See more details on using hashes here.

File details

Details for the file kis_uid_generator_utils-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kis_uid_generator_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83d2fd05a4971e93a54c187f058ac353c1a29d279baa25dc65bdefe04b1d1d66
MD5 3af35a2ffde6c506faeb09ec8672cad2
BLAKE2b-256 68383f44e6c9bf381f54d1c872b226fc049526c43e7d3641ca7560d530724aae

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