r/Python • u/AutoModerator • 21d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
28
Upvotes
r/Python • u/AutoModerator • 21d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/dierz-pro 15d ago
PyJWT is a library you install once and never think about. That was my problem:
I stopped noticing the microseconds it added to every request. A few million
requests later, the "tiny tax" felt personal.
So: cyjwt â same API, same tokens, Cython core.
- HS256 decode ~2.5x faster than PyJWT 2.15.1, encode ~1.7x;
- ~1 KB token: ~5.4x decode (PyJWT walks base64url in Python, ours stays in C);
- RS256 encode: 1.00x â crypto dominates, no magic there.
Zero deps for HS*, optional cryptography extra, differential tests against
PyJWT, Apache-2.0. No JWK/JWKS yet; manylinux x86_64 wheels for cp312âcp315,
otherwise sdist.
pip install cyjwt
https://github.com/ivlevdenis/cyjwt
Feedback on API gaps and parity-breaking tokens welcome.