Every engineer accumulates a library of their favorite utility functions.
After most of a decade writing Python code and working inside Django, our own utility library has become a self-standing piece. Sure, you can use it in a Django project, but it isn’t tied to Django. (It is, strictly, Python.)
Our Base library is the first layer loaded in our own massive Python project. This library is also usually the first layer we load in every random 1-off script we ever happen to write.
In 2020, we undertook the challenge of building a better Markdown. Of course our version – coined Rightdown – uses our Base library. But we really, really wanted to make Rightdown for everyone. It took only a moment’s considering to realize that open-sourcing our whole Base library was the right way to go.
May this be helpful to all your Python projects, big and small.
The Base library, including Rightdown, is released to the community under Apache v2.0 open-source license.
A sparse log of changes:
EnumOption
base.utils.IsContained()
AutoRegister
replaces old AutoRegisterClasses
and AutoRegisterInstances
utils.DeferImport()
simplifies dependenciesSome ideas about the evolution of this library:
Version 0.8
Base will probably be declared version 1.0 after Rightdown is done and stable. We may add new features over time, but we want to keep the structure of what exists and how you interact with it very stable.
What would be useful to you?