Published

All published posts

2667 posts latest post 2026-09-24 simple view
Publishing rhythm
Sep 2026 | 29 posts
I like mizlan’s project iswap.nvim. Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
If you’re into interesting projects, don’t miss out on jupyterlite, created by jupyterlite. Wasm powered Jupyter running in the browser 💡
I’m really excited about nbterm, an amazing project by davidbrochart. It’s worth exploring! Jupyter Notebooks in the terminal.
If you’re into interesting projects, don’t miss out on dynaconf, created by dynaconf. Configuration Management for Python ⚙

functools.total_ordering makes adding all of six of the rich comparison operators to your custom classes much easier, and more likely that you remember all of them.

From the Docs: The class must define one of __lt__(), __le__(), __gt__(), or __ge__ In addition, the class should supply an __eq__() method.

one of these

  • lt()
  • le()
  • gt()
  • ge()

and required to have this one

  • eq()

Total Ordering Docs

Here is an example using the Enum I was working on the other day.

from enum import Enum, auto
from functools import total_ordering


@total_ordering
class LifeCycle(Enum):

    configure = auto()
    glob = auto()
    load = auto()
    pre_render = auto()
    render = auto()
    post_render = auto()
    save = auto()

    def __lt__(self, other):
        try:
            return self.value < other.value
        except AttributeError:
            return self.value < other

    def __eq__(self, other):
        try:
            return self.value == other.value
        except AttributeError:
            return self.value == other

Check out ipython and their project ipython. Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
Check out sharkdp and their project pastel. A command-line tool to generate, analyze, convert and manipulate colors
If you’re into interesting projects, don’t miss out on asdf, created by asdf-vm. Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
I came across outputformat from delestro, and it’s packed with great features and ideas. Python library to decorate and beautify strings
pyenv has done a fantastic job with pyenv. Highly recommend taking a look. Simple Python version management
vim-abolish by tpope is a game-changer in its space. Excited to see how it evolves. abolish.vim: Work with several variants of a word at once