codebrain

v0.4.6 safe
2.7
Low Risk

Know what breaks before you break it. Structural knowledge graph for codebases — impact analysis, dead code detection, health scores. No LLM required.

📦 Package Quality Overall: Medium (5.2/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_gen.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (6520 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
  • Type checker (mypy / pyright / pytype) referenced in project
  • 669 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 1.5

Found 1 network call pattern(s)

  • try: async with httpx.AsyncClient(timeout=settings.timeout) as client: resp =
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • ") pf = pickle.loads(base64.b64decode(data)) return (pf, None) except subprocess.Tim
  • "vars()[", "exec(", "eval(", "type(", "__subclasses__", "register(",
  • .entries(", "eval(", "Function(", "[key]", "require(", "impor
  • decorators = __import__("json").loads(decorators) except Exception:
  • "importlib", "__import__(", "__getattr__", "__class_getitem__", "vars()[", "exec(", "eval(", "type(", "__subclasses__",
  • ned no output") pf = pickle.loads(base64.b64decode(data)) return (pf, None) exce
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • ists(backup): exit_code = os.system(f'python "{{backup}}"') if exit_code != 0: sys.e
  • try: result = subprocess.run( ["git", "diff", "--name-only", base],
  • try: result = subprocess.run( [sys.executable, "-m", "pytest", test_file,
  • "HEAD"] result = subprocess.run( cmd, cwd=str(self.repo_root
  • : untracked = subprocess.run( ["git", "ls-files", "--others", "--excl
  • try: proc = subprocess.run( ["python", "-m", "pytest", str(test_dir), "
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ 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 2.0

1 maintainer concern(s) found

  • Author "CodeBrain Contributors" 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 codebrain
Build a simple Python application using the codebrain package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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