diff options
-rw-r--r-- | crocoite/cli.py | 5 | ||||
-rw-r--r-- | setup.py | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py index be3538a..4ab2334 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -25,6 +25,11 @@ Command line interface import argparse, sys, signal, asyncio, os from enum import IntEnum from yarl import URL +try: + import manhole + manhole.install (patch_fork=False, oneshot_on='USR1') +except ModuleNotFoundError: + pass from . import behavior from .controller import SinglePageController, \ @@ -20,6 +20,9 @@ setup( 'yarl', 'multidict', ], + extras_require={ + 'manhole': ['manhole>=1.6'], + }, entry_points={ 'console_scripts': [ 'crocoite-grab = crocoite.cli:single', |