modern-python-guidance

v1.3.0 safe
3.0
Low Risk

Version-aware BAD/GOOD pattern guides that help AI coding agents generate modern Python

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 18 test file(s) found

  • Test runner config found: conftest.py
  • 18 test file(s) detected (e.g. test_calculator.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (27500 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
  • 687 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 6.0

Found 4 network call pattern(s)

  • ): # Per-request: httpx.get(), httpx.post() etc if isinstance(node, ast.Call
  • # Per-request: httpx.get(), httpx.post() etc if isinstance(node, ast.Call):
  • results = [] async with httpx.AsyncClient() as client: async with asyncio.TaskGroup() as tg:
  • : str) -> str: response = httpx.get(url) return response.text async def batch_crawl(urls:
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • are used. compile(), exec(), eval(), importlib are FORBIDDEN on LLM output. Requires Python 3
  • are used. compile(), exec(), eval(), importlib are FORBIDDEN on user file content. """ from _
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • continue # os.system(...) if _is_call_to(node, pf, "os", "system"):
  • command(cmd: str) -> str: os.system(f"echo {cmd}") return "" def save_cache(data: Any, pat
  • sys.stdin.read() proc = subprocess.run( [real_python, "-m", "modern_python_guidance", "hook
  • sult: """safe-subprocess: subprocess.run([...]) vs os.system/shell=True""" for pf in files:
  • continue # subprocess.run(..., shell=True) if _is_call_to(node, pf, "subpr
  • else: # subprocess.run([...]) — first arg is a list if node.arg
⚠ Credential Harvesting score 2.5

Found 1 credential access pattern(s)

  • it does nothing about `~/.aws/credentials`. Opting in is the actual control. `shown` is what the
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: raksul.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 modern-python-guidance
Build a simple Python application using the modern-python-guidance package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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