contextduty

v2.3.0 safe
2.8
Low Risk

Policy-driven context firewall for AI workflows — scan and redact sensitive data before prompts, logs, or traces leave your environment.

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 6 test file(s) found

  • Test runner config found: pyproject.toml
  • 6 test file(s) detected (e.g. test_audit.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (12964 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

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

  • ps scheme: {url}") req = urllib.request.Request( url, headers={"User-Agent": f"conte
  • , ) try: with urllib.request.urlopen(req, timeout=timeout) as resp: # noqa: S310
  • Bearer {token}" req = urllib.request.Request( url.rstrip("/") + "/api/ingest",
  • hod="POST", ) urllib.request.urlopen(req, timeout=timeout) # noqa: S310 except Excep
  • n network error.""" req = urllib.request.Request(url, headers={**headers, "User-Agent": _UA}, method=
  • ="GET") try: with urllib.request.urlopen(req, timeout=timeout) as resp: # noqa: S310 (https
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • # Set up a real git repo subprocess.run(["git", "init", str(tmp)], capture_output=True) subproce
  • p)], capture_output=True) subprocess.run( ["git", "-C", str(tmp), "config", "user.email", "de
  • capture_output=True ) subprocess.run(["git", "-C", str(tmp), "config", "user.name", "Demo"], capt
  • block_policy, indent=2)) subprocess.run( ["git", "-C", str(tmp), "add", "config.py", ".conte
  • use(0.8) commit_result = subprocess.run( ["git", "-C", str(tmp), "commit", "-m", "add config
  • return False proc = subprocess.Popen( [mitmdump, "--listen-port", "18999"], stdou
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://`
⚠ 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 contextduty
Build a simple Python application using the contextduty package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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