A smart AI tool package
Project description
SmartAITool
A smart AI tool package for Python that provides useful utilities for terminal output formatting, data processing, and video manipulation.
Installation
pip install SmartAITool
You can download the package by running the above command.
Usage
Colored Terminal Output
from SmartAITool.core import cprint, bprint
# Print with colored output
cprint("Success message", "green") # displayed in green
cprint("Error message", "red") # displayed in red
cprint("Warning message", "yellow") # displayed in yellow
cprint("Information message", "blue") # displayed in blue
cprint("Default color message") # displayed in red (default color)
# Print bordered text in cyan
# Print bordered text in cyan
bprint("Section Header") # Prints: ----------------------Section Header----------------------
bprint(length=50) # Prints: --------------------------------------------------
bprint() # Prints: -------------------------------------------------------------------------------
This addition shows users exactly what to expect when they use the functions in their terminal, helping them understand the visual effect without needing to run the code first.
This clarifies the default behavior of both functions so users understand what to expect when using them without specifying all parameters.
Video Processing
from SmartAITool import video
# Get video information
video_info = video.get_video_info("input_video.mp4")
print(f"FPS: {video_info['fps']}, Resolution: {video_info['width']}x{video_info['height']}")
# Extract frames from a video
video.extract_frames("input_video.mp4", "output_frames_dir", start_frame=0, end_frame=100)
# Create a video from frames
video.create_video("frames_directory", "output_video.mp4", fps=30)
Features
- Colored Terminal Output: Easy-to-use colored text printing in terminal
- Support for 8 Colors: black, red, green, yellow, blue, magenta, cyan, white
- Formatted Borders: Create eye-catching bordered text for log sections
- Simple API: Intuitive and straightforward functions
- Video Processing: Tools for extracting frames and creating videos
Development
Setting up development environment
# Clone the repository
git clone https://github.com/m15kh/SmartAITool.git
cd SmartAITool
# Install development dependencies
pip install -r requirements-dev.txt
# WARNING: Error during upload
# Retry with the --verbose option for more details.
# Install the package in development mode
pip install -e .
Thanks to
Borhan for the video processing code.
License
Project details
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 smartaitool-0.4.1.tar.gz.
File metadata
- Download URL: smartaitool-0.4.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17513f89ed54518198f0111b0aa9f48cc2d7e1eb20f420b56d93410c023072b7
|
|
| MD5 |
4b7a51f5d22489789b34a14cf1ea26a6
|
|
| BLAKE2b-256 |
058adf0835f1841ccab8275b2b11f4bb39a3f206dc4861d245356c6e3992a0d6
|
File details
Details for the file smartaitool-0.4.1-py3-none-any.whl.
File metadata
- Download URL: smartaitool-0.4.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
467c6bd72d50089c0a2642599cd592e8c4a8672c7cfa2f40ea0d01f5bcf6d066
|
|
| MD5 |
f587cc2c5b7ba034591e4c1f28a2dc57
|
|
| BLAKE2b-256 |
36239914f612d660bffc4693ceda73b597053e45fb92be148b9a3ef5d2f168ae
|