MCPcopy
hub / github.com/dlt-hub/dlt / uniq_id

Function uniq_id

dlt/common/utils.py:82–84  ·  view source on GitHub ↗

Returns a hex encoded crypto-grade string of random bytes with desired len_

(len_: int = 16)

Source from the content-addressed store, hash-verified

80
81
82def uniq_id(len_: int = 16) -> str:
83 """Returns a hex encoded crypto-grade string of random bytes with desired len_"""
84 return secrets.token_hex(len_)
85
86
87def uniq_id_base64(len_: int = 16) -> str:

Callers 15

__init__Method · 0.90
__ror__Method · 0.90
_cloneMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
new_file_idFunction · 0.90
push_contextMethod · 0.90
write_progressMethod · 0.90
save_atomicMethod · 0.90
move_atomic_to_fileMethod · 0.90
copy_atomic_to_fileMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_dbt_commandsFunction · 0.72
test_regular_runFunction · 0.72
dag_regularFunction · 0.72
dag_decomposedFunction · 0.72
test_runFunction · 0.72
test_parallel_runFunction · 0.72
dag_parallelFunction · 0.72