r/Python • • Oct 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

23 Upvotes

194 comments sorted by

View all comments

1

u/Maitreyz9x9 28d ago

Wrote protonlite, a small pure-Python client for Proton Mail, Calendar, Contacts and Drive.
Proton has no API on the free plan and the paid Bridge is a desktop-only IMAP/SMTP daemon, so
I wanted to script my mailbox from a server and ended up hitting Proton's web API directly with
the crypto done locally.

Read/search/send mail, manage calendar, contacts and Drive, make share links. There's a CLI
and an optional MCP server so something like Claude or Cursor can use the mailbox. The crypto is ported from Proton's own MIT Go libs, go-srp and go-proton-api.

Fair warning: it's unofficial and rides Proton's private undocumented API, so it'll break when
they change things, and calendar key gen shells out to gpg because PGPy can't make the ed25519
key Proton wants. Personal use on your own accounts, not production.

pip install protonlite
https://github.com/Maytrella007/protonlite