diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-04-21 10:05:34 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-05-03 08:39:12 +0200 |
| commit | 4cbfba9d7b930edd8f5727ba091cd800d8a02eab (patch) | |
| tree | a6cbdd677e8722da192ffad243575ed2d3788c65 /searx/enginelib/__main__.py | |
| parent | 4a594f1b5346d32e446d6ce0c702173d1a2d8862 (diff) | |
[mod] ExpireCache - sqlite based key/value cache with expire time
Diffstat (limited to 'searx/enginelib/__main__.py')
| -rw-r--r-- | searx/enginelib/__main__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/searx/enginelib/__main__.py b/searx/enginelib/__main__.py new file mode 100644 index 000000000..7414a2ebe --- /dev/null +++ b/searx/enginelib/__main__.py @@ -0,0 +1,21 @@ +"""Implementation of a command line for development purposes. To start a +command, switch to the environment and run library module as a script:: + + $ ./manage pyenv.cmd bash --norc --noprofile + (py3) python -m searx.enginelib --help + +The following commands can be used for maintenance and introspection +(development) of the engine cache:: + + (py3) python -m searx.enginelib cache state + (py3) python -m searx.enginelib cache maintenance + +""" + +import typer + +from .. import enginelib + +app = typer.Typer() +app.add_typer(enginelib.app, name="cache", help="Commands related to the cache of the engines.") +app() |