Le code semble déjà exister pour Discourse
mais plus important encore, ceci est implémenté ailleurs, et Gravatar et Libravatar le prennent explicitement bien en charge.
Par exemple, voici un document que j’ai créé sur la prise en charge de Libravatar
https://gitlab.com/-/snippets/2590066/raw/main/s0s2gl.txt.md
0. **APIs**
* https://wiki.libravatar.org/api/
* https://metacpan.org/pod/Libravatar::URL
```python3
email = ''.encode('utf-8')
hash = hashlib.md5(email.strip().lower()).hexdigest()
print(hash)
```
-
Exemples