specfile

v0.42.1 safe
2.7
Low Risk

A library for parsing and manipulating RPM spec files.

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

✦ High Test Suite 9.0

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

  • Test runner config found: setup.cfg
  • Test runner config found: conftest.py
  • 25 test file(s) detected (e.g. __init__.py)
β—ˆ Medium Documentation 7.0

Some documentation present

  • 1 documentation file(s) (e.g. processors.py)
  • Detailed PyPI description (10978 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

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

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • discover"]["ref"] = ( subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() ) # Set
  • rrent main packit_ref = ( subprocess.check_output( ["git", "ls-remote", "https://github.com/packit/pac
  • which("git"): email = subprocess.run( ["git", "config", "user.email"], st
  • ut.strip() fullname = subprocess.run( ["git", "config", "user.name"], std
  • nkeypatch.chdir(tmp_path) subprocess.run( ["git", "init", "."], check=True, stdout=subprocess
  • err=subprocess.PIPE ) subprocess.run( ["git", "config", "user.name", "Packager, Patty"],
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • "* Tue Jul 16 12:00:00 ../../etc/passwd 2024 Nikola ForrΓ³ - 0.3-1", datetime.datetime(2
  • s.exit(0)", 'io.open("/etc/passwd")', 'io.popen("id")', 'io.lines("/etc/passw
  • en("id")', 'io.lines("/etc/passwd")', "io.tmpfile()", 'require("os")',
  • 'print(rpm.expand("%(cat /etc/passwd)"))', "rpm.expand('%(id)')", 'local x = rpm
  • ( "%{quote:%(cat /etc/passwd)}", "%{quote:%{nil}}", 1, )
  • "v=%{name}; echo ${v//-/%(cat /etc/passwd)}", ], ) def test_bash_replace_rejects_unsafe_repl(body
βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

Email domain looks legitimate: redhat.com

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://ftp.rpm.org/max-rpm/s1-rpm-inside-macros.html#S2-RPM-INSIDE-PATCH-MACRO
⚠ 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 "Red Hat" 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 specfile
Build a simple Python application using the specfile package to demonstrate its core features.

πŸ’¬ Discussion Feed

Leave a comment

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