Skip to content

Commit

Permalink
chore: Change "tkintertools" to "maliang"
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaokang2022 committed Jan 22, 2025
1 parent 7be1856 commit 9de7ec0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 39 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<h1 align="center">tkintertools-media</h1>
<h1 align="center">maliang-media</h1>

<p align="center"><a title="Official Website" href="https://xiaokang2022.github.io/tkintertools/">https://xiaokang2022.github.io/tkintertools/</a></p>
<p align="center"><a title="Official Website" href="https://xiaokang2022.github.io/maliang/">https://xiaokang2022.github.io/maliang/</a></p>

<p align="center">Extension package of <code>tkintertools</code> to play media files</p>
<p align="center">Extension package of <code>maliang</code> to play media files</p>

<p align="center">
<a href="https://github.com/Xiaokang2022/tkintertools-media/releases"><img alt="Version" src="https://img.shields.io/github/v/release/Xiaokang2022/tkintertools-media?include_prereleases&logo=github&label=Version" title="Latest Version" /></a>
<a href="https://pypistats.org/packages/tkintertools-media"><img alt="Downloads" src="https://img.shields.io/pypi/dm/tkintertools-media?label=Downloads&logo=pypi&logoColor=skyblue" title="Downloads" /></a>
<a href="https://pepy.tech/project/tkintertools-media"><img alt="Total Downloads" src="https://img.shields.io/pepy/dt/tkintertools-media?logo=pypi&logoColor=gold&label=Total%20Downloads" title="Total Downloads" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media"><img alt="Size" src="https://img.shields.io/github/languages/code-size/Xiaokang2022/tkintertools-media?label=Size&logo=github" title="Code Size"/></a>
<a href="https://github.com/Xiaokang2022/maliang-media/releases"><img alt="Version" src="https://img.shields.io/github/v/release/Xiaokang2022/maliang-media?include_prereleases&logo=github&label=Version" title="Latest Version" /></a>
<a href="https://pypistats.org/packages/maliang-media"><img alt="Downloads" src="https://img.shields.io/pypi/dm/maliang-media?label=Downloads&logo=pypi&logoColor=skyblue" title="Downloads" /></a>
<a href="https://pepy.tech/project/maliang-media"><img alt="Total Downloads" src="https://img.shields.io/pepy/dt/maliang-media?logo=pypi&logoColor=gold&label=Total%20Downloads" title="Total Downloads" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media"><img alt="Size" src="https://img.shields.io/github/languages/code-size/Xiaokang2022/maliang-media?label=Size&logo=github" title="Code Size"/></a>
<br/>
<a href="https://github.com/Xiaokang2022/tkintertools-media/watchers"><img alt="Watchers" src="https://img.shields.io/github/watchers/Xiaokang2022/tkintertools-media?label=Watchers&logo=github&style=flat" title="Watchers" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/forks"><img alt="Forks" src="https://img.shields.io/github/forks/Xiaokang2022/tkintertools-media?label=Forks&logo=github&style=flat" title="Forks" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Xiaokang2022/tkintertools-media?label=Stars&color=gold&logo=github&style=flat" title="Stars" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/issues"><img alt="Issues" src="https://img.shields.io/github/issues/Xiaokang2022/tkintertools-media?label=Issues&logo=github" title="Issues" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/pulls"><img alt="Pull Requests" src="https://img.shields.io/github/issues-pr/Xiaokang2022/tkintertools-media?label=Pull%20Requests&logo=github" title="Pull Requests" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/discussions"><img alt="Discussions" src="https://img.shields.io/github/discussions/Xiaokang2022/tkintertools-media?label=Discussions&logo=github" title="Discussions" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/watchers"><img alt="Watchers" src="https://img.shields.io/github/watchers/Xiaokang2022/maliang-media?label=Watchers&logo=github&style=flat" title="Watchers" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/forks"><img alt="Forks" src="https://img.shields.io/github/forks/Xiaokang2022/maliang-media?label=Forks&logo=github&style=flat" title="Forks" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Xiaokang2022/maliang-media?label=Stars&color=gold&logo=github&style=flat" title="Stars" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/issues"><img alt="Issues" src="https://img.shields.io/github/issues/Xiaokang2022/maliang-media?label=Issues&logo=github" title="Issues" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/pulls"><img alt="Pull Requests" src="https://img.shields.io/github/issues-pr/Xiaokang2022/maliang-media?label=Pull%20Requests&logo=github" title="Pull Requests" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/discussions"><img alt="Discussions" src="https://img.shields.io/github/discussions/Xiaokang2022/maliang-media?label=Discussions&logo=github" title="Discussions" /></a>
</p>

<p align="center">
<a href="https://github.com/Xiaokang2022/tkintertools-media/pulse"><img alt="Insights" src="https://repobeats.axiom.co/api/embed/0be944bbd1d27b25b519ea2ac7ffcdfbc98369fb.svg" /></a>
<a href="https://github.com/Xiaokang2022/maliang-media/pulse"><img alt="Insights" src="https://repobeats.axiom.co/api/embed/0be944bbd1d27b25b519ea2ac7ffcdfbc98369fb.svg" /></a>
</p>

