nowfound

Dev tools · October 19, 2021

Python library to overload functions based on interpreter version

Python utilities for writing cross-version compatible libraries - tmkontra/compatlib

Python library to overload functions based on interpreter version launched on October 19, 2021 with 45 votes, #1,101 of 2,933 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 5 years on.

In plain words

This Python library allows developers to overload functions based on the interpreter version being used. It enables writing version-specific implementations within a single codebase, automatically selecting the appropriate function at runtime. Developers working across multiple Python versions can use this tool to maintain compatibility without manual version checks or separate code branches throughout their projects.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Python library for functional programming2017 · github.com · ▲129

    Python library for creating data pipelines with chain functional programming - EntilZha/PyFunctional

  • Magentic – Use LLMs as simple Python functions2023 · github.com · ▲283

    This is a Python package that allows you to write function signatures to define LLM queries. This makes it easy to mix regular code with calls to LLMs, which enables you to use the LLM for its creativity and reasoning while also enforcing structure/logic as necessary. LLM output is parsed for you according to the return type annotation of the function, including complex return types such as streaming an array of structured objects. I built this to show that we can think about using LLMs more fluidly than just chains and chats, i.e. more interchangeably with regular code, and to make it…

  • Fructose – LLM calls as strongly typed functions2024 · github.com · ▲218

    Hi HN! Erik here from Banana (formerly the serverless GPU platform), excited to show you what we’ve been working on next: Fructose Fructose is a python package to call LLMs as strongly typed functions. It uses function type signatures to guide the generation and guarantee a correctly typed output, in whatever basic/complex python datatype requested. By guaranteeing output structure, we believe this will enable more complex applications to be built, interweaving code with LLMs with code. For now, we’ve shipped Fructose as a client-only library simply calling gpt-4 (by default) with json…

  • A pure Go library for interacting with LLVM IR2017 · github.com · ▲81

    Library for interacting with LLVM IR in pure Go. Contribute to llir/llvm development by creating an account on GitHub.

  • Automated algorithm translation for Python, C++, C#, JS2016 · github.com · ▲142

    transpile algorithms/libs to idiomatic JS, Go, C#, Ruby - GitHub - pseudo-lang/pseudo: transpile algorithms/libs to idiomatic JS, Go, C#, Ruby

More dev tools this month

the category →
  • /dev/null▲481

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲341

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 27d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, October 2021

the whole month →
  • AI powered Twitter growth & scheduling for makers

    Growth · 2021 · tweethunter.io

  • Vimcal▲883

    Superhuman for Calendar

    Work · 2021 · vimcal.com

  • Thursday▲834

    Where remote teams do their socials, no sign up required

    Work · 2021 · thursday.social

  • Reform▲767

    Clean-looking, on-brand forms. No code required.

    Dev tools · 2021 · reform.app

  • Remove objects and defects from your pictures - 100% free

    AI · 2021 · cleanup.pictures

  • Create, edit, and record stunning videos with ease

    Growth · 2021 · canva.com