astreum

v0.4.13 safe
3.0
Low Risk

Python library to interact with the Astreum blockchain and its virtual machine.

🤖 AI Analysis

Final verdict: SAFE

The package has no detectable risks related to network, shell execution, obfuscation, or credential harvesting. However, the metadata risk score is slightly elevated due to the maintainer's new or inactive account and lack of proper author identification.

  • No network calls detected
  • No shell execution patterns
  • No obfuscation patterns
  • No credential harvesting patterns
  • Metadata risk due to maintainer's account status
Per-check LLM notes
  • Network: No network calls detected, which is normal if the package does not require internet access.
  • Shell: No shell execution patterns detected, indicating the package likely does not execute external commands.
  • Obfuscation: No obfuscation patterns detected, indicating low risk.
  • Credentials: No credential harvesting patterns detected, indicating low risk.
  • Metadata: The maintainer has a new or inactive account and lacks a proper author name, indicating potential low credibility.

📦 Package Quality Overall: Low (3.6/10)

○ Low Test Suite 1.0

No test suite detected

  • No test files or test-runner configuration detected
◈ Medium Documentation 5.0

Some documentation present

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

  • 84 type-annotated function signatures detected in source
◈ Medium Multiple Contributors 5.0

Limited contributor diversity

  • 1 unique contributor(s) across 100 commits in astreum/lib-py
  • Single author but highly active (100 commits)

🔬 Heuristic Checks

Outbound Network Calls

No suspicious network call patterns found

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

Email domain looks legitimate: stelar.xyz>

Suspicious Page Links

All external links appear legitimate

Git Repository History

Repository astreum/lib-py appears legitimate

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 astreum
Create a fully-functional mini-application named 'AstroSwap' that allows users to interact with the Astreum blockchain for swapping tokens. AstroSwap should utilize the 'astreum' Python library to connect to the Astreum network and perform token swaps efficiently. The application should have the following core functionalities:

1. **User Authentication**: Allow users to log in using their Astreum wallet address. The application should validate the wallet address against the Astreum blockchain to ensure it exists.
2. **Token List**: Fetch and display a list of available tokens on the Astreum network. Users should be able to see details like token name, symbol, and current price.
3. **Token Swap**: Enable users to swap one token for another. The swap process should include selecting the source token, destination token, and amount to swap. The application should handle the transaction through the Astreum Virtual Machine (AVM).
4. **Transaction History**: Provide a feature where users can view their past transactions on the Astreum network, including swap transactions.
5. **Notifications**: Implement real-time notifications for successful swaps and any errors during the swap process.

To achieve these functionalities, the 'astreum' package will be utilized as follows:
- For user authentication, the 'astreum.wallet.authenticate()' method will be used to verify the user's wallet address.
- To fetch the list of tokens, use 'astreum.tokens.get_token_list()' which retrieves all tokens available on the Astreum network.
- For performing token swaps, the 'astreum.transaction.swap_tokens()' function will be called, providing parameters such as the source token ID, destination token ID, and the amount to swap.
- Transaction history can be retrieved using 'astreum.history.get_transaction_history(wallet_address)', where the wallet_address is the logged-in user's address.
- Notifications will leverage the 'astreum.notifications.on_event()' listener to catch events related to transactions.

The application should be designed with a user-friendly interface and robust error handling to ensure a smooth user experience.

💬 Discussion Feed

Leave a comment

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