Contributing to Open Source
Part of the Python Roadmap
In short
Python itself and most of the libraries you use are built by volunteers and companies working in the open. A merged pull request, even a small one, shows you can read real code and work with reviewers.
Contributing to open-source Python projects teaches you to read large codebases, follow contribution guidelines and work through code review. Documentation fixes and issues labelled 'good first issue' are good starting points.

Think of it like this
Joining a community kitchen
At a gurudwara langar, newcomers don't start by cooking the dal for thousands. They wash plates, chop onions and learn how the kitchen runs. Over time they take on bigger jobs. Open source works the same way: begin with docs fixes and small 'good first issue' tasks, follow the house rules and grow from there.
Watch it happen
Your first pull request
1/5Look for issues labelled good first issue or documentation. Comment to say you'd like to work on it.
The big ideas
What you need to know
Read the guide first
CONTRIBUTING.md explains setup, code style, tests and how to name commits. Following it is half the job.
Docs count
Fixing unclear docs, broken examples or typos is a real, welcome contribution and a great way to start.
Small and focused
One pull request, one change. Small PRs get reviewed and merged faster.
Review is teaching
Maintainers will ask for changes. Thank them, make the updates and learn their standards.
See it in code
Walk through the code
1# 1. Fork on GitHub, then clone your fork2git clone https://github.com/your-username/some-library.git3cd some-library4git remote add upstream https://github.com/original-owner/some-library.git5 6# 2. Set up a dev environment (check CONTRIBUTING.md for the exact steps)7python -m venv .venv8source .venv/bin/activate9pip install -e ".[dev]"10 11# 3. Make your change on a new branch12git checkout -b fix-quickstart-example13pytest14git add docs/quickstart.md15git commit -m "Fix broken example in quickstart guide"16 17# 4. Push to your fork and open a pull request on GitHub18git push origin fix-quickstart-example1/4Clone your fork, and add the original repo as upstream so you can pull in new changes later.
A typical first contribution workflow. Many Python projects use pip install -e with an extra like [dev] or [test], but always check their guide.
Save yourself the pain
Common mistakes
Oops
Opening a huge PR that rewrites many files without discussing it first.
Do this instead
Comment on an issue first, agree on the approach, then send a small focused change.
Oops
Submitting spammy PRs like whitespace changes just to get a contribution count.
Do this instead
Maintainers notice and close them. Make changes that genuinely help users.
Oops
Going silent after review comments.
Do this instead
Reply within a few days, even if just to say you're working on it.
Your mission
One merged PR this month
Quick check
What should you do before writing code for an open-source issue?
Go deeper
- 1Find a project you use and read its CONTRIBUTING file.
- 2Pick a 'good first issue' or a documentation fix and open a pull request.
- 3Respond politely to review comments and update your PR.
Also part of these roadmaps
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.