jwtninja

v2.2.1 safe
2.1
Low Risk

A simple and fully-typed auth library for Django Ninja based on PyJWT.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 14 test file(s) found

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

Some documentation present

  • Documentation URL: "Documentation" -> https://dvf.github.io/jwt-ninja/
  • Detailed PyPI description (32232 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

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

  • e__) class _RejectRedirects(urllib.request.HTTPRedirectHandler): def redirect_request(self, req, fp
  • t_settings http_request = urllib.request.Request( f"https://ipapi.co/{parsed_ip.compressed}/j
  • wtninja"}, ) opener = urllib.request.build_opener(_RejectRedirects()) with opener.open(http_r
  • .patch("jwt_ninja.geolocation.urllib.request.build_opener", return_value=opener) return opener.open
  • .patch("jwt_ninja.geolocation.urllib.request.build_opener") with pytest.raises(ValueError): i
⚠ Code Obfuscation score 6.0

Found 3 obfuscation pattern(s)

  • dec_access_token = json.loads(base64.b64decode(json_response["access_token"].split(".")[1] + "===").decode(
  • ec_refresh_token = json.loads(base64.b64decode(json_response["refresh_token"].split(".")[1] + "===").decode
  • get_client_ip(request) == str(__import__("ipaddress").ip_address(max_ipv6)) @pytest.mark.django_db @override_se
✓ Shell / Subprocess Execution

No shell execution patterns detected

✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

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

💬 Discussion Feed

Leave a comment

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