materials

Bonus materials, exercises, and example projects for our Python tutorials

  • Owner: realpython/materials
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Real Python Materials

Bonus materials, exercises, and example projects for our Python tutorials.

Build Status: CircleCI

Running Code Style Checks

We use flake8 and black to ensure a consistent code style for all of our sample code in this repository.

Run the following commands to validate your code against the linters:

$ flake8
$ black --check .

Running Python Code Formatter

We're using a tool called black on this repo to ensure consistent formatting. On CI it runs in "check" mode to ensure any new files added to the repo are following PEP 8. If you see linter warnings that say something like "would reformat some_file.py" it means black disagrees with your formatting.

The easiest way to resolve these errors is to just run Black locally on the code and then committing those changes, as explained below.

To automatically re-format your code to be consistent with our code style guidelines, run black in the repository root folder:

$ black .

Main metrics

Overview
Name With Ownerrealpython/materials
Primary LanguageHTML
Program languagePython (Language Count: 20)
Platform
License:MIT License
所有者活动
Created At2018-05-06 20:46:18
Pushed At2025-06-11 10:31:44
Last Commit At2025-06-11 12:31:43
Release Count0
用户参与
Stargazers Count4.9k
Watchers Count159
Fork Count5.3k
Commits Count3k
Has Issues Enabled
Issues Count61
Issue Open Count33
Pull Requests Count494
Pull Requests Open Count31
Pull Requests Close Count87
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private