slickbet.cliΒΆ
Command-line interface for the SlickBet betting screener.
Entry points for screening fixtures, listing competitions, backtesting,
hyperparameter tuning, PDF/JSON export, and API debug. Invoked as slickbet.
FunctionsΒΆ
|
Create the argument parser for the CLI. |
|
Main entry point for the CLI. |
|
Output backtest results as JSON to stdout. |
|
Output screener results as JSON to stdout. |
|
Run the backtest with the given arguments. |
|
Run backtest on all major leagues and show aggregated results. |
|
List available competitions. |
|
Debug API responses to understand data structure. |
|
Run the betting screener with the given arguments. |
|
Run hyperparameter tuning using cached data. |
Module ContentsΒΆ
- slickbet.cli.create_parser() argparse.ArgumentParser[source]ΒΆ
Create the argument parser for the CLI.
- Returns:
argparse.ArgumentParser β Configured parser with screener, backtest, tune, and debug subcommands.
- slickbet.cli.main() int[source]ΒΆ
Main entry point for the CLI.
- Returns:
int β Process exit code from the selected subcommand or screener.
- slickbet.cli.output_backtest_json(results: slickbet.backtest.BacktestResults) None[source]ΒΆ
Output backtest results as JSON to stdout.
- Parameters:
results (BacktestResults) β Aggregated backtest results to serialize.
- slickbet.cli.output_json(predictions: list[slickbet.screener.BetPrediction], result: slickbet.screener.ScreenerResult) None[source]ΒΆ
Output screener results as JSON to stdout.
- Parameters:
predictions (list) β Predictions to include (already filtered/sorted).
result (ScreenerResult) β Full screener result for summary fields.
- slickbet.cli.run_backtest(args: argparse.Namespace) int[source]ΒΆ
Run the backtest with the given arguments.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (competition, weeks, dates, output flags).
- Returns:
int β Exit code (0 for success, 1 for error)
- slickbet.cli.run_backtest_all(args: argparse.Namespace) int[source]ΒΆ
Run backtest on all major leagues and show aggregated results.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (weeks, league filters, cache, pdf).
- Returns:
int β Exit code (0 for success, 1 for error)
- slickbet.cli.run_competitions(args: argparse.Namespace) int[source]ΒΆ
List available competitions.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (
country,search).- Returns:
int β Exit code (0 for success, 1 for error)
- slickbet.cli.run_debug(args: argparse.Namespace) int[source]ΒΆ
Debug API responses to understand data structure.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (optional
date).- Returns:
int β Exit code (0 for success, 1 for error)
- slickbet.cli.run_screener(args: argparse.Namespace) int[source]ΒΆ
Run the betting screener with the given arguments.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (date/days, filters, output flags).
- Returns:
int β Exit code (0 for success, 1 for error)
- slickbet.cli.run_tune(args: argparse.Namespace) int[source]ΒΆ
Run hyperparameter tuning using cached data.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments (cache_dir, weeks, trials, strategy, metric).
- Returns:
int β Exit code (0 for success, 1 for error).