Flamecraft agentic AI testing package with pretty print features.
Project description
Flamecraft
Flamecraft is a powerful agentic AI testing package with advanced pretty print features designed for modern software development workflows. It provides intuitive tools for running, analyzing, and reporting AI-driven test suites with beautiful, human-readable output.
Features
- 🤖 Agentic AI Testing: Run intelligent test suites that adapt to your application
- 🎨 Pretty Print Results: Beautifully formatted test output for easy analysis
- 📊 Comprehensive Reporting: Generate detailed 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 flamecraft
Quick Start
Basic Usage
from flamecraft import greet
# Simple greeting
print(greet("Developer"))
# Output: Hello, Developer! Welcome to Flamecraft.
Running AI Test Suites
from flamecraft import run_test_suite, pretty_print_results
# Define your test cases
test_cases = [
{
"name": "User Authentication Test",
"input": {"username": "testuser", "password": "password123"},
"expected": {"status": "authenticated"}
},
{
"name": "Data Validation Test",
"input": {"data": {"email": "test@example.com"}},
"expected": {"valid": True}
}
]
# Run the test suite
results = run_test_suite(test_cases)
# Pretty print the results
pretty_print_results(results)
Generating Reports
from flamecraft 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.
run_test_suite(test_cases: List[Dict[str, Any]]) -> Dict[str, Any]
Executes a suite of agentic AI tests and returns detailed results.
pretty_print_results(results: Dict[str, Any]) -> None
Displays 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 Flamecraft! 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 flamecraft-0.1.0.tar.gz.
File metadata
- Download URL: flamecraft-0.1.0.tar.gz
- Upload date:
- Size: 4.9 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 |
ada937a2d52da4a0ec5f2f5d82be1e9787b633ee42768a180292586fe6ed5718
|
|
| MD5 |
e4b5039179b17ba2ef96b39a9c985533
|
|
| BLAKE2b-256 |
99fd2a4b28978a21c27a2b9d93f213373c4121fa48d15d181e97d802984e82f0
|
File details
Details for the file flamecraft-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flamecraft-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 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 |
168464f0e45fd2cebb005c2e7b07607d0b2c26eb90f00b1e15319c31cfa6db80
|
|
| MD5 |
349866dd3ca7eceda86425e00ba6b24c
|
|
| BLAKE2b-256 |
35359b3117eedd883160013ed828cb63f220c0d4cb06271f590b47522593b7c9
|