Skip to main content

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

Project description

PyPI Version

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).

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

Known Issues

The release process (minchin.releaser) depends on invoke, which has yet to release a version that will run on Python 3.10. Therefore, releases must be generated on Python 3.9 or earlier, but the code should otherwise run on Python 3.10.

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.2.tar.gz (6.9 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.2.tar.gz.

File metadata

  • Download URL: minchin.pelican.plugins.autoloader-1.0.2.tar.gz
  • Upload date:
  • Size: 6.9 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.9.7

File hashes

Hashes for minchin.pelican.plugins.autoloader-1.0.2.tar.gz
Algorithm Hash digest
SHA256 07f453f3c8fbb221754231d6bb551720cf7ceddfa9635603dd26a65cf0428c91
MD5 92a3d6b945e8511b8887eeacc7cb1017
BLAKE2b-256 0737c442a45de3a5a46fa229621aaea14d127245793b9c9aaa1e5956064fc94a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minchin.pelican.plugins.autoloader-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.9.7

File hashes

Hashes for minchin.pelican.plugins.autoloader-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 852baf9af312a6018036330b1226540a91f4902c65994d4576ac227d404540cc
MD5 eea4c1e326286a25aedae495f1fec15c
BLAKE2b-256 da465bdd2971ddd16d82d873fc35a5691ad321373787324d9bdf88408da662ce

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