cli
¶
trendify CLI, built on Typer. It is a thin argument-parsing layer over TrendifyPipeline:
every command resolves its arguments then calls straight into the same pipeline class a Python
caller would use directly, so the CLI and the Python API can never drift apart.
main
¶
Python
main(
ctx: Context,
version: bool = Option(
False,
"--version",
callback=version_callback,
is_eager=True,
help="Show version and exit.",
),
) -> None
[bold indian_red1]Trendify:[/bold indian_red1] Generate visual records and static assets from raw data.
Source code in src/trendify/cli.py
generate
¶
Python
generate(
ctx: Context,
input_directories: list[str] = InputDirectoriesOption,
record_generator: str = RecordGeneratorOption,
output_directory: Path = OutputDirectoryOption,
n_procs: int = NProcsOption,
verbose: int = VerboseOption,
quiet: int = QuietOption,
) -> None
Generate tagged records from raw data directories.
Source code in src/trendify/cli.py
render
¶
Python
render(
ctx: Context,
output_directory: Path = OutputDirectoryOption,
verbose: int = VerboseOption,
quiet: int = QuietOption,
) -> None
Render CSV tables and matplotlib figures from already-generated records.
Source code in src/trendify/cli.py
run
¶
Python
run(
ctx: Context,
input_directories: list[str] = InputDirectoriesOption,
record_generator: str = RecordGeneratorOption,
output_directory: Path = OutputDirectoryOption,
n_procs: int = NProcsOption,
verbose: int = VerboseOption,
quiet: int = QuietOption,
) -> None
Generate records and render assets in one step.
Source code in src/trendify/cli.py
example_data
¶
Python
example_data(
ctx: Context,
workdir: Path = ExampleWorkdirOption,
n_folders: int = ExampleNFoldersOption,
n_cols: int = ExampleNColsOption,
verbose: int = VerboseOption,
quiet: int = QuietOption,
) -> None
Generate sample raw-data directories for exercising the trendify pipeline.
Source code in src/trendify/cli.py
get_local_ip
¶
Python
get_local_ip() -> str
Returns the actual local IP address of this machine.
Source code in src/trendify/cli.py
viewer
¶
Python
viewer(
ctx: Context,
db_path: Path = DbPathArgument,
host: str = HostOption,
port: int = PortOption,
verbose: int = VerboseOption,
quiet: int = QuietOption,
) -> None
Launch a local web dashboard for browsing a trendify.db's records.