GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nocomplexity/pythonsecurity: The Python Security Handbook

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
_static
_static
 
 
appendices
appendices
 
 
constructs
constructs
 
 
fundamentals
fundamentals
 
 
guidelines
guidelines
 
 
images
images
 
 
recipes
recipes
 
 
securitytools
securitytools
 
 
README.md
README.md
 
 
aboutnocx.md
aboutnocx.md
 
 
contribute.md
contribute.md
 
 
donate.md
donate.md
 
 
help.md
help.md
 
 
intro.md
intro.md
 
 
introduction.md
introduction.md
 
 
license.md
license.md
 
 
myst.yml
myst.yml
 
 
primary-sidebar-footer.md
primary-sidebar-footer.md
 
 
sponsors.md
sponsors.md
 
 
toc.yml
toc.yml
 
 
toc_outline.md
toc_outline.md
 
 

Repository files navigation

Python Security Handbook

A practical, no-nonsense guide to writing secure Python code in 2026 and beyond.

PythonCodeAudit Badge License: CC BY-SA 4.0 PRs Welcome Jupyter Book

bookcover

This open-source book covers Python Security Fundamentals with a strong focus on real-world practices, essential security tools, and actionable security recipes.

What You'll Learn

  • Core security principles every Python developer should know
  • How to secure common Python patterns and libraries
  • Secure coding techniques
  • Essential open-source security tools for Python
  • Practical security recipes – step-by-step solutions to common security challenges
  • Dependency management, supply chain security, and runtime protection
  • Static Application Security Testing (SAST) and Software Composition Analysis (SCA)

Key Features

  • Fundamentals First – Clear explanations of specific Python weaknesses, vulnerabilities, and threats
  • Secure Coding Guidelines - The best maintained collection of guidelines to create secure Python applications
  • Practical Recipes – Ready-to-use, secure code patterns
  • Tool Recommendations – Focused on using the best Free and Open Source (FOSS) tools
  • Realistic Advice – Balanced between theory and production reality
  • Regularly Updated – Keeping pace with the evolving Python and security landscape

Tools Featured

  • Python Code Audit – Best-in-class open-source Python SAST scanner
  • Dependency scanners (pip-audit, Open Source Insights , etc.)
  • And other essential security tools

How to Read This Book

You can read the book online at:
👉 https://nocomplexity.github.io/pythonsecurity/

Contributing

Contributions are welcome! See CONTRIBUTING for details.

Simple ways to help:

  • Star the repository
  • Share with fellow Python developers
  • Report issues or suggest improvements
  • Submit pull requests for new recipes or corrections

License

This book is licensed under CC-BY 4.0 – you are free to share and adapt with attribution.


Made with ❤️ to Simplify Cyber Security Challenges

Want to support the project? Consider sponsoring or making a donation.

About

The Python Security Handbook

nocomplexity.github.io/pythonsecurity/

Topics

handbookjupyterbookpythonpython-securitypython-security-toolssastsecuritysecurity-by-design

Resources

Readme
License
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.