pytest-kafka-contract

v0.2.4 safe
2.3
Low Risk

A pytest plugin and CLI for validating Kafka JSON and Avro messages against contracts.

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 38 test file(s) found

  • Test runner config found: conftest.py
  • Test runner config found: conftest.py
  • Test runner config found: pyproject.toml
  • 38 test file(s) detected (e.g. test_avro_contract.py)
  • Classifier: Framework :: Pytest
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (28514 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 7.0

Partial type annotation coverage

  • Type checker (mypy / pyright / pytype) referenced in project
  • 152 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)

  • equire_httpx() return httpx.Client(timeout=self.timeout_seconds, transport=self.transport)
  • try: response = httpx.get(f"{registry_url}/subjects", timeout=2) if respon
  • ny], ) -> int: response = httpx.post( f"{registry_url}/subjects/{subject}/versions",
  • registry_url) response = httpx.get(f"{schema_registry_url}/subjects", timeout=10) assert r
  • , ) latest_response = httpx.get( f"{schema_registry_url}/subjects/{subject}/versions
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 5 shell execution pattern(s)

  • letedProcess[str]: return subprocess.run(args, cwd=cwd, text=True, capture_output=True, check=False)
  • in commands: result = subprocess.run( command, cwd=tmp_path,
  • ult.stderr help_result = subprocess.run( [cli, "kafka-validate-json", "--help"], cwd
  • ).parameters avro_help = subprocess.run( [cli, "kafka-validate-avro", "--help"], cwd
  • PYTHONPATH", None) return subprocess.run(args, cwd=cwd, text=True, capture_output=True, check=False,
✓ 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 "Dharsan Guruparan" 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 pytest-kafka-contract
Build a simple Python application using the pytest-kafka-contract package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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