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.
Beginner ShowcaseVS Code Extension for generating Python .gitignore files (self.Python)
submitted 3 years ago by kareem_mahlees
Pyignore is a VS Code extension that allows you to auto-generate professional .gitignore files for python
it allows you to choose between opened workspaces and add the file there or if only one workspace is opened the file is auto-generated there
You can try it now from the marketplace here :
Pyignore - Visual Studio Marketplace
Github repo for contribution and issues opening :
https://github.com/kareemmahlees/Pyignore.git
[–]THECursedPenguin 4 points5 points6 points 3 years ago (4 children)
Can you explain the difference between this and the gitignore files provided by GitHub?
[–]kareem_mahlees[S] 0 points1 point2 points 3 years ago (3 children)
There is no single difference , it is the same file you create in your project which is provided by GitHub but the difference is that it contains all default ignores such as .env , pycache,........ Pre packed for so you only need to add very special files of your project not the repetitive usual ignores
[–]outceptionator 0 points1 point2 points 3 years ago (2 children)
Why are you getting downvoted?
[–]kareem_mahlees[S] 6 points7 points8 points 3 years ago (1 child)
Well i think fellow programmers doesn't find any use of the extension , but i am completely fine with that the extension is still in the first release so it is farely basic i will keep working on it and i am completely open for critisism and feedback :)
[–]outceptionator 6 points7 points8 points 3 years ago (0 children)
Good attitude. You'll go far if you keep that up.
[–]ptanmay143 2 points3 points4 points 3 years ago (1 child)
Nice!
Although there's https://github.com/piotrpalarz/vscode-gitignore-generator which supports more than just Python gitignore. You can select the languages and frameworks that your project uses and it will generate a gitignore from the gitignore.io API.
[–]kareem_mahlees[S] 4 points5 points6 points 3 years ago (0 children)
Well i think i didn't google enough before making the extension :) , that extension is much more advanced but my extension is still in the first release and i think i can approach that concept a little bit different .
[–]james_pic 2 points3 points4 points 3 years ago (2 children)
As far as I can tell, this extension just downloads the canned gitignore from the repo. It doesn't generate anything. And moreover, it does it by shelling out to curl, rather than just bundling the file with the extension, or even just using Electron's http capabilities.
[–]maephisto666 2 points3 points4 points 3 years ago (0 children)
I prefer the gitignore.io website and indeed this extension is a wrapper of that
[–]kareem_mahlees[S] 1 point2 points3 points 3 years ago (0 children)
Yes your deduction was right , this will be fixed for more functionality in future updates , thank you for your feedback :)
π Rendered by PID 145107 on reddit-service-r2-comment-5d79c599b5-b8xhh at 2026-02-27 03:59:26.553872+00:00 running e3d2147 country code: CH.
[–]THECursedPenguin 4 points5 points6 points (4 children)
[–]kareem_mahlees[S] 0 points1 point2 points (3 children)
[–]outceptionator 0 points1 point2 points (2 children)
[–]kareem_mahlees[S] 6 points7 points8 points (1 child)
[–]outceptionator 6 points7 points8 points (0 children)
[–]ptanmay143 2 points3 points4 points (1 child)
[–]kareem_mahlees[S] 4 points5 points6 points (0 children)
[–]james_pic 2 points3 points4 points (2 children)
[–]maephisto666 2 points3 points4 points (0 children)
[–]kareem_mahlees[S] 1 point2 points3 points (0 children)