jellycell.cli.commands.cache¶
jellycell cache — list, clear, rebuild-index, prune.
Module Contents¶
Classes¶
JSON schema for |
|
JSON schema for |
|
JSON schema for |
|
One pruned manifest, for the |
|
JSON schema for |
Functions¶
List cached cells ordered by most recent first. |
|
Wipe the cache directory. Pass |
|
Prune old cache entries. |
|
Rebuild the SQLite catalogue index from the manifest files on disk. |
Data¶
API¶
- jellycell.cli.commands.cache.cache_app¶
‘Typer(…)’
- class jellycell.cli.commands.cache.CacheListReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell cache list --json. §10.1 contract.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class jellycell.cli.commands.cache.CacheClearReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell cache clear --json.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class jellycell.cli.commands.cache.CacheRebuildReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell cache rebuild-index --json.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class jellycell.cli.commands.cache.CachePruneEntry(/, **data: Any)¶
Bases:
pydantic.BaseModelOne pruned manifest, for the
cache pruneJSON report.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class jellycell.cli.commands.cache.CachePruneReport(/, **data: Any)¶
Bases:
pydantic.BaseModelJSON schema for
jellycell cache prune --json.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- removed: list[jellycell.cli.commands.cache.CachePruneEntry]¶
‘Field(…)’
- jellycell.cli.commands.cache.list_cache(ctx: typer.Context, project: pathlib.Path | None = typer.Argument(None, help='Project root.')) None¶
List cached cells ordered by most recent first.
- jellycell.cli.commands.cache.clear_cache(ctx: typer.Context, project: pathlib.Path | None = typer.Argument(None, help='Project root.'), yes: bool = typer.Option(False, '--yes', '-y', help='Skip confirmation.')) None¶
Wipe the cache directory. Pass
--yesto skip interactive confirmation.
- jellycell.cli.commands.cache.prune_cache(ctx: typer.Context, project: pathlib.Path | None = typer.Argument(None, help='Project root.'), older_than: str | None = typer.Option(None, '--older-than', help="Remove entries executed more than this duration ago (e.g. '30d', '12h')."), keep_last: int | None = typer.Option(None, '--keep-last', help='Keep only the N most recent entries per notebook; drop the rest.'), dry_run: bool = typer.Option(False, '--dry-run', help="List what would be removed; don't delete.")) None¶
Prune old cache entries.
In this release, prune operates on manifests only. Blobs are left in place (diskcache dedupes content-addressed storage anyway; a proper ref-counted blob GC lands in a follow-up). Use
cache clearfor a full wipe if you need to reclaim disk.
- jellycell.cli.commands.cache.rebuild_index(ctx: typer.Context, project: pathlib.Path | None = typer.Argument(None, help='Project root.')) None¶
Rebuild the SQLite catalogue index from the manifest files on disk.