mirror.py

v1.4.1 safe
2.5
Low Risk

Mirror manager daemon that maintains local mirrors of remote package repositories via rsync, ftpsync, and other sync protocols.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 17 test file(s) found

  • Test runner config found: pyproject.toml
  • 17 test file(s) detected (e.g. test_apt_mirror2_discovery.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://mirror-py.sparcs.org/
  • Detailed PyPI description (9794 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

  • 481 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 7.5

Found 5 network call pattern(s)

  • class _SafeRedirectHandler(urllib.request.HTTPRedirectHandler): def redirect_request( self
  • self, request: urllib.request.Request, file_pointer: object, code: int,
  • new_url: str, ) -> urllib.request.Request | None: old = urllib.parse.urlsplit(request.
  • : str) -> bytes: opener = urllib.request.build_opener(_SafeRedirectHandler()) try: with o
  • class _SafeRedirectHandler(urllib.request.HTTPRedirectHandler): """Reject redirect chains that dow
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • """ try: result = subprocess.run( ["systemctl", "daemon-reload"], che
  • ry: _ACTIVE_PROCESS = subprocess.Popen( command, stdout=subprocess.DEVNULL, stderr=subp
  • _ACTIVE_PROCESS = subprocess.Popen([sys.executable, "-m", "apt_mirror", str(config)])
  • ry: _ACTIVE_PROCESS = subprocess.Popen( command, stdout=stdout,
  • _ACTIVE_PROCESS = subprocess.Popen( command, stdout=output,
  • _ACTIVE_PROCESS = subprocess.Popen(command) return _ACTIVE_PROCESS.wait() e
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: ftp.kaist.ac.kr>

✓ 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 mirror.py
Build a simple Python application using the mirror.py package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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