-
Notifications
You must be signed in to change notification settings - Fork 19
Add Intelligent package manager wrapper #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Intelligent package manager wrapper #17
Conversation
Implement PackageManager class that translates natural language into
package manager commands (apt/yum/dnf).
Features:
- Natural language parsing with keyword-based matching
- Support for 32 software categories (exceeds 20+ requirement)
- Multi-package manager support (apt, yum, dnf) with auto-detection
- Handles package name variations across different package managers
- Comprehensive error handling and validation
- 43 unit tests covering all functionality
Implementation:
- cortex/packages.py: Main PackageManager class with knowledge base
- test_packages.py: Comprehensive unit test suite (43 tests)
- cortex/README.md: User documentation with usage examples
- cortex/SUMMARY.md: Technical documentation and architecture
- cortex/example_usage.py: Usage examples and demonstrations
- Updated README.md: Mark package manager wrapper as complete
The implementation uses a rule-based knowledge base to match user
requests to software categories and generate appropriate package
manager commands. All tests pass and the implementation meets all
acceptance criteria.
Example usage:
from cortex.packages import PackageManager
pm = PackageManager()
commands = pm.parse("install python with data science libraries")
# Returns: ["apt update", "apt install -y python3 python3-pip ..."]
|
@chandrapratamar can you attach video working of your implementation. |
|
@chandrapratamar - Checking in on PR #17. This is our most critical feature for MVP. What's the current status? Any blockers I can help with? If you're stuck or unable to continue, let me know and we can discuss options. No pressure, but need to understand timeline. |
|
@dhvll can you take this over and finish it |
|
Closing in favor of PR #195 which has a cleaner implementation. Thank you @chandrapratamar for the original work - you'll still receive the 00 bounty for your contribution. |
Hi! Sorry for the late response, I’ve been caught up with real-life things, and I also apologize for not being able to complete the work earlier. I've DMed you on discord, my Discord display name is Sipit (tamagogogo_) |
Implement PackageManager class that translates natural language into package manager commands (apt/yum/dnf).
Resolved #7
Features:
Implementation:
The implementation uses a rule-based knowledge base to match user requests to software categories and generate appropriate package manager commands. All tests pass and the implementation meets all acceptance criteria.
Example usage:
Returns: