Skip to content

Latest commit

 

History

History
182 lines (118 loc) · 6.66 KB

SOURCES.org

File metadata and controls

182 lines (118 loc) · 6.66 KB

This file is an overview of available sources along with descriptions and some guidance.

Extra dependencies

Some sources require additional dependencies, which you can install if needed.

  • pip3 install --user promnesia[optional]

    dependencies that bring some bells & whistles: logzero, python-magic

  • pip3 install --user promnesia[HPI]

    dependencies for HPI: HPI

  • pip3 install --user promnesia[html]

    dependencies for sources.html: beautifulsoup4, lxml

  • pip3 install --user promnesia[markdown]

    dependencies for sources.markdown: mistletoe

  • pip3 install --user promnesia[org]

    dependencies for sources.org: orgparse

  • pip3 install --user promnesia[telegram]

    dependencies for sources.telegram: dataset

Alternatively, you can just install all of them in bulk: pip3 install --user promnesia[all].

Sources

These are included with the current Promnesia distribution:

Extending

Adding your own data sources is very easy! One day I’ll add some proper documentation, but the easiest at the moment is to use existing simple modules as a reference, for example:

After that, you can simply import your custom source in config.py, and use it, same way as any builtin source.