Hostile 99% python Download

litellm 1.111.0rc2

Known LiteLLM package, framework noise only

Account collection path fragmentActiveXObject constructor reference

Evidence

Python build_wheel function defined build_backend.py · lines 1–48
1import sys
2from collections.abc import Mapping
3from pathlib import Path
4from typing import Final
5
6import maturin
7from cli_package import PACKAGE_DIR, map_wheel
8from maturin import (
9 build_sdist as build_sdist,
10)
11from maturin import (
12 get_requires_for_build_editable as get_requires_for_build_editable,
13)
14from maturin import (
15 get_requires_for_build_sdist as get_requires_for_build_sdist,
16)
17from maturin import (
18 get_requires_for_build_wheel as get_requires_for_build_wheel,
19)
20from maturin import (
21 prepare_metadata_for_build_editable as prepare_metadata_for_build_editable,
22)
23from maturin import (
24 prepare_metadata_for_build_wheel as prepare_metadata_for_build_wheel,
25)
26
27
28def build_wheel(
29 wheel_directory: str,
30 config_settings: Mapping[str, str | list[str]] | None = None,
⋯11 lines
42) -> str:
43 filename: Final = maturin.build_editable(wheel_directory, config_settings, metadata_directory)
44 map_wheel(Path(wheel_directory) / filename, source=Path(__file__).resolve().parents[2] / PACKAGE_DIR)
45 return filename
46
47
48if __name__ == "__main__":
Imports Python base64 module cli_package.py · lines 1–17
1import argparse
2import base64
3import copy
4import csv
5import hashlib
6import io
7import os
8from pathlib import Path
9from tempfile import NamedTemporaryFile
10from typing import Final
11from zipfile import ZipFile, ZipInfo
12
13PACKAGE_DIR: Final = "litellm/cli"
⋯4 lines
References importlib file-spec construction cli_package.py · lines 24–41
24:19… if fullname == {PACKAGE_NAME!r}:\n"
25 " return importlib.util.spec_from_file_location(\n"
26 f" fullname, {str(source / '__init__.py')!r},\n"
27 f" submodule_search_locations=[{str(source)!r}])\n"
28 " return None\n\n"
29 "sys.meta_path.insert(0, _Finder())\n"
30 )
31 return ((f"{module}.py", finder.encode()), (f"{module}.pth", f"import {module}\n".encode()))
32
33
⋯8 lines
Performs Python SHA-256 operation cli_package.py · lines 48–57
48:20… s(
49 (
50 info.filename,
51 "sha256=" + base64.urlsafe_b64encode(hashlib.sha256(data).digest()).rstrip(b"=").decode(),
52 str(len(data)),
53 )
54 for info, data in entries
55 )
56 writer.writerow((record, "", ""))
57 return buffer.getvalue(). …
Python constructs a ZipFile archive handle cli_package.py · lines 60–64
60:13… l(wheel: Path, *, source: Path | None = None) -> None:
61 with ZipFile(wheel) as archive:
62 records: Final = tuple(info for info in archive.infolist() if info.filename.endswith(".dist-info/RECORD"))
63 if len(records) != 1:
64 raise ValueE …

Showing the top 5 files — 4 more files (103 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.