TornAPIWrapper

v2.9.1 safe
3.0
Low Risk

A Python wrapper for the Torn City API, providing access to Torn City data.

πŸ€– AI Analysis

Final verdict: SAFE

The package is assessed as safe with a low risk score due to minimal risks across all categories and no evidence of malicious activities.

  • Low network, shell, obfuscation, and credential risks.
  • Metadata suggests a new maintainer but lacks other red flags.
Per-check LLM notes
  • Network: Network call patterns are typical for API wrappers and likely legitimate.
  • Shell: No shell execution patterns detected.
  • Obfuscation: No obfuscation patterns detected, indicating low risk of malicious intent.
  • Credentials: No credential harvesting patterns detected, suggesting safe handling of secrets.
  • Metadata: The maintainer has only one package, which could indicate a new or less active account, but there are no other red flags.

πŸ”¬ Heuristic Checks

⚠ Outbound Network Calls score 3.0

Found 2 network call pattern(s)

  • imeout self.session = requests.Session() self.session.headers.update({"Authorization": f"Ap
  • [1])) self.session = aiohttp.ClientSession(timeout=session_timeout) self.session.headers.update
βœ“ 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

Repository cxdzc/TornAPIWrapper appears legitimate

⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "cxdzc" 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 TornAPIWrapper
Create a real-time monitoring dashboard for a Torn City player using the 'TornAPIWrapper' Python package. This dashboard will provide key information such as the player's health status, bank balance, last login time, and current mission details. Additionally, include alerts for when the player's health drops below a certain threshold or if they log out unexpectedly. Here’s a step-by-step guide on how to implement this project:

1. **Setup**: Install the 'TornAPIWrapper' package using pip and set up your Torn API key.
2. **Initialization**: Initialize the TornAPIWrapper instance with your API key.
3. **Data Retrieval**: Use the wrapper to fetch the player's health, bank balance, last login time, and current mission details.
4. **Dashboard Creation**: Create a simple GUI using Tkinter or a web-based dashboard using Flask to display the fetched data.
5. **Real-Time Updates**: Implement a function to periodically update the displayed data every minute.
6. **Alert System**: Add functionality to trigger alerts (visual or audio) when specific conditions are met, like health dropping below 80% or the player logging out.
7. **Testing**: Test the dashboard thoroughly to ensure it works correctly and efficiently.

Suggested Features:
- Display a graph showing the player's health over the past few hours.
- Include a section for upcoming missions and their rewards.
- Allow users to customize alert thresholds and notification methods.
- Implement a feature to save and load user settings.