pytest-fakellm

v0.2.0 safe
1.8
Low Risk

Pytest fixtures for the fakellm mock OpenAI/Anthropic server — spin up, reset, and assert with zero boilerplate.

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 3 test file(s) found

  • Test runner config found: pyproject.toml
  • 3 test file(s) detected (e.g. test_features.py)
  • Classifier: Framework :: Pytest
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (7072 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 23 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)

  • = None self._client = httpx.Client(base_url=self.base_url, timeout=10.0) # -- URLs -------
  • t, model="gpt-4"): resp = httpx.post( f"{server.openai_base_url}/chat/completions",
  • ol result (OpenAI shape). httpx.post( f"{fakellm.openai_base_url}/chat/completions",
  • available (mock)") resp = httpx.post( f"{fakellm.anthropic_base_url}/v1/messages",
  • def _chat(server, text): httpx.post( f"{server.openai_base_url}/chat/completions",
  • sing raw httpx.""" resp = httpx.post( f"{server.openai_base_url}/chat/completions",
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 2.0

Found 1 shell execution pattern(s)

  • lse None self._proc = subprocess.Popen( argv, stdout=subprocess.PIPE,
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" 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 pytest-fakellm
Build a simple Python application using the pytest-fakellm package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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