nowfound

Dev tools · alternatives · 2026

24 alternatives to A design-by-contract Python package in ~100 lines

Greetings! A 2.5 weekends project to teach myself newer Python features (>= 3.10). Conditions are written as Lambda expressions that annotate parameters and return types, and coexist with type annotations. Symbols to share values between conditions are also supported to a limited extend.

This is a lightweight Python package implementing design-by-contract principles, created as a learning project for Python 3.10+ features. Developers can specify preconditions and postconditions using lambda expressions… Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. A design-by-contract Python package in ~100 lines launched in 2022; newer entries below may have overtaken it.

  1. 1
  2. 2

    Hey HN! I wrote a book on programming called The Elements of Code. I put the entire book online here: https://elementsofcode.io/ When mentoring (usually new) programmers, I noticed there were a few common mistakes that seemed to account for about 80% of the complexity in their code. I couldn’t find a concise guide to fixing those mistakes, so I decided to write one. The title is an homage to The Elements of Style by Strunk and White, which is the classic guide for communicating well using prose. That guide is quite tactical in nature, and I wanted to parallel its focus in The…

    2021 · pragprog.com · its alternatives →

  3. 3

    Hi everyone! I just released the Practical Python Projects book! (https://practicalpython.yasoob.me) I am happy to announce the first version as a release candidate. I have poured a lot of love into writing this book and would love to hear what you guys think. (A limited 100% off and discount coupons at the end) This is not a pure beginner book. The book does assume some background Python knowledge. You need to know the basics like methods, functions, classes, and such. If I use something that is not typically covered in beginner Python books, I will explain it before I use it.…

    2021 · practicalpython.yasoob.me · its alternatives →

  4. 4

    a python-like language with hindley-milner-like type system, which is compiled to c - alehander92/Airtight

    2015 · github.com · its alternatives →

  5. 5

    A modernized and annotated code companion to Paul Graham's "On Lisp". - DalekBaldwin/on-lisp

    2015 · github.com · its alternatives →

  6. 6

    Explains programming language concepts in plain language.

    2016 · fullstackpython.com · its alternatives →

  7. 7

    A build tool for creating optimized Python AWS Lambda layers - tobilg/python-lambda-layer-builder

    2020 · github.com · its alternatives →

  8. 8

    We propose adding powerful type-level introspection and construction facilities to Python’s type system. This design is inspired largely by TypeScript’s conditional and mapped types, but is adapted to the distinct semantics and constraints of Python’s t...

    Mar 2026 · peps.python.org · its alternatives →

  9. 9

    A functional programming and concurrency library for Python: algebraic abstractions (Semigroups, Monoids, Functors, Applicatives, Monads), immutable data types, and message-passing concurrency, all designed as composable, type-safe values. - kamalfarahani/katharos

    Aug 2026 · github.com · its alternatives →

  10. 10

    A fancy and practical functional tools. Contribute to Suor/funcy development by creating an account on GitHub.

    2013 · github.com · its alternatives →

  11. 11

    a Pythonic toolkit for working with Boolean expressions - welchbj/tt

    2016 · github.com · its alternatives →

  12. 12

    A Hands-On, Project-Based Introduction to Programming

    2017 · amazon.com · its alternatives →

  13. 13NH

    Hi HN! We built Nuanced (https://github.com/nuanced-dev/nuanced), an open-source Python library that makes AI coding tools smarter about code structure. The problem: current AI coding assistants see code as just text. They don't understand which functions call which, or how code components depend on each other. This is why they often suggest changes that break dependencies they should have known about. Nuanced solves this by generating call graphs that map these relationships. When you ask "What would break if I change this function?", instead of guessing, the AI can see…

    2025 · nuanced.dev · its alternatives →

  14. 14CP
  15. 15

    A Pythonic wraparound of HTML/CSS/JS. Contribute to BrainStormYourWayIn/sierra development by creating an account on GitHub.

    2021 · github.com · its alternatives →

  16. 16

    Pattern-matching, first-class functions, and more in Haskell

    2014 · stevekrouse.github.io · its alternatives →

  17. 17

    I spent a long time working in the payments industry, specifically on a rather niche reporting/aggregation platform with spiky workloads that were not easily parallelized. To pump as much data through our pipeline as possible, we had to rely on complex locking schemes across half a dozen or so not-so-micro services - keeping a clear mental picture of how the services interacted for a given data source was a major headache. This problem always intrigued me, even after I no longer worked at the company, and lead to the development of Wool. If you've worked with frameworks like Ray or…

    Mar 2026 · github.com · its alternatives →

  18. 18

    ⚡🐍 Extends built-in Python collections with LINQ-style methods - borzunov/dontasq

    2015 · github.com · its alternatives →

  19. 19

    From interlearn

    2024 · intercode-two.vercel.app · its alternatives →

  20. 20MA
  21. 21

    Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler. - hugapi/hug

    2015 · github.com · its alternatives →

  22. 22
    Alex▲3

    A CLI tool for competitive programming in python

    2018 · medium.com · its alternatives →

  23. 23
  24. 24

    A high-level, high-performance dynamic programming language

    2017 · julialang.org · its alternatives →

Also compare

Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →