Spaces:
Runtime error
Runtime error
Download app/utils/email_encode.py from Vinit006/EmailAgentwithMemory: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/Vinit006/EmailAgentwithMemory/resolve/b77da2b28d5a9bcb2f13ec2c7fe5bd7a87b0bc5e/app/utils/email_encode.py
- Command line
-
hf download hf://spaces/Vinit006/EmailAgentwithMemory@b77da2b28d5a9bcb2f13ec2c7fe5bd7a87b0bc5e/app/utils/email_encode.py
-
curl -L -o email_encode.py https://huggingface.co/spaces/Vinit006/EmailAgentwithMemory/resolve/b77da2b28d5a9bcb2f13ec2c7fe5bd7a87b0bc5e/app/utils/email_encode.py
217 Bytes
| import base64 | |
| def encode_email_for_namespace(email: str) -> str: | |
| """Encodes email to a safe string without periods.""" | |
| return base64.b32encode(email.lower().encode("utf-8")).decode("utf-8").replace("=", "") |