hfl

v0.28.0 suspicious
4.2
Medium Risk

Download, run and try any Hugging Face model on your own machine.

πŸ“¦ Package Quality Overall: Medium (6.6/10)

✦ High Test Suite 9.0

Test suite present β€” 1 test file(s) found

  • Test runner config found: pyproject.toml
  • 1 test file(s) detected (e.g. test_websearch_setup.py)
β—ˆ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://ggalancs.github.io/hfl/
  • Detailed PyPI description (30224 chars)
✦ High Contributing Guide 9.0

Has contribution guidelines and governance files

  • Governance file: security.py
  • Development Status classifier >= Beta
β—ˆ Medium Type Annotations 7.0

Partial type annotation coverage

  • Type checker (mypy / pyright / pytype) referenced in project
  • 626 type-annotated function signatures detected in source
β—‹ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

πŸ”¬ Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • try: upstream = socket.create_connection((host, int(port)), timeout=30) except OSError:
  • g).encode() stalled = socket.create_connection(("127.0.0.1", port), timeout=10) stalled.setsockopt(
  • try: if httpx.get(base + "/healthz", timeout=2).status_code == 200:
  • httpx.Client: return httpx.Client(base_url=base, timeout=timeout, **kwargs) def wheel(sel
  • try: r = httpx.post(self.base + path, json=body, timeout=timeout) se
  • s``, ``mlx``…).""" tags = httpx.get(base + "/api/tags", timeout=30).json().get("models", [])
⚠ Code Obfuscation score 6.0

Found 3 obfuscation pattern(s)

  • 256}, ).json() raw = base64.b64decode(b64["data"][0]["embedding"]) expect(len(raw) == 256 * 4,
  • se64 chars. decoded = base64.b64decode(payload, validate=True) except (binascii.Error, ValueErr
  • e.glob("[a-z]*.py")): __import__(f"audit_checks.{module.stem}") def selected(only: str | None) -> list[Check]: """The
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • try: return subprocess.run( [self.hfl, *args], input=st
  • (log_path, 0)) proc = subprocess.Popen( [self.hfl, "serve", "--port", str(port), *args]
  • refix="dist-", dir=work)) subprocess.run(["uv", "build", "--wheel", "--out-dir", str(dist), str(repo)
  • ython, str(venv)] subprocess.run(create, check=True) python_bin = str(venv_exe(venv,
  • py already installed. subprocess.run( ["uv", "pip", "install", "--reinstall-package",
  • amp}.log", "wb") server = subprocess.Popen( [str(hfl), "serve", "--port", str(port)], env=env,
⚠ Credential Harvesting score 10.0

Found 5 credential access pattern(s)

  • el": "stories", "lora_path": "/etc/passwd"}) expect(outside.status_code == 400, outside.status_co
  • validate_model_name("../../../etc/passwd") # Raises ValidationError """ if not name:
  • ad arbitrary files (e.g. ../../etc/passwd) as a "LoRA adapter". import hfl.config fro
  • itrary file # such as /etc/passwd or ~/.ssh/id_rsa as a "model". import hfl.config
  • # such as /etc/passwd or ~/.ssh/id_rsa as a "model". import hfl.config from hfl.se
βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://host:8080
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Gabriel GalΓ‘n Pelayo" appears to have only 1 package on PyPI (new or inactive account)
βœ“ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

πŸ’‘ AI App Starter Prompt

Use this prompt to build a project with hfl
Build a simple Python application using the hfl package to demonstrate its core features.

πŸ’¬ Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!