Skip to content

Pluggable

The Pluugable object is the one of the ways of importing the Esmerald Simple JWT into your Esmerald application via installation of the package.

from esmerald import Esmerald, Pluggable

from esmerald_simple_jwt.extension import SimpleJWTExtension

app = Esmerald(
    pluggables={
        "simple-jwt": Pluggable(SimpleJWTExtension, path="/auth"),
    },
)

Esmerald official documentation abuot Pluggables goes into great detail about how to use it and when to use it.

In other words, what Esmerald Simple JWT pluggable does is to simple install a ChildEsmerald module inside the Esmerald application using the pluggable itself.

Since Esmerald is modular, it could be inside the main Esmerald application or inside any nested Esmerald or ChildEsmerald objects.

It is your choice.

API Reference

You can check all the available parameters to use with this simple configuration in the Pluggable API Reference.