Writing Python Like Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
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.ai
featured
  1. PyO3

    Rust bindings for the Python interpreter

    (2020).

    Things have arguably become even nicer (although slightly more divergent between the two) since then: Python's `Optional[T]` can now be written as `T | None`, and the core container types can now be annotated directly (e.g. `List[T]` becomes `list[T]`).

    Combined via pyO3[1], Python and Rust are a real joy to write together.

    [1]: https://github.com/PyO3/pyo3

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. pudb

    Full-screen console debugger for Python

    such a waste of time...

    To this day, I'm baffled by the dynamic language folks who cannot get they head around how strictness/rigor (via a good expressive type system) actually makes maintenance easier and more importantly: cheaper.

    [1] https://github.com/inducer/pudb

  4. beartype

    Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python.

    https://github.com/beartype/beartype

    I wish more people started using Beartype, it makes Python bearable

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • What Python debugger do you use?

    4 projects | /r/learnpython | 26 Mar 2023
  • Does anyone use python debugger?

    2 projects | /r/Python | 12 Feb 2023
  • Can anyone share some cool projects done with Python?

    7 projects | /r/Python | 13 Feb 2022
  • No more Print For Debugging In Python Anymore

    2 projects | /r/Python | 24 Jun 2021
  • ChatDBG: AI-based debugging assistant for C/C++/Python/Rust

    1 project | news.ycombinator.com | 10 Feb 2025

Did you know that Python is
the 2nd most popular programming language
based on number of references?