Writing Python like it’s Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
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
  • cattrs

    Composable custom class converters for attrs, dataclasses and friends.

    I'd suggest you look at my cattrs (https://catt.rs) library as a good serde lookalike in Python (sum type support present and getting better), and to use attrs instead of dataclasses in general.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • plum

    Multiple dispatch in Python

    You can use https://github.com/beartype/plum instead of that elif chain too

  • jaxtyping

    Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays. https://docs.kidger.site/jaxtyping/

    Since you mention ML use-cases, you might like jaxtyping.

  • equinox

    Elegant easy-to-use neural networks + scientific computing in JAX. https://docs.kidger.site/equinox/

    I'm a big fan of using ABCs to declare interfaces -- so much so that I have an improved abc.ABCMeta that also handles abstract instance variables and abstract class variables: https://github.com/patrick-kidger/equinox/blob/main/equinox/_better_abstract.py

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

  • Bridging numerical relativity and automatic differentiation using JAX

    2 projects | dev.to | 18 Oct 2024
  • Top 5 Production-Ready Open Source AI Libraries for Engineering Teams

    7 projects | dev.to | 4 Oct 2024
  • Jax and Equinox: What are they and why should I bother?

    1 project | news.ycombinator.com | 12 Sep 2024
  • Show HN: Flaim – pre-trained vision backbones for Flax

    1 project | news.ycombinator.com | 5 Jul 2024
  • Maxtext: A simple, performant and scalable Jax LLM

    10 projects | news.ycombinator.com | 23 Apr 2024

Did you konow that Python is
the 1st most popular programming language
based on number of metions?