Skip to main content

Pelican plugin, used to auto-load my other plugins.

Project description

AutoLoader is a plugin for Pelican, a static site generator written in Python.

AutoLoader is designed to autoload the other Pelican plugins in my namespace (minchin.pelican.plugins). It can also be extended to autoload plugins in other namespaces, for example, to autoload the pelican.plugins namespace on versions of Pelican before 4.5 (when autoloading to those plugins was added to the Pelican core).

PyPI version number Changelog Supported Python version License Download Count

Installation

The easiest way to install AutoLoader is through the use of pip. This will also install the required dependencies automatically.

pip install minchin.pelican.plugins.autoloader

Further configuration will depend on the version of Pelican you are running. On version 4.5 or newer and you haven’t defined PLUGINS in your pelicanconf.py, nothing more in needed. On earlier versions of Pelican, or if you’ve defined PLUGINS, you’ll need to add the autoloader to your list of plugins in your pelicanconf.py file:

PLUGINS = [
    # ...
    'minchin.pelican.plugins.autoloader',
    # ...
]

if you want to auto-load additional namespaces, you’ll need to define the AUTOLOADER_NAMESPACES variable in your pelicanconf.py file:

from minchin.pelican.plugins import autoloader

AUTOLOADER_NAMESPACES = autoloader.DEFAULT_NAMESPACE_LIST + [
    "pelican.plugins",
    # other namespaces
]

Usage Notes

  • the plugins loaded by this plugin will not be shown when you run pelican-plugins

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minchin.pelican.plugins.autoloader-1.0.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file minchin.pelican.plugins.autoloader-1.0.3.tar.gz.

File metadata

  • Download URL: minchin.pelican.plugins.autoloader-1.0.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.3

File hashes

Hashes for minchin.pelican.plugins.autoloader-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4ddc2e30ad7fc3dea1b8016dba7c5e7ce993fb5cc2a47a85b122f70d2e54a8e7
MD5 c3f69988732610a81ff193cecac11d5a
BLAKE2b-256 6b52b2eed94ed657599bc01d633a033084cac7a5fce67f7dcc822975a309cfa9

See more details on using hashes here.

File details

Details for the file minchin.pelican.plugins.autoloader-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: minchin.pelican.plugins.autoloader-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.3

File hashes

Hashes for minchin.pelican.plugins.autoloader-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acba13a8adaacc69948939bda19f2419792ffe7f95ab1d25b0430dbcfbb2e3de
MD5 da09a9756adead49f5492a567ce6f63a
BLAKE2b-256 a0b64056828e1a8b30293c5727d7c02d6f87b51afcb785a2bc8336aaac90ad83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page