Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Your First Open Source Contribution with Python and GitHub
New
6 students

Your First Open Source Contribution with Python and GitHub

From never opening a pull request to a merged contribution: git, GitHub, pytest, code review and AI etiquette
Created byThejesh Avula
Last updated 11/2026
English

What you'll learn

  • Fork, clone, branch, commit, push and open a pull request, in the browser and from the terminal
  • Read a project's house rules: CONTRIBUTING files, CLAs, DCO sign-offs, AI policies and codes of conduct
  • Set up any Python project and run its tests and linters: pip, uv, Poetry, Hatch, tox, nox and pre-commit
  • Find an issue that's open, unclaimed and has no pull request yet, and claim it the right way
  • Open a bug report maintainers can act on: minimal steps to reproduce, expected and actual results, versions
  • Make a change maintainers want: a failing test, the smallest fix, docs, a changelog entry and a clear commit message
  • Write a pull request title and description that get your change reviewed quickly
  • Fix failing CI, respond to code review, rebase, resolve merge conflicts and squash commits when asked
  • Use AI tools within a project's rules, disclose them properly and write in your own words
  • Land a merged pull request in a real open source project you don't own

Course content

5 sections • 16 lectures • 59m total length
  • What counts as a contribution4:50

    Written lesson, exercise and quiz: https://github.com/thejesh23/first-python-contribution/tree/main/lessons/01-what-counts

  • Star, fork, and your first commit, in the browser3:12

    Written lesson, exercise and quiz: https://github.com/thejesh23/first-python-contribution/tree/main/lessons/02-first-pr-in-browser

Requirements

  • A computer running macOS, Windows or Linux
  • A free GitHub account (lesson 01 shows you how to create one)
  • Very basic Python: you know what a variable, a string and a function are
  • No git or GitHub experience needed

Description

This course contains the use of artificial intelligence.

Never opened a pull request? This course takes you from zero to a merged contribution in a real open source Python project, one small, practical step at a time.

You start with a win in the first 15 minutes: you star and fork the course's GitHub repository and make your first commit, entirely in the browser. A bot checks your work and merges it within a minute. Then you set up the real tools (git, the GitHub CLI and Python), learn just enough git to never feel lost, and open a second pull request from the terminal with a Python function and its test. That one has to pass CI before it's merged.

Then you go out into the real world. You learn the house rules every project has (CONTRIBUTING files, Contributor License Agreements, DCO sign-offs and AI policies), how to set up any Python project whatever tools it uses, how to find an issue nobody else is working on, how to report a bug so it gets fixed (you hunt for bugs planted in a small practice program), how to make a change maintainers want to merge, and how to write a pull request that's easy to review. You practise rebasing, merge conflicts and code review in a safe lab on your own computer, and you learn how to use AI tools honestly and well.

The course ends with a capstone: a merged pull request in a real project you choose. A bot verifies it on GitHub and adds you to the graduates wall.

In this course you do every step by hand, in the terminal. No AI agent does it for you. That is on purpose, even though agents such as Claude Code or Codex can open a pull request in minutes. Your name is on that pull request: you have to check what the agent did, explain every line to a reviewer, fix things when git goes wrong, and talk to maintainers in your own words. You can only do that if you have done each step yourself. This course gives you that in about a day, and then a lesson on using AI tools well.

Every lesson has a short video, a written lesson, a hands-on exercise and a quiz. All the materials, exercises and bots live in a free, open source GitHub repository: thejesh23/first-python-contribution. Every lecture links straight to its lesson there.

How this course is made: the lessons and video scripts were drafted with AI and reviewed by the instructor, and the narration uses a text-to-speech voice. Every command shown in the course is tested.

Who this course is for:

  • Python learners who have never contributed to open source
  • Students who want real contributions on their GitHub profile
  • Developers who use open source every day and want to give back, but don't know where to start
  • Anyone who has been nervous about opening their first pull request