utilspilw 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- utilspilw-0.1.0/PKG-INFO +7 -0
- utilspilw-0.1.0/pyproject.toml +19 -0
- utilspilw-0.1.0/setup.cfg +4 -0
- utilspilw-0.1.0/src/utilspilw/__init__.py +78 -0
- utilspilw-0.1.0/src/utilspilw/animationplus.py +1109 -0
- utilspilw-0.1.0/src/utilspilw/animations.py +531 -0
- utilspilw-0.1.0/src/utilspilw/charts_cmd.py +148 -0
- utilspilw-0.1.0/src/utilspilw/charts_window.py +212 -0
- utilspilw-0.1.0/src/utilspilw/colors.py +235 -0
- utilspilw-0.1.0/src/utilspilw/fifa.py +361 -0
- utilspilw-0.1.0/src/utilspilw/manim_like.py +283 -0
- utilspilw-0.1.0/src/utilspilw/playsound.py +617 -0
- utilspilw-0.1.0/src/utilspilw/scr.py +268 -0
- utilspilw-0.1.0/src/utilspilw/screenshot.py +659 -0
- utilspilw-0.1.0/src/utilspilw/text.py +184 -0
- utilspilw-0.1.0/src/utilspilw/timers.py +301 -0
- utilspilw-0.1.0/src/utilspilw/toml_parser.py +21 -0
- utilspilw-0.1.0/src/utilspilw/utils.py +1292 -0
- utilspilw-0.1.0/src/utilspilw.egg-info/PKG-INFO +7 -0
- utilspilw-0.1.0/src/utilspilw.egg-info/SOURCES.txt +29 -0
- utilspilw-0.1.0/src/utilspilw.egg-info/dependency_links.txt +1 -0
- utilspilw-0.1.0/src/utilspilw.egg-info/requires.txt +2 -0
- utilspilw-0.1.0/src/utilspilw.egg-info/top_level.txt +1 -0
- utilspilw-0.1.0/tests/test_animations.py +63 -0
- utilspilw-0.1.0/tests/test_charts_cmd.py +55 -0
- utilspilw-0.1.0/tests/test_colors.py +69 -0
- utilspilw-0.1.0/tests/test_playsound.py +279 -0
- utilspilw-0.1.0/tests/test_screenshot.py +185 -0
- utilspilw-0.1.0/tests/test_timers.py +88 -0
- utilspilw-0.1.0/tests/test_toml_parser.py +16 -0
- utilspilw-0.1.0/tests/test_utils.py +37 -0
utilspilw-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "utilspilw"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Utilidades, animaciones y procesamiento de archivos .toml"
|
|
9
|
+
requires-python = ">=3.12"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"customtkinter>=5.2.0",
|
|
12
|
+
"pillow>=10.0.0"
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[tool.setuptools.packages.find]
|
|
16
|
+
where = ["src"]
|
|
17
|
+
|
|
18
|
+
[tool.pytest.ini_options]
|
|
19
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from .utils import *
|
|
2
|
+
from .animations import (
|
|
3
|
+
Scene,
|
|
4
|
+
TextObject,
|
|
5
|
+
CircleObject,
|
|
6
|
+
RectangleObject,
|
|
7
|
+
LineObject,
|
|
8
|
+
ImageObject,
|
|
9
|
+
ProgressBarObject,
|
|
10
|
+
AnimationObject,
|
|
11
|
+
load_config,
|
|
12
|
+
)
|
|
13
|
+
from .toml_parser import *
|
|
14
|
+
from .colors import (
|
|
15
|
+
Color, gradient, palette, rainbow, print_color, PALETTE_NEON, PALETTE_PASTEL, PALETTE_DARK,
|
|
16
|
+
random_color, random_palette, complementary, analogous, triadic, color_lerp,
|
|
17
|
+
color_temperature, is_light, is_dark, luminance, contrast_ratio, from_name,
|
|
18
|
+
)
|
|
19
|
+
from .timers import (
|
|
20
|
+
timer, timed, benchmark, compare, Benchmarker, get_benchmarker, reset_benchmarker,
|
|
21
|
+
Countdown, Stopwatch, alarm, elapsed, average_time,
|
|
22
|
+
)
|
|
23
|
+
from .charts_cmd import bar_chart, horizontal_bar, sparkline, pie_chart, line_chart, heatmap, print_chart
|
|
24
|
+
from .charts_window import ChartWindow, BarChart, PieChart, LineChart, ScatterChart, quick_bar, quick_pie, quick_line
|
|
25
|
+
from .playsound import (
|
|
26
|
+
playsound, playsound_path, stop, stop_all, is_playing,
|
|
27
|
+
set_audio_paths, add_audio_path, get_audio_paths, find_audio, list_audio,
|
|
28
|
+
generate_tone, generate_silence, generate_noise, generate_dtmf,
|
|
29
|
+
beep, multi_beep, BeepAndSave,
|
|
30
|
+
info, change_speed, change_pitch, reverse, echo, reverb, amplify, normalize,
|
|
31
|
+
fade_in, fade_out, trim, mix, concatenate, repeat, volume, pan, to_stereo, to_mono,
|
|
32
|
+
speed, crossfade, batch_process, play_list, record, SoundQueue, AudioPlayer,
|
|
33
|
+
)
|
|
34
|
+
from .text import (
|
|
35
|
+
wrap, trunc, slugify, levenshtein, fuzzy_match, remove_accents,
|
|
36
|
+
capitalize_words, count_words, count_chars, is_palindrome, reverse_string,
|
|
37
|
+
extract_emails, extract_urls, extract_phones, word_frequency,
|
|
38
|
+
snake_case, camel_case, pascal_case, hash_text, mask_text,
|
|
39
|
+
pad_center, pad_left, pad_right, similarity, strip_html, escape_html, to_ascii,
|
|
40
|
+
)
|
|
41
|
+
from .scr import SCR
|
|
42
|
+
from .animationplus import (
|
|
43
|
+
Scene as ScenePlus,
|
|
44
|
+
Text as TextPlus,
|
|
45
|
+
Circle as CirclePlus,
|
|
46
|
+
Rect as RectPlus,
|
|
47
|
+
Line as LinePlus,
|
|
48
|
+
ProgressBar as ProgressBarPlus,
|
|
49
|
+
ImageObj as ImagePlus,
|
|
50
|
+
Arc, Polygon, Star, Triangle, Wave, Dot, Particle, Timer,
|
|
51
|
+
_easing,
|
|
52
|
+
)
|
|
53
|
+
from .screenshot import (
|
|
54
|
+
screenshot, screenshot_region, screenshot_active_window, screenshot_window_by_title,
|
|
55
|
+
screenshot_timed, screenshot_diff, screenshot_find_changed, save_image, screenshot_to_bytes,
|
|
56
|
+
get_screen_size, get_active_window_title, set_screenshot_dir, get_screenshot_dir,
|
|
57
|
+
thumbnail, crop_center, crop_square, resize, rotate, flip, crop_relative,
|
|
58
|
+
add_padding, add_border, rounded_corners, circle_crop,
|
|
59
|
+
grayscale, sepia, invert, blur, sharpen, brightness, contrast, saturation,
|
|
60
|
+
blur_region, pixelate_region, color_replace, auto_enhance,
|
|
61
|
+
add_text, draw_text_centered, grid, draw_rect, draw_rect_fill, draw_circle, draw_circle_fill,
|
|
62
|
+
draw_line, draw_arrow, draw_ellipse, draw_ellipse_fill,
|
|
63
|
+
overlay, watermark, blend, apply_mask,
|
|
64
|
+
get_pixel_color, most_common_color, color_distance, find_color, dominant_colors,
|
|
65
|
+
get_histogram, compare, to_base64, from_base64, rotate_90,
|
|
66
|
+
)
|
|
67
|
+
from .manim_like import (
|
|
68
|
+
Axes, Graph, Vector, DotGraph, NumberLine, DotGraphAnimated, Text,
|
|
69
|
+
Transform, FadeIn, FadeOut, Write,
|
|
70
|
+
)
|
|
71
|
+
from .fifa import (
|
|
72
|
+
get_live, get_matches_by_date, get_match_detail, get_ranking,
|
|
73
|
+
print_matches, print_live, print_results,
|
|
74
|
+
FIFA_COUNTRIES, FIFA_TEAMS, SPANISH_NAMES,
|
|
75
|
+
get_countries, get_teams, search_country, search_team,
|
|
76
|
+
country_has_matches, get_country_matches, print_country_matches,
|
|
77
|
+
print_countries, search_match, print_search_match,
|
|
78
|
+
)
|