Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /shared /encode_uuid.py
| from uuid import UUID | |
| def encode_uuid(uuid: UUID) -> str: | |
| uuid_int = uuid.int | |
| base = 52 | |
| charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| encoded = "" | |
| while len(encoded) < 36: | |
| uuid_int, remainder = divmod(uuid_int, base) | |
| uuid_int = uuid_int * 8 | |
| encoded = charset[remainder] + encoded | |
| return encoded | |
Xet Storage Details
- Size:
- 366 Bytes
- Xet hash:
- 2d86ab9688489017b686c5f2e039e571daccb14c04a0456de888d89185decc54
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.