onnxsim

v0.8.1 safe
2.5
Low Risk

Simplify your ONNX model

📦 Package Quality Overall: Low (4.2/10)

◈ Medium Test Suite 6.0

Partial test coverage signals detected

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

Some documentation present

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

  • 585 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

No suspicious network call patterns found

⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • float(m.eval(v, model_completion=True).as_fraction())
  • = build_model(cfg) model.eval() if weights is not None: DetectionCheckpointer(
  • map_location="cpu") model.eval() height, width = image_size img = torch.randn(1, n
  • pper = _Wrapper() wrapper.eval() buf = io.BytesIO() with torch.no_grad():
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • _HINT) try: out = subprocess.run( [path, "--version"], capture_output=True, text=
  • try: proc = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
  • ) == '1') try: version = subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0'],
  • rip() try: git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'],
  • = None try: dev_count = subprocess.check_output(['git', 'rev-list', '--count', f"v{version}..HEAD"]).decode(
  • nd {cmake_args}") subprocess.check_call(cmake_args) build_args = [CMAKE, '--build', os.
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

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

💬 Discussion Feed

Leave a comment

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