MCPcopy Index your code
hub / github.com/httpie/cli / get_site_paths

Function get_site_paths

httpie/utils.py:229–245  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

227
228
229def get_site_paths(path: Path) -> Iterable[Path]:
230 from httpie.compat import (
231 MIN_SUPPORTED_PY_VERSION,
232 MAX_SUPPORTED_PY_VERSION,
233 is_frozen
234 )
235
236 if is_frozen:
237 [major, min_minor] = MIN_SUPPORTED_PY_VERSION
238 [major, max_minor] = MAX_SUPPORTED_PY_VERSION
239 for minor in range(min_minor, max_minor + 1):
240 yield as_site(
241 path,
242 py_version_short=f'{major}.{minor}'
243 )
244 else:
245 yield as_site(path)
246
247
248def split_iterable(iterable: Iterable[T], key: Callable[[T], bool]) -> Tuple[List[T], List[T]]:

Callers 2

_clear_metadataMethod · 0.90
enable_pluginsFunction · 0.85

Calls 1

as_siteFunction · 0.85

Tested by

no test coverage detected