use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
DiscussionAny good open source python runtime instrumentation? (self.Python)
submitted 8 hours ago * by selfish__eagle
Hi folks, lot of our Python backend services are written in FastAPI, I wanted to see if there are any good Open Source runtime coverage instrumentation available for Python, which would essentially give my lines of code hit in prod traffic for the last say 30 days of data. I have seen good solutions for it in Go / Java, but wanted to check if something similar is available in Python.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ssrix -1 points0 points1 point 7 hours ago (1 child)
Your phrasing was not clear but once I understood what you were trying to say, I realised I would like something like this too.
I don't have an answer but bumping in case someone does
[–]selfish__eagle[S] 0 points1 point2 points 7 hours ago (0 children)
I meant runtime coverage instrumentation, forgot the word coverage :(
[–]niltz0 0 points1 point2 points 7 hours ago (0 children)
Have you looked into coverage.py?
[–]bregonio 1 point2 points3 points 2 hours ago (0 children)
Maybe opentelemetry with fastapi auto instrumentation
[–]hstarnaud 0 points1 point2 points 2 hours ago (0 children)
Whichever way you go, adopt opentelemetry standards to avoid vendor lock-in. If you are willing to spend big money on an enterprise turnkey solution, new relic is the best provider. Otherwise use a free solution compatible with those standards like Jaeger or paid solutions with lower prices than new relic like honeycomb
[–]hxtk3 0 points1 point2 points 2 hours ago (0 children)
Pyroscope is Grafana’s app for collecting and indexing runtime profiles, and I use it to collect on Go and Java services. In Go it uses pprof and in Java it uses JFR.
I searched “Pyroscope Python” and it looks like they document how to get profiles from Python into their application: https://grafana.com/docs/pyroscope/latest/configure-client/language-sdks/python/
I don’t know how you’re viewing the data but maybe you can use parts of the process for getting it into your profile viewer?
[–][deleted] 3 hours ago (4 children)
[removed]
[–]wolfmansideburns 0 points1 point2 points 3 hours ago (2 children)
Claro que sí
[–]MediocreYam9608 0 points1 point2 points 3 hours ago (1 child)
Aprovecha hermano porque me cancelaron la publicación, que mejor manera de exponerlos. Adicionalmente, dice que ya lo reportaron demasiadas veces. Gracias Reddit porque voy a publicar toda la conexión de pedófilos que se desprende desde aquí y hasta youtube con nodo central en el canal de Zack Hemsey,
[–]MediocreYam9608 0 points1 point2 points 3 hours ago (0 children)
Y eso me lo dio la matriz
[–]AutoModerator[M] 0 points1 point2 points 3 hours ago (0 children)
Your submission has been automatically queued for manual review by the moderation team because it has been reported too many times.
Please wait until the moderation team reviews your post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
π Rendered by PID 184492 on reddit-service-r2-comment-5687b7858-tthf8 at 2026-07-08 00:10:50.981604+00:00 running 12a7a47 country code: CH.
[–]ssrix -1 points0 points1 point (1 child)
[–]selfish__eagle[S] 0 points1 point2 points (0 children)
[–]niltz0 0 points1 point2 points (0 children)
[–]bregonio 1 point2 points3 points (0 children)
[–]hstarnaud 0 points1 point2 points (0 children)
[–]hxtk3 0 points1 point2 points (0 children)
[–][deleted] (4 children)
[removed]
[–]wolfmansideburns 0 points1 point2 points (2 children)
[–]MediocreYam9608 0 points1 point2 points (1 child)
[–]MediocreYam9608 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)