Can I use code examples from Real Python in my own programs, at work, ...?

Real Python's tutorials, courses, books, and other learning resources are here to help you get the job done. We want you to use them to become a more productive, effective, and successful developer.
In general, you may use the code found on Real Python learning resources in your own programs and documentation. You don't need to contact us for permission unless you're reproducing a significant portion of the code. 
Here are some example situations to clarify when permission is and is not required.
Requires permission:
  • Selling or distributing a collection of examples from Real Python learning resources does require permission.
  • Incorporating a significant amount of example code from a Real Python learning resource into your product's documentation does require permission.
  • Using a significant amount of example code from a Real Python learning resource to host a commercial training event or presentation.
Does not require permission:
  • Answering a question by citing a Real Python learning resource does not require permission. 
  • Writing a program that uses portions of a Real Python learning resource does not require permission. 
  • Using a code example from a Real Python learning resource in a meetup talk or conference presentation.
When code examples from Real Python are used we appreciate, but do not require, attribution. An attribution usually includes the title and URL of the resource. For example:  "Primer on Python Decorators" by Real Python, retrieved on 31 December 2038, https://realpython.com/primer-on-python-decorators

If you feel that your use of code examples falls outside fair use or the permission given here, feel free to contact us at info@realpython.com

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us