INNER CODE UNIT · Python

_is_url

AgentSkillOS/SkillAnything · scripts/analyze_target.py:35

def _is_url(target: str) -> bool:
    return bool(_URL_RE.match(target))


def _detect_target_type(target: str, verbose: bool = False) -> str:
    """Return one of: api, cli, library, workflow, service, file, unknown."""
    if _is_url(target):
        if verbose:
            print(f"[detect] Target looks like a URL: {target}")
        return _classify_url(target, verbose)

    if shutil.which(target):
        if verbose:
            print(f"[detect] Found executable in PATH: {target}")
        return "cli"

    if os.path.exists(target):
        if verbose:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…