altair

v6.2.1 safe
4.0
Medium Risk

Vega-Altair: A declarative statistical visualization library for Python.

🤖 AI Analysis

Final verdict: SAFE

The package Altair v6.2.1 appears to be safe with low risks across all categories except for obfuscation, where there's a potential for dynamic code execution. However, this does not strongly indicate malicious intent.

  • Low network and shell execution risks
  • Potential for obfuscation through dynamic code execution
Per-check LLM notes
  • Network: No network calls detected, which is normal for Altair unless it requires external services.
  • Shell: No shell execution detected, consistent with a library focused on data visualization.
  • Obfuscation: The code snippet suggests the use of dynamic code execution which can be used for obfuscation but may also have legitimate uses.
  • Credentials: No clear signs of credential harvesting detected.
  • Metadata: The maintainer has only one package, which could indicate a new or less active account, but no other red flags are present.

📦 Package Quality Overall: Medium (6.8/10)

◈ Medium Test Suite 6.0

Partial test coverage signals detected

  • Test runner config found: pyproject.toml
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://altair-viz.github.io
  • Detailed PyPI description (6501 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 7.0

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • Type checker (mypy / pyright / pytype) referenced in project
  • 527 type-annotated function signatures detected in source
✦ High Multiple Contributors 10.0

Active multi-contributor project

  • 23 unique contributor(s) across 100 commits in vega/altair
  • Active community — 5 or more distinct contributors

🔬 Heuristic Checks

Outbound Network Calls

No suspicious network call patterns found

Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • ilename, mode="exec") exec(compiled, namespace) with catch_display: for node in t
  • le" ) exec(compiled, namespace) if strict: output = catch_display
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 vega/altair appears legitimate

Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Vega-Altair Contributors" 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 altair
Create a fully functional mini-application using the Altair Python package to visualize and analyze stock market data. This application will allow users to input a ticker symbol of a publicly traded company, fetch historical stock price data from an API such as Alpha Vantage or Yahoo Finance, and then generate interactive visualizations of the stock prices over time using Altair. The application should include the following features:

1. User Input Interface: Allow users to enter a stock ticker symbol.
2. Data Fetching: Use an external API to retrieve historical stock price data for the entered ticker symbol.
3. Data Visualization: Utilize Altair to create interactive line charts showing the closing prices over time. Include options for adjusting the time range displayed.
4. Statistical Analysis: Implement basic statistical analysis functions like calculating moving averages, and display these alongside the raw closing prices on the same chart.
5. Interactive Features: Enable zooming into specific date ranges, hovering over points to see detailed information, and exporting the chart as an image file.
6. Error Handling: Ensure proper handling of invalid inputs and errors when fetching data.
7. Documentation: Provide clear documentation on how to run the application, including any necessary setup steps for required packages and APIs.

This project aims to demonstrate Altair's capabilities in generating dynamic and informative visualizations while providing practical insights into financial data analysis.

💬 Discussion Feed

Leave a comment

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