f7fc15b17c
Includes: - cli.py path fix (parents[1]) for config/catalog resolution - Library cleanup feature design docs (TODO.md, mockup) - Audit + bug-queue markdowns from May 2026 reliability pass - .gitignore expanded for transient artifacts
115 lines
2.5 KiB
Python
115 lines
2.5 KiB
Python
"""rcjav — internal package split out of rc-jav.py.
|
|
|
|
This file re-exports the names that external callers (tests, fixtures
|
|
runner, native messaging host, in-tree code in rc-jav.py) expect to
|
|
find at the top level. Adding a new submodule does not change the
|
|
public surface — only this file does.
|
|
"""
|
|
from rcjav.model import FileEntry # noqa: F401
|
|
from rcjav.output import ( # noqa: F401
|
|
USE_ANSI,
|
|
ANSI_RESET,
|
|
ANSI_GREEN,
|
|
ANSI_RED,
|
|
ANSI_YELLOW,
|
|
ANSI_CYAN,
|
|
ANSI_DIM,
|
|
ANSI_BOLD,
|
|
set_use_ansi,
|
|
set_basic,
|
|
ansi,
|
|
console,
|
|
set_console_no_color,
|
|
strip_markup,
|
|
human_size,
|
|
BasicProgress,
|
|
make_progress,
|
|
render_banner,
|
|
render_search,
|
|
render_name_matches,
|
|
render_name_matches_plain,
|
|
render_dupes,
|
|
render_banner_plain,
|
|
render_search_plain,
|
|
render_dupes_plain,
|
|
write_txt,
|
|
write_csv,
|
|
describe_skipped_id,
|
|
dupes_to_obj,
|
|
write_json,
|
|
)
|
|
from rcjav.library import ( # noqa: F401
|
|
classify_filename_hygiene,
|
|
find_library_issues,
|
|
find_missing_resolution,
|
|
find_resolution_noncanonical,
|
|
rename_file_in_remote,
|
|
rename_files_batch,
|
|
)
|
|
from rcjav.rclone_io import ( # noqa: F401
|
|
RCLONE_BIN,
|
|
CANCEL_FLAG,
|
|
CANCEL_CHECK_INTERVAL,
|
|
DURATION_RE,
|
|
set_basic,
|
|
set_rclone_bin,
|
|
quick_search_remote,
|
|
choose_search_mode,
|
|
name_to_include_patterns,
|
|
name_match,
|
|
query_to_include_patterns,
|
|
remote_file_count,
|
|
parse_duration,
|
|
walk_remote,
|
|
)
|
|
from rcjav.catalog import ( # noqa: F401
|
|
CATALOG_COL_NAME,
|
|
CATALOG_COL_PATH,
|
|
CATALOG_COL_SIZE,
|
|
CATALOG_COL_DISC,
|
|
normalize_catalog_path,
|
|
load_catalog_csv,
|
|
load_catalog_xml,
|
|
load_catalogs,
|
|
)
|
|
from rcjav.dupes import ( # noqa: F401
|
|
DEFAULT_KEEP_RANKING,
|
|
set_keep_ranking,
|
|
get_keep_ranking,
|
|
decide_keep_with_reason,
|
|
decide_keep,
|
|
find_dupes,
|
|
describe_dupe_risks,
|
|
find_variant_alerts,
|
|
)
|
|
from rcjav.cache import ( # noqa: F401
|
|
CACHE_PATH,
|
|
CACHE_VERSION,
|
|
CACHE_SCHEMA_VERSION,
|
|
ID_RULES_VERSION,
|
|
CACHE_STALE_HOURS,
|
|
load_cache,
|
|
save_cache,
|
|
cache_age_hours,
|
|
fmt_age,
|
|
cache_state,
|
|
stamp_current_rules,
|
|
)
|
|
from rcjav.ids import ( # noqa: F401
|
|
PRIMARY_ID_RE,
|
|
FALLBACK_ID_RE,
|
|
COMPOUND_ID_RE,
|
|
RANGE_RE,
|
|
BUILTIN_PART_RES,
|
|
PART_RES,
|
|
configure_part_patterns,
|
|
detect_part,
|
|
detect_part_from_stem,
|
|
part_key,
|
|
extract_id,
|
|
normalize_id,
|
|
describe_id_match,
|
|
expand_range,
|
|
current_rules_signature,
|
|
)
|