mongomock-ng

v7.11.1 safe
3.2
Low Risk

Replacement fake pymongo stub for testing simple MongoDB-dependent code

πŸ“¦ Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present β€” 21 test file(s) found

  • Test runner config found: conftest.py
  • 21 test file(s) detected (e.g. conftest.py)
β—ˆ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (12446 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
  • 93 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 3.0

Found 2 network call pattern(s)

  • pi.github.com{url}" req = urllib.request.Request(url, headers=HEADERS, method=method) if data is
  • ncode() try: with urllib.request.urlopen(req) as resp: return json.loads(resp.rea
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • '$where uses Python eval() - not a real JS environment. ' 'Unsafe
  • result = eval(_where_expr, {'__builtins__': {}}, {'doc': _WhereDoc(documen
⚠ Shell / Subprocess Execution score 10.0

Found 5 shell execution pattern(s)

  • ess try: result = subprocess.run(["gh", "auth", "token"], capture_output=True, text=True, tim
  • th) try: result = subprocess.run( ['claude', '--print'], input=prompt
  • d' ) result = subprocess.run([sys.executable, '-c', code], capture_output=True, text=True
  • r().enabled' result = subprocess.run([sys.executable, '-c', code], capture_output=True, text=True
  • n>", name' ) result = subprocess.run([sys.executable, '-c', code], capture_output=True, text=True
⚠ Credential Harvesting score 7.5

Found 3 credential access pattern(s)

  • e, urllib.request GH_TOKEN = os.environ.get("GITHUB_TOKEN") or os.environ.get("GH_TOKEN") if not GH_TOKEN: # Try
  • ers() -> Headers: token = os.environ.get('GITHUB_TOKEN') if not token: print('::error ::GITHUB_TOKEN e
  • dentials.md / secrets.txt / ~/.aws/credentials would # slip through the natural-language filter. This is a
βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

Email domain looks legitimate: corpet.net>

βœ“ 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 mongomock-ng
Build a simple Python application using the mongomock-ng package to demonstrate its core features.

πŸ’¬ Discussion Feed

Leave a comment

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