ops

v3.10.0 safe
2.6
Low Risk

The Python library behind great charms

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 38 test file(s) found

  • Test runner config found: conftest.py
  • 38 test file(s) detected (e.g. __init__.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://canonical.com/juju/docs/ops/latest/
  • Detailed PyPI description (5929 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

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

  • t) class _UnixSocketHandler(urllib.request.AbstractHTTPHandler): """Implementation of HTTPHandler t
  • def http_open(self, req: urllib.request.Request): """Override http_open to use a Unix socket
  • attempt to Pebble; used by ``urllib.request.OpenerDirector.open``. It's not for methods like :meth:`
  • et_path: str, opener: urllib.request.OpenerDirector | None = None, base_url: str = 'http:
  • ner(cls, socket_path: str) -> urllib.request.OpenerDirector: """Build the default opener to use f
  • socket).""" opener = urllib.request.OpenerDirector() opener.add_handler(_UnixSocketHandl
⚠ Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • ted state. return pickle.loads(row[0]) # ruff: ignore[suspicious-pickle-usage] rai
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • ath) try: subprocess.run(argv, check=True) except subprocess.CalledProcessErr
  • ('argv', args) return subprocess.run([cmd, *args[1:]], encoding='utf-8', **kw) class SQLiteStor
  • """ try: result = subprocess.run( args, capture_output=True, check=True, encoding
  • D understand output = subprocess.getoutput('foo a "b c " && bar "d e" f') assert output == 'foo
  • foo runs') output = subprocess.getoutput('foo a "b c"') assert output == 'foo runs'
  • bar runs') output = subprocess.getoutput('bar "d e" f') assert output == 'bar runs'
✓ 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 "The Charm Tech team at Canonical Ltd." 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 ops
Build a simple Python application using the ops package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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