Published

All published posts

2604 posts latest post 2026-08-19 simple view
Publishing rhythm
Aug 2026 | 30 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

Smoother Python with automatic imports | pyflyby

This is not a flaky works half the time kind of plugin, it’s a seriously smooth editing experience. I’ve just started using pyflyby, and it is solid so far. I have automatic imports on every save of a python file in neovim, and automatic imports on every command in ipython. I can’t tell you how pumped I am for this, and how good its felt to use over the past few weeks. It’s glorious. YouTube video # Listen to me rant on how great pyflyby is https://youtu.be/2QW5DJiEJH4 Give the video a watch, I did not have noise-cancelling on in obs. My apologies for the background hum and the mic stand bumps. I did my best to fix them up. Installation # How to install pyflyby for automatic python imports pyflyby is hosted on pypi, so you can get it with pip. I have had no issues installing it on 3.8+ so far. Configuration setup with stow # always stow your dotfiles If you’re going to configure any of your tools the first thing you should do is set it up with stow, seriously don’t sleep on the stow. I…