AI ideas, tools, and packages testing package with pretty print features.
Project description
IdeaCook
IdeaCook is a comprehensive AI ideas, tools, and packages testing package with advanced pretty print features. It provides intuitive tools for generating creative AI ideas, evaluating AI tools, testing AI packages, and presenting results in beautifully formatted output.
Features
- 🧠 AI Idea Generation: Generate creative prompts for various domains
- 📊 AI Tool Evaluation: Comprehensive evaluation framework for AI tools
- 🧪 AI Package Testing: Robust testing suite for AI packages
- 🎨 Pretty Print Results: Beautifully formatted output for easy analysis
- 📈 Detailed Reporting: Generate comprehensive reports in multiple formats
- ⚡ High Performance: Optimized for speed and efficiency
- 🛠️ Easy Integration: Simple API that integrates seamlessly with existing workflows
- 📦 Lightweight: Minimal dependencies with maximum functionality
Installation
pip install ideacook
Quick Start
Basic Usage
from ideacook import greet
# Simple greeting
print(greet("Developer"))
# Output: Hello, Developer! Welcome to IdeaCook.
AI Idea Generation
from ideacook import generate_idea_prompt
# Generate a random AI idea
idea = generate_idea_prompt()
print(f"AI Idea: {idea}")
# Generate an idea for a specific category
coding_idea = generate_idea_prompt("coding")
print(f"Coding Idea: {coding_idea}")
AI Tool Evaluation
from ideacook import evaluate_ai_tool, pretty_print_evaluation
# Define metrics for evaluation
tool_metrics = {
"accuracy": 8.5,
"speed": 7.2,
"usability": 9.1,
"reliability": 8.8,
"cost": 2.5 # Lower is better for cost
}
# Evaluate an AI tool
evaluation = evaluate_ai_tool("Sample AI Tool", tool_metrics)
# Pretty print the evaluation
pretty_print_evaluation(evaluation)
AI Package Testing
from ideacook import test_ai_package, pretty_print_test_results
# Define your test cases
test_cases = [
{
"name": "Basic Functionality Test",
"input": {"function": "process", "data": "sample"},
"expected": {"result": "success"}
},
{
"name": "Edge Case Handling",
"input": {"function": "process", "data": ""},
"expected": {"result": "handled"}
}
]
# Test an AI package
results = test_ai_package("Sample AI Package", test_cases)
# Pretty print the results
pretty_print_test_results(results)
Generating Reports
from ideacook import generate_test_report
# Generate a JSON report
json_report = generate_test_report(results, format="json")
print(json_report)
# Generate a text report
text_report = generate_test_report(results, format="text")
print(text_report)
API Reference
Core Functions
greet(name: str) -> str
Returns a friendly greeting message.
generate_idea_prompt(category: str = "general") -> str
Generates a creative AI idea prompt based on the specified category.
evaluate_ai_tool(tool_name: str, metrics: Dict[str, Any]) -> Dict[str, Any]
Evaluates an AI tool based on provided metrics and returns detailed results.
test_ai_package(package_name: str, test_cases: List[Dict[str, Any]]) -> Dict[str, Any]
Tests an AI package with a suite of test cases and returns detailed results.
pretty_print_evaluation(evaluation: Dict[str, Any]) -> None
Displays AI tool evaluation results in a beautifully formatted way.
pretty_print_test_results(results: Dict[str, Any]) -> None
Displays AI package test results in a beautifully formatted way.
generate_test_report(results: Dict[str, Any], format: str = "json") -> str
Generates a test report in the specified format (JSON or text).
Project Information
get_project_name() -> str
Returns the project name.
get_version() -> str
Returns the current version.
get_author() -> str
Returns the author name.
get_description() -> str
Returns the project description.
get_license() -> str
Returns the project license.
get_python_version() -> str
Returns the minimum required Python version.
get_project_url() -> str
Returns the project homepage URL.
Requirements
- Python >= 3.9
- No external dependencies
Contributing
We welcome contributions to IdeaCook! Please see our Contributing Guide for more details.
- Fork the repository
- Create a new branch for your feature
- Add your feature or improvement
- Write tests if applicable
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have questions, please file an issue on our GitHub repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ideacook-0.1.0.tar.gz.
File metadata
- Download URL: ideacook-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d351a2eb9de46acae320c22e150ecb71e2e53ca3e962ff387ee17476278b7cb
|
|
| MD5 |
3b8d39f7a102d46a275437a8354bc39d
|
|
| BLAKE2b-256 |
b223c01caf02b4293d1d1da656b986e4751d164c1932a179a16031cbc0b4a9aa
|
File details
Details for the file ideacook-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ideacook-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d05d52a6a140aff1ea58fd0ceb67b7a4fd57c1c31e2fee8e2209e5db0dd349
|
|
| MD5 |
08d16249bed457fd6696fed91e7b7334
|
|
| BLAKE2b-256 |
0406ae5e02e409dd9cded9bf27d459b4768aae3f0812f0a7d0c1d8b42ae6467c
|