[Go to site: main page, start]

Python Code

Open-source Python projects categorized as Code

Top 23 Python Code Projects

  1. black

    The uncompromising Python code formatter

    Project mention: Mojo 1.0 Beta | news.ycombinator.com | 2026-05-07
  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. CheatSheetSeries

    The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics.

    Project mention: CSRF Protection Without Tokens or Hidden Form Fields | news.ycombinator.com | 2025-12-22

    Again, the maintainer eventually came around.

    Our confusion might be due to the fact that an erroneous PR (by seemingly an AI-wielding student...) was somehow recently accepted that completely reverted the changes we collectively worked on, which effectively made Fetch Metadata a full solution. So, it is back to showing as defense in depth. I've raised an issue about it, which wouldn't have happened if I didn't see your article!

    Here's the previous language:

    > If your software targets only modern browsers, you may rely on [Fetch Metadata headers](#fetch-metadata-headers) together with the fallback options described below to block cross-site state-changing requests

    We then detailed some fallbacks (eg Origin header). Full text can be viewed in the original PR

    https://github.com/OWASP/CheatSheetSeries/pull/1875

    or

    https://github.com/OWASP/CheatSheetSeries/blob/7fc3e6b8fde65...

  4. gitingest

    Replace 'hub' with 'ingest' in any GitHub URL to get a prompt-friendly extract of a codebase

    Project mention: Build a Scalable Multi-Agent RAG System with A2A Protocol, Oracle AI Database and LangChain | dev.to | 2026-01-22

    Gitingest

  5. CodeGeeX2

    CodeGeeX2: A More Powerful Multilingual Code Generation Model

  6. sketch-code

    Keras model to generate HTML code from hand-drawn website mockups. Implements an image captioning architecture to drawn source images.

  7. claude-code-guide

    Claude Code Guide - Setup, Commands, workflows, agents, skills & tips-n-tricks go from beginner to power user!

    Project mention: Claude Code Guide – June 2025 | news.ycombinator.com | 2025-07-01
  8. ggshield

    Detect and validate 500+ types of hardcoded secrets with advanced checks. Use it as a pre-commit hook, GitHub Action, or CLI for proactive secret detection and security.

    Project mention: GitGuardian MCP: Secret Scanning as a Hard Merge Gate for AI-Generated Code | dev.to | 2026-03-10

    ggshield Repository

  9. code2vec

    TensorFlow code for the neural network presented in the paper: "code2vec: Learning Distributed Representations of Code"

  10. k7

    Your own self-hosted infra for lightweight VM sandboxes to safely execute untrusted code. CLI, API, Python SDK. ⭐ Star it if you like it! ⭐

    Project mention: Katakate: VMs per node for safe code exec: K8s+Kata+Firecracker | news.ycombinator.com | 2025-10-21

    As promised: https://github.com/Katakate/k7/tree/fix/no-dns-res-in-lockdo...

    Will merge that in after it passes all network tests on a clean/wiped instance.

  11. RestrictedPython

    A restricted execution environment for Python to run untrusted code.

    Project mention: Python interpreter written in Rust for use by AI | news.ycombinator.com | 2026-02-06

    There's been a constant stream of v8 VM sandbox escapes since its dawn of course.

    And Python VM had/has rexec and https://github.com/zopefoundation/RestrictedPython

  12. code-llama-for-vscode

    Use Code Llama with Visual Studio Code and the Continue extension. A local LLM alternative to GitHub Copilot.

  13. algoexpert-data-structures-algorithms

    A collection of solutions for all problem statements on the AlgoExpert Coding Interview platform.

  14. tryceratops

    A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).

  15. blue

    The slightly less uncompromising Python code formatter.

  16. BMList

    A List of Big Models

  17. open-repo-wiki

    You don’t need to read the code to understand how to build!

  18. tokei-pie

    Render tokei's output to interactive sunburst chart.

  19. gpt-code-assistant

    gpt-code-assistant is an open-source coding assistant leveraging language models to search, retrieve, explore and understand any codebase.

  20. recursive-code-config

    Customize your own version of Recursive for code. Build your own, or find the built fonts in releases within the main Recursive repo.

  21. pyRAPL

    a library to measure the python energy consumption of python code

  22. lexy

    Lexy is a lightweight CLI tool that fetches programming tutorials from "Learn X in Y Minutes" directly into your terminal. Quickly search, learn, and reference code examples without leaving your workflow. (by antoniorodr)

    Project mention: Show HN: Lexy – CLI tool that fetches tutorials from "Learn X in Y Minutes" | news.ycombinator.com | 2025-08-07
  23. debugpy-run

    Finds and runs debugpy for VS Code "remote attach" command line debugging.

  24. python-codicefiscale

    :it: :credit_card: italian fiscal codes encoding, decoding and validation - codifica, decodifica e validazione del Codice Fiscale italiano.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Code discussion

Log in or Post with

Python Code related posts

  • Published a SQL Linter to PyPI Because I Was Tired of Bad Queries Hitting Production

    2 projects | dev.to | 18 Apr 2026
  • Build a Scalable Multi-Agent RAG System with A2A Protocol, Oracle AI Database and LangChain

    3 projects | dev.to | 22 Jan 2026
  • CSRF Protection Without Tokens or Hidden Form Fields

    1 project | news.ycombinator.com | 22 Dec 2025
  • Build Python Packages: Development to PyPI Guide

    3 projects | dev.to | 21 Nov 2025
  • Cisco opensourced MCP-Scanner for finding vulnerabilties in MCP server

    5 projects | news.ycombinator.com | 27 Oct 2025
  • Living Dangerously with Claude

    4 projects | news.ycombinator.com | 23 Oct 2025
  • A modern approach to preventing CSRF in Go

    1 project | news.ycombinator.com | 20 Oct 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Code projects in Python? This list will help you:

# Project Stars
1 black 41,559
2 CheatSheetSeries 32,245
3 gitingest 14,873
4 CodeGeeX2 7,592
5 sketch-code 5,157
6 claude-code-guide 4,287
7 ggshield 1,965
8 code2vec 1,144
9 k7 782
10 RestrictedPython 730
11 code-llama-for-vscode 569
12 algoexpert-data-structures-algorithms 485
13 tryceratops 448
14 blue 408
15 BMList 345
16 open-repo-wiki 304
17 tokei-pie 210
18 gpt-code-assistant 208
19 recursive-code-config 129
20 pyRAPL 117
21 lexy 116
22 debugpy-run 94
23 python-codicefiscale 87

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com