Option C Tools
Loading...
Searching...
No Matches
source_exporter.py File Reference

Go to the source code of this file.

Namespaces

namespace  source_exporter

Functions

list[str] source_exporter._scan_content_for_secrets (str content, str rel_path)
list[str] source_exporter._get_cached_secret_warnings (str abs_path, str content, str rel_path)
dict source_exporter.load_exporter_config (Path root)
bool source_exporter.should_skip_dirname (str dirname, dict cfg)
bool source_exporter._is_never_export_file (str filename)
List[Path] source_exporter.collect_recursive_files (Path folder, dict cfg)
Tuple[int, int, int] source_exporter.get_file_stats (Path path)
 source_exporter.walk_included_dirs (Path start, dict cfg)
None source_exporter.clean_source_dirs (Path root, bool dry_run=False)
None source_exporter.clean_pycache_dirs (Path root, bool dry_run=False)
Path source_exporter._make_safe_output_path (Path out_dir, str dotpath, dict cfg, str prefix="_source")
 source_exporter.write_source_file_for_dir (Path folder, Path output_path, Path root, dict cfg, bool warn_secrets=False, bool block_secrets=False, set[Path]|None diff_filter=None)
None source_exporter.run_exporter (Path root, list[str] args)

Variables

 source_exporter._SECRET_ASSIGN_RE
dict source_exporter._secret_scan_cache = {}
set source_exporter._scanned_secret_paths = set()
dict source_exporter._EXTENSION_PROFILES
list source_exporter.INCLUDE_EXTENSIONS = [ext for exts in _EXTENSION_PROFILES.values() for ext in exts]
tuple source_exporter.HEADER_TEXT
str source_exporter.SEPARATOR_FILE = "##### File name {num:02d}: {path}\n"
str source_exporter.SEPARATOR_SUBDIR = "####### Subdirectory name {num:02d}: {dirname}\n"
str source_exporter.ROOT_HEADER = "####### Root directory: .\n\n"
int source_exporter._MAX_SAFE_PATH_LEN = 240
str source_exporter._CONFIG_FILENAME = "_oct_exporter_config.json"