MCPcopy Create free account
hub / github.com/concensure/Semantic / is_simple_python_module_specifier

Function is_simple_python_module_specifier

parser/src/lib.rs:555–561  ·  view source on GitHub ↗
(specifier: &str)

Source from the content-addressed store, hash-verified

553}
554
555fn is_simple_python_module_specifier(specifier: &str) -> bool {
556 !specifier.is_empty()
557 && !specifier.starts_with('.')
558 && specifier
559 .split('.')
560 .all(|part| !part.is_empty() && part.chars().all(|ch| ch.is_ascii_alphanumeric() || ch == '_'))
561}
562
563fn build_import_path_candidates(language: SupportedLanguage, normalized: &str) -> Vec<String> {
564 let trimmed = normalized.trim_end_matches('/');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…