metricai

v0.8.6 safe
3.1
Low Risk

Python SDK for MetricAI — AI billing and metering proxy

📦 Package Quality Overall: Low (4.6/10)

◈ Medium Test Suite 6.0

Partial test coverage signals detected

  • Test runner config found: pyproject.toml
◈ Medium Documentation 5.0

Some documentation present

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

No contributing guide or governance files found

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

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • 466 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Unable to verify contributor count: no GitHub repository found

  • No GitHub repository linked — contributor count unavailable

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • () -> None: req = urllib.request.Request( f"{self.base_url}/v1/sdk/events",
  • try: with urllib.request.urlopen(req, timeout=self.timeout) as resp:
  • e provider name used to route requests. session (SessionContext, optional): Session metadata to attach to the
  • s(self._api_key) with httpx.Client(timeout=self._timeout) as client: response = cli
  • self._http_client = httpx.Client(timeout=self._timeout) return self._http_client
  • self._async_http_client = httpx.AsyncClient(timeout=self._timeout) return self._async_http_clien
⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • rpartition(".") mod = __import__(module_path, fromlist=[cls_name]) cls = getattr(mod, cls_name) original_init
  • return mod = __import__("openai", fromlist=["OpenAI"]) cls = mod.OpenAI original_init = cls.__init
  • self._starts[str(run_id)] = __import__("time").time() def on_llm_end(self, response: LLMResult, *, ru
  • t None: ms = int((__import__("time").time() - t0) * 1000) m.latency_ms += ms
✓ Shell / Subprocess Execution

No shell execution patterns detected

⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • return True return bool(os.getenv("AWS_ACCESS_KEY_ID")) def normalize_azure_openai_endpoint(endpo
  • ("aws_access_key") or os.getenv("AWS_ACCESS_KEY_ID") ) if access_key and "X-Bedrock-Acces
  • ("aws_secret_key") or os.getenv("AWS_SECRET_ACCESS_KEY") ) if secret_key and "X-Bedrock-S
  • ws_session_token") or os.getenv("AWS_SESSION_TOKEN") or os.getenv("AWS_SECURITY_TOKEN")
  • WS_SESSION_TOKEN") or os.getenv("AWS_SECURITY_TOKEN") ) if session_token and "X-Bedrock-S
  • .get("aws_region") or os.getenv("AWS_REGION") ) if region and "X-Bedrock-Region" not in o
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

✓ Git Repository History

No GitHub repository linked

  • No GitHub repository link found
⚠ 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 metricai
Build a simple Python application using the metricai package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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