<p align="center">
<a href="https://star-history.com/#Xiaokang2022/tkintertools-media&Date">
<a href="https://star-history.com/#Xiaokang2022/maliang-media&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date" />
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/maliang-media&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/maliang-media&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Xiaokang2022/maliang-media&type=Date" />
</picture>
</a>
</p>
Expand All @@ -36,23 +36,23 @@
----------------

```shell
pip install tkintertools-media
pip install maliang-media
```

### 👀 Preview

> [!WARNING]
> The sample video from: https://github.com/Xiaokang2022/tkintertools-demos/tree/main/assets/videos. Please note that the video is for testing purposes only and may not be used for commercial purposes!
> The sample video from: https://github.com/Xiaokang2022/maliang-demos/tree/main/assets/videos. Please note that the video is for testing purposes only and may not be used for commercial purposes!
![preview-1](./preview-1.png)

![preview-2](./preview-2.png)

```python
import tkintertools
from tkintertools import media
import maliang
from maliang import media

root = tkintertools.Tk(title="tkintertools-media")
root = maliang.Tk(title="maliang-media")
cv = media.VideoCanvas(free_anchor=True, keep_ratio="min", controls=True)
cv.place(width=1280, height=720, x=640, y=360, anchor="center")
cv.open("your_video_file.mp4")
Expand Down
3 changes: 1 addition & 2 deletions tkintertools/media/__init__.py → maliang/media/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""
Extension package of tkintertools to play media files
"""Extension package of `maliang` to play media files.
Provides:
Expand Down
2 changes: 1 addition & 1 deletion tkintertools/media/icons.py → maliang/media/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import typing

import PIL.ImageTk
from tkintertools.toolbox import enhanced
from maliang.toolbox import enhanced

BASE64_DATAS: typing.Final[dict[str, str]] = {
"fullscreen": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAABOUlEQVR4nO2Wz4rCMBDGf16WfQyFfR+FfYNuL/WVKqtnT4vgM+Xqn6s2EohQYppMYquH7QehNGTm+zLJTAZGjHjEGmgA7RlHYE43FsCpw/ZqfUfRdDi4jzpgu4rYXiQCtDMUsLXDEEwDtlO75r5eefwlC2iAinQUNuzZAlTLgfmWCeQ/jq3KEbB1dmEisRTYuzaV9ZUlgEQRPnJSBRw9t70UHIcbdvPvZsdBImBhyd3bHhIRIsf6qiM1RIS2iB0wEZD3jgLYA5+BMx8ck3fsvA0fuRH1EhSesH8Af8I6McjOd5kVszMNTd7OnPnQmcfqxBewAb5JKEQrIblExNrOn/soxdXQpVgHHqPqlY+ReiLPyz6eY/3uhkRntGSzPlqyy4BNqYlmFL8BEYfIkzpvpbGPXNSWj/hfuAFAwArFCQQ3DQAAAABJRU5ErkJggg==",
Expand Down
10 changes: 5 additions & 5 deletions tkintertools/media/main.py → maliang/media/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
import PIL.Image
import PIL.ImageTk
import typing_extensions
from tkintertools.animation import animations, controllers
from tkintertools.core import containers, virtual
from tkintertools.standard import images, widgets
from tkintertools.theme import manager
from tkintertools.toolbox import enhanced
from maliang.animation import animations, controllers
from maliang.core import containers, virtual
from maliang.standard import images, widgets
from maliang.theme import manager
from maliang.toolbox import enhanced

from . import icons

Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "tkintertools-media"
name = "maliang-media"
authors = [{ name = "Xiaokang2022", email = "2951256653@qq.com" }]
maintainers = [{ name = "Xiaokang2022", email = "2951256653@qq.com" }]
description = "Extension package for tkintertools to matplotlib"
description = "Extension package for maliang to matplotlib"
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.10"
keywords = [
"tkinter",
"tkintertools",
"maliang",
"media",
"cross-platform",
"themed",
Expand All @@ -29,21 +29,21 @@ classifiers = [
]
dependencies = [
"typing-extensions",
"tkintertools>=3.0.0rc6",
"maliang>=3.0.0rc6",
"pillow>=10.0.0",
"ffpyplayer>=4.5.0",
]
dynamic = ["version"]

[project.urls]
"Bug tracker" = "https://github.com/Xiaokang2022/tkintertools-media/issues"
"Source code" = "https://github.com/Xiaokang2022/tkintertools-media"
"Bug tracker" = "https://github.com/Xiaokang2022/maliang-media/issues"
"Source code" = "https://github.com/Xiaokang2022/maliang-media"

[tool.setuptools.dynamic]
version = { attr = "tkintertools.media.__version__" }
version = { attr = "maliang.media.__version__" }

[tool.setuptools.packages.find]
include = ["tkintertools*"]
include = ["maliang*"]

[tool.pylint]
output-format = "colorized"
Expand Down

0 comments on commit 9de7ec0

Please sign in to comment.