altscodex-sdk

v2.1.0 safe
3.0
Low Risk

AltsCodex DeOAuth SDK for Python (FastAPI) — port of @altscodex/sdk

🤖 AI Analysis

Final verdict: SAFE

The package shows minimal signs of risk based on the analysis notes provided. There are no indications of malicious activities such as obfuscation, shell execution, or credential harvesting.

  • Low risk scores across all categories except metadata.
  • No suspicious patterns detected in the code.
Per-check LLM notes
  • Network: The use of httpx for making network calls is common and expected for packages that interact with external services or APIs.
  • Shell: No shell execution patterns were detected, which is normal and expected.
  • Obfuscation: No obfuscation patterns detected, indicating low risk of malicious activity.
  • Credentials: No credential harvesting patterns detected, suggesting no immediate risk to stored secrets.
  • Metadata: The package appears to be new and has limited activity, which could indicate potential risk but lacks clear evidence of malicious intent.

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 2 test file(s) found

  • Test runner config found: pyproject.toml
  • 2 test file(s) detected (e.g. test_backend.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (34403 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 5.0

Partial type annotation coverage

  • 31 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Unable to verify contributor count: no GitHub repository found

  • No GitHub repository linked — contributor count unavailable

🔬 Heuristic Checks

⚠ Outbound Network Calls score 4.5

Found 3 network call pattern(s)

  • self._http = http_client or httpx.AsyncClient(timeout=30.0) # ---------------------------------------
  • ansport(handler) client = httpx.AsyncClient(transport=transport) return AltsCodexBackend(**SDK_OPTIO
  • ansport(handler) client = httpx.AsyncClient(transport=transport) sdk = AltsCodexBackend(**SDK_OPTION
✓ Code Obfuscation

No obfuscation patterns detected

✓ Shell / Subprocess Execution

No shell execution patterns detected

✓ 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

No GitHub repository linked

  • No GitHub repository link found
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • Author "altscodex" 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 altscodex-sdk
Create a mini-application using FastAPI and the 'altscodex-sdk' package that allows users to manage their OAuth tokens securely. The app should provide a user-friendly interface for logging in via OAuth, viewing their current OAuth tokens, and revoking tokens when necessary. Additionally, include a feature that allows users to generate a report on the usage history of their tokens. Utilize the core functionalities of 'altscodex-sdk' to handle the OAuth deauthorization process efficiently.

Step-by-Step Instructions:
1. Set up a new FastAPI project.
2. Install the 'altscodex-sdk' package.
3. Create routes for user authentication via OAuth.
4. Implement functionality to display a user's OAuth tokens.
5. Add a route for revoking OAuth tokens.
6. Develop a reporting system that tracks token usage.
7. Ensure all data interactions with the 'altscodex-sdk' are secure and comply with best practices.

Suggested Features:
- User registration and login
- OAuth provider integration (e.g., Google, GitHub)
- Token management dashboard
- Token revocation confirmation dialog
- Detailed usage reports including dates and times of token usage
- Secure storage and handling of user credentials and tokens

💬 Discussion Feed

Leave a comment

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