Entry points¶
The entry points are a mecanism to extend the framework.
How the entry points are declared in the setup.py
file of your project
is described in the Setuptools documentation.
The framework knows about the following entry points:
nagare.applications
: this entry point is the most often used as it registers an application to the framework.An application can be an instance of
WSGIApp
, configurated with a component factory, or a direct component factory which, in this case, will be automatically wrapped into a defaultWSGIApp
object.nagare.publishers
: these entry points defined the publishers that can be selected with thetype
parameter of the publisher configuration fileThe framework publishers are defined into the
nagare.publishers
package. The classnagare.publishers.common.Publisher
is the base class of all the publishers.nagare.sessions
: there entry points defined the sessions manager that can be selected with thetype
paramater of the publisher configuration file.The framework sessions managers are defined into the
nagare.sessions
package. The classnagare.sessions.common.Sessions
is the base class of all the sessions managers.nagare.commands
: these entry points defined new administrative commands (launched with nagare-admin)All the build-in administrative commands of the framework are defined into the
nagare.admin
package. The classnagare.admin.command.Command
is the interface an administrative command must respect.nagare.admin
: these entry points defined components that will be rendered into the “Nagare Administration interface” page (launched withnagare-admin serve admin
). See theadmin/interface/info.py
andadmin/interface/applications.py
files.