MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / bytes_to_hex

Function bytes_to_hex

sdk/python/src/dstack_sdk/encrypt_env_vars.py:36–38  ·  view source on GitHub ↗

Convert bytes to hex string.

(data: bytes)

Source from the content-addressed store, hash-verified

34
35
36def bytes_to_hex(data: bytes) -> str:
37 """Convert bytes to hex string."""
38 return data.hex()
39
40
41async def encrypt_env_vars(envs: List[EnvVar], public_key_hex: str) -> str:

Callers 2

encrypt_env_varsFunction · 0.85
encrypt_env_vars_syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected