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
Metadata
Release files for SmartAITool 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smartaitool-0.4.1.tar.gz | 6.4 kB | Without provenance | Details for smartaitool-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smartaitool-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for smartaitool-0.4.1-py3-none-any.whl |
Total release size: 13.8 kB
Release files / smartaitool-0.4.1.tar.gz
| Download URL | smartaitool-0.4.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17513f89ed54518198f0111b0aa9f48cc2d7e1eb20f420b56d93410c023072b7
|
|
BLAKE2b-256 checksum How to use checksums |
058adf0835f1841ccab8275b2b11f4bb39a3f206dc4861d245356c6e3992a0d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / smartaitool-0.4.1-py3-none-any.whl
| Download URL | smartaitool-0.4.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
467c6bd72d50089c0a2642599cd592e8c4a8672c7cfa2f40ea0d01f5bcf6d066
|
|
BLAKE2b-256 checksum How to use checksums |
36239914f612d660bffc4693ceda73b597053e45fb92be148b9a3ef5d2f168ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for SmartAITool 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.