2015-02-05 15:25:00 +01:00
|
|
|
"""
|
|
|
|
WARNING: The plugin API is still work in progress and will
|
2019-08-31 18:33:54 +02:00
|
|
|
probably be completely reworked in the future.
|
2015-02-05 15:25:00 +01:00
|
|
|
|
|
|
|
"""
|
|
|
|
from httpie.plugins.base import (
|
|
|
|
AuthPlugin, FormatterPlugin,
|
|
|
|
ConverterPlugin, TransportPlugin
|
|
|
|
)
|
2014-04-28 23:33:30 +02:00
|
|
|
from httpie.plugins.manager import PluginManager
|
|
|
|
from httpie.plugins.builtin import BasicAuthPlugin, DigestAuthPlugin
|
|
|
|
from httpie.output.formatters.headers import HeadersFormatter
|
|
|
|
from httpie.output.formatters.json import JSONFormatter
|
|
|
|
from httpie.output.formatters.colors import ColorFormatter
|
2013-09-21 23:46:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
plugin_manager = PluginManager()
|
2019-08-31 18:33:54 +02:00
|
|
|
plugin_manager.register(
|
|
|
|
BasicAuthPlugin,
|
|
|
|
DigestAuthPlugin,
|
|
|
|
HeadersFormatter,
|
|
|
|
JSONFormatter,
|
|
|
|
ColorFormatter,
|
|
|
|
)
|