Base is hosted on PyPi.
Assuming any reasonable Python v3.x environment, 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 python container should be able to install and import base
with no non-default libraries.
Currently we derive our own container images from python:3.8-buster
, though any Python >= 3.6 on most system architectures should be fine.
The following libraries, if installed, add to our functionality:
bleach
– needed for utils.StripHtml()
django
– enables several Django-specific utilsnumpy
– needed for utils.Entropy()
pytz
– augments utils.ParseTimestamp()
to know the local timezonerequests
– needed for utils.HumannessFromRecaptcha()
The Octoboxy Base library has two parts:
Rightdown is a replacement for Python’s standard Markdown library.
The bulk of Base is a collection of classes and functions that should be useful for many Python or Django projects.
TODO – write docs for utils
Thank you for your interest in our project!
Comments and suggestions can be dropped in our inbox!