“OctoBase”

The First Building Block For Any Python Project

Links

Installing Base

Python Version

Moderate back compatibility with Python 3.9 is maintained. We do our own development on Python 3.13 though, and may not notice bugs that exist on other systems.

Assuming your python environment is set up, install with pip:

$ sudo pip install octobase

The PyPi project is named “octobase” but the package you import is just base:

import base
print(base.VERSION)

Base has no required dependencies. That is, a clean machine with appropriate python should be able to install and import base

Optional Dependencies

The following libraries, if installed, extend our functionality:

  • bleach – needed for utils.StripHtml()
  • django – enables several Django-specific utils
  • numpy – needed for utils.Entropy()
  • tzdata – enables timezone parsing if the local system does not have zoneinfo libraries

Using Base

The OctoBase library is released under Apache v2.0 open-source license.

Base has many classes and functions.

The heart of the library is RightDown, a full parser for markdown. Check this out first, if you’re looking for a place to start.

The soul of the library is utils, a very large collection of small code snips. Sadly, utils is also by and large, undocumented.

Obi Wan, Jedi Coder says, “Use the source, Luke. Let it guide your action.”

Excluding utils, every other high-level component of base is documented:

  • controllers – third-prong of a “model-view-controller” paradigm
  • enums – better named constants
  • filetypes – file extensions and mime types
  • regexp – helpers for working with regular expressions
  • registry – dictionary of names to objects
  • rightdown – a righteous markdown dialect
  • testing – our way of doing unit tests
  • things – new base class for everything
  • whens – flexible (and extensible) time/date parsing

Motivation

RightDown is why we bring you Base.

We believe markdown is a fantastic language for general data persistence, but that requires a solid markdown parser. Thus, we built a markdown parser. Then, we put it and all its dependencies into this library so we could give it away to everyone.

Thank You!

Bug reports can be dropped in our inbox.

Thank you ever so much!