Python Code

Open-source Python projects categorized as Code

Top 23 Python Code Projects

  1. black

    The uncompromising Python code formatter

    Project mention: Amazing `pre-commit` and How To Use It | dev.to | 2025-02-26

    repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 # Use the desired revision hooks: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/psf/black rev: 23.1.0 # Use the appropriate version for your project hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8

  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.

    Judoscale 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: Learning to Write Secure Code | dev.to | 2025-04-09

    OWASP Cheat Sheet Series - Best practices for common scenarios

  4. gitingest

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

    Project mention: Show HN: Docsingest – Turn developer doc into clean, LLM-friendly Markdown | news.ycombinator.com | 2025-04-10

    Hi HN,

    I'm Pushpinder, and I built Docsingest (https://docsingest.com/) to solve a common pain point when trying to prepare online developer documentation for LLM workflows, like RAG or fine-tuning.

    Scraping developer doc webpages is always messy— you often end up with navigation menus, footers, sidebars, and even ads mixed in with your core content. Worse, extracting code blocks and preserving the document’s structure (headings, lists, tables) is challenging, and manually cleaning it up is tedious.

    Inspired by tools like [GitIngest](https://gitingest.com/) that effectively process code repositories, I wanted to build a similar tool focused on dev docs directly from the web. Docsingest takes a URL as input and:

    1. *Isolates the main content:* It intelligently strips away the boilerplate (like headers, footers, and sidebars) that you don’t need.

  5. sketch-code

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

  6. ggshield

    Detect and validate 400+ 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: Ask HN: How can we open-source a 7 year old SaaS codebase and build a community? | news.ycombinator.com | 2024-05-30

    You could just switch the existing repo(s?) to public. If secrets in the commits are a concern you can use stuff like GitGuardian (https://gitguardian.com)

  7. code2vec

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

  8. code-llama-for-vscode

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

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. RestrictedPython

    A restricted execution environment for Python to run untrusted code.

    Project mention: RestrictedPython | news.ycombinator.com | 2024-07-29
  11. algoexpert-data-structures-algorithms

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

  12. tryceratops

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

  13. blue

    The slightly less uncompromising Python code formatter.

  14. BMList

    A List of Big Models

  15. gpt-code-assistant

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

  16. tokei-pie

    Render tokei's output to interactive sunburst chart.

  17. open-repo-wiki

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

    Project mention: OpenRepoWiki: Automatically generate a wiki page for any given GitHub repository | news.ycombinator.com | 2025-01-09
  18. 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.

  19. pyRAPL

    a library to measure the python energy consumption of python code

  20. debugpy-run

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

  21. python-codicefiscale

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

  22. PolyLock

    Encrypt and obfuscate your python code/files.

  23. lqtTextEditor

    A more advanced text/code editor for PyQt

  24. AdventOfCode

    Advent Of Code (AOC) yearly coding game framework (by henriupton99)

  25. stuart

    Stuart acts as an autonomous agent to drive code generation

    Project mention: LLM-first code: rethinking code design and putting bots first | news.ycombinator.com | 2025-01-22
  26. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
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

  • Show HN: Docsingest – Turn developer doc into clean, LLM-friendly Markdown

    1 project | news.ycombinator.com | 10 Apr 2025
  • Learning to Write Secure Code

    1 project | dev.to | 9 Apr 2025
  • Introducing Gitingest: My Latest Ruby Gem to Supercharge Your Git Workflow

    2 projects | dev.to | 2 Mar 2025
  • Turn any Git repository into a prompt-friendly text ingest for LLMs

    1 project | news.ycombinator.com | 1 Mar 2025
  • Open github url in gitingest via chrome extension and keyboard shortcutå

    2 projects | dev.to | 22 Feb 2025
  • Building a simple Retrieval Augmented Generation system using .Net Aspire

    3 projects | dev.to | 2 Feb 2025
  • The "No Compromise" (and free?!) FastAPI Template for your AI App!

    2 projects | dev.to | 26 Jan 2025
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 17 Apr 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

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

# Project Stars
1 black 40,095
2 CheatSheetSeries 29,293
3 gitingest 8,094
4 sketch-code 5,135
5 ggshield 1,742
6 code2vec 1,126
7 code-llama-for-vscode 568
8 RestrictedPython 542
9 algoexpert-data-structures-algorithms 461
10 tryceratops 445
11 blue 398
12 BMList 343
13 gpt-code-assistant 201
14 tokei-pie 186
15 open-repo-wiki 185
16 recursive-code-config 119
17 pyRAPL 107
18 debugpy-run 82
19 python-codicefiscale 78
20 PolyLock 24
21 lqtTextEditor 12
22 AdventOfCode 9
23 stuart 7

Sponsored
Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.
judoscale.com