AI Analysis
Final verdict: SAFE
The package X-Holidays appears to be safe based on the low scores across all risk categories. While there is some concern about the unavailability of the repository and the maintainer's activity level, these do not strongly suggest a supply-chain attack.
- Low network, shell, obfuscation, and credential risks.
- Repository not found and maintainer has a single package.
Per-check LLM notes
- Network: No network calls are expected for a package named 'X-Holidays', which likely deals with holiday date calculations.
- Shell: No shell execution is expected for a package named 'X-Holidays', indicating no immediate signs of malicious activity.
- Obfuscation: No obfuscation patterns detected, suggesting low risk.
- Credentials: No credential harvesting patterns detected, indicating low risk.
- Metadata: The repository is not found, and the maintainer has a single package which could indicate a new or less active account.
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
No author email provided
Suspicious Page Links
All external links appear legitimate
Git Repository History
score 3.0
Repository not found (deleted or private)
Repository not found (deleted or private)
Maintainer History
score 2.0
1 maintainer concern(s) found
Author "Amir-X" 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 X-Holidays
Create a holiday tracker application using Python that leverages the 'X-Holidays' package. This application will allow users to check both Persian and international holidays for any given year. Here are the steps and features to include: 1. **Setup**: Begin by installing the 'X-Holidays' package via pip. Ensure your development environment is set up with Python 3.x. 2. **User Interface**: Design a simple command-line interface (CLI) where users can input the year they want to check for holidays. Consider adding options for specifying regions or countries if 'X-Holidays' supports such granularity. 3. **Core Functionality**: Utilize 'X-Holidays' to fetch all holidays for the specified year. Implement functions to display these holidays in a readable format, including the date, name of the holiday, and any additional information provided by 'X-Holidays'. 4. **Feature Enhancements**: - **Calendar View**: Offer a feature that generates a calendar view of the selected year, marking all holidays on it. - **Holiday Details**: For each holiday, provide a brief description of its significance and origin. - **Upcoming Holidays**: Implement a function that lists upcoming holidays from today's date onwards. 5. **Error Handling**: Ensure the application gracefully handles errors like incorrect date formats or invalid inputs. 6. **Testing**: Write tests to verify that the application correctly identifies holidays for different years and regions. Use 'X-Holidays' documentation to find sample data for testing. 7. **Documentation**: Prepare a README file explaining how to install and use the application, along with examples of commands and expected outputs. 8. **Deployment**: Optionally, deploy the application as a web service using Flask or another lightweight framework, allowing users to interact with it through a browser.