A drainage basin collects all precipitation in an area, first in to smaller streams and finally in to a large river. Similarly, Konfluks brings together small streams of web content from different places together in a single large stream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rra b0f77831bd add 'contributors' as metadata category 6 months ago
lumbunglib add 'contributors' as metadata category 6 months ago
.gitignore feat: pull posts from mastodon 11 months ago
LICENSE.md add agplv3 license 10 months ago
README.md hacking docs 10 months ago
poetry.lock Revert "feed: move to saneyaml" 8 months ago
pyproject.toml Revert "feed: move to saneyaml" 8 months ago
setup.py feat: pull posts from mastodon 11 months ago

README.md

lumbunglib

Python lib which powers lumbung.space automation

hacking

Install poetry:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

We use Poetry because it locks the dependencies all the way down and makes it easier to manage installation & maintenance in the long-term. Then install the dependencies & have them managed by Poetry:

poetry install

Each script requires some environment variables to run, you can see the latest deployment configuration over here, look for the values under the environment: ... stanza.

All scripts have an entrypoint described in the pypoetry.toml which you can run via poetry run .... For example, if you want to run the lumbunglib/video.py script, you'd do:

mkdir -p testdir
export OUTPUT_DIR=/testdir
poetry run lumbunglib-vid

Run poetry run poetry2setup > setup.py if updating the poetry dependencies. This allows us to run pip install . in the deployment and Pip will understand that it is just a regular Python package. If adding a new cli command, extend pyproject.toml with a new [tool.poetry.scripts] entry.