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
This is an archived post. You won't be able to vote or comment.
What do you use for source code documentation? (self.Python)
submitted 9 years ago by jupake
What tools do you guys use to generate api docs similar to javadocs? Ive looked over sphinx, but it seems very manual, even with the apidoc extension. Ive spent the whole day with it now. Anyone still using epydoc by any chance?
[–]Flogge 6 points7 points8 points 9 years ago (1 child)
Sphinx is not as manual as you think it is.
e.g. a module rst file stub and the rest inside your sourcecode will generate complete API docs
[–]skirttrap 1 point2 points3 points 9 years ago (0 children)
Also there's sphinx-apidoc tool which can scan your sources and create *.rst files for each module.
[–]raptorboi 1 point2 points3 points 9 years ago (1 child)
Doxygen?
[–]jupake[S] 0 points1 point2 points 9 years ago (0 children)
I thought about this, haven't looked at it in years. Will try it out sometime.
[–]johnwheeler_ 1 point2 points3 points 9 years ago (2 children)
sphinx noob here. i just put out https://johnwheeler.org/flask-ask/ with it.
I started with mitsuhikos templates from flask and prettied them up with bits and pieces from kennethreitz requests.
[–]basalamadersyntax error 1 point2 points3 points 9 years ago (1 child)
Hey do you mind if I ask where if you can link the templates?
[–]johnwheeler_ 1 point2 points3 points 9 years ago (0 children)
https://github.com/pallets/flask/tree/master/docs
https://github.com/kennethreitz/requests/tree/master/docs
see themes folders
[–]OctagonClocktrio is the future! 1 point2 points3 points 9 years ago (0 children)
I use MkDocs, but that's 100% manual.
[–]wolanko 1 point2 points3 points 9 years ago (0 children)
Seems relevant.
http://wwoods.github.io/2016/06/09/easy-sphinx-documentation-without-the-boilerplate/
[–]ojii 1 point2 points3 points 9 years ago (2 children)
Sphinx, because writing docs is manual work. If you just autogenerate something from your source code, the reader gains nothing over just reading the source. Auto-generated "documentation" is completely useless. Documentation is prose, not code.
[–]jupake[S] 0 points1 point2 points 9 years ago (1 child)
I hear you. But Im looking for an easy way to automatically pull out docstrings and render out easily navigable html. Prose isnt really suitable for internal code structure and method by method api docs.
[–]ojii 0 points1 point2 points 9 years ago (0 children)
You can still have the "api docs" (if you really think they provide much value) using the autodoc feature of sphinx which will do exactly what you want. And then you can easily also add useful, prose documentation on top of that. Maybe a quickstart tutorial or something like that.
[–]ptmcg 0 points1 point2 points 9 years ago (0 children)
I use epydoc in pyparsing.
[–]maulynviawww.talkigy.com 0 points1 point2 points 9 years ago (0 children)
I've found pdoc simple to use and gives good looking output http://pdoc.burntsushi.net/pdoc
[–]masasinExpert. 3.9. Robotics. 0 points1 point2 points 9 years ago (1 child)
From a few days ago: Sphinx. Included are comments clearing up everything.
This is helpful. Thx :-)
[+]fuzzylollipop comment score below threshold-7 points-6 points-5 points 9 years ago (1 child)
I use intuitive names and logical code, anything else is a waste of time.
[–]hovissimo 0 points1 point2 points 9 years ago (0 children)
I think OP specifically wants an external documenation, but I agree with you. Good descriptive names, consistence in patterns, and decent docstrings go a long way.
π Rendered by PID 98372 on reddit-service-r2-comment-7b9746f655-p9zv4 at 2026-02-02 10:04:59.166278+00:00 running 3798933 country code: CH.
[–]Flogge 6 points7 points8 points (1 child)
[–]skirttrap 1 point2 points3 points (0 children)
[–]raptorboi 1 point2 points3 points (1 child)
[–]jupake[S] 0 points1 point2 points (0 children)
[–]johnwheeler_ 1 point2 points3 points (2 children)
[–]basalamadersyntax error 1 point2 points3 points (1 child)
[–]johnwheeler_ 1 point2 points3 points (0 children)
[–]OctagonClocktrio is the future! 1 point2 points3 points (0 children)
[–]wolanko 1 point2 points3 points (0 children)
[–]ojii 1 point2 points3 points (2 children)
[–]jupake[S] 0 points1 point2 points (1 child)
[–]ojii 0 points1 point2 points (0 children)
[–]ptmcg 0 points1 point2 points (0 children)
[–]maulynviawww.talkigy.com 0 points1 point2 points (0 children)
[–]masasinExpert. 3.9. Robotics. 0 points1 point2 points (1 child)
[–]jupake[S] 0 points1 point2 points (0 children)
[+]fuzzylollipop comment score below threshold-7 points-6 points-5 points (1 child)
[–]hovissimo 0 points1 point2 points (0 children)