ascii-art-python 1.2.4__tar.gz → 2.0.1__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.
- ascii_art_python-2.0.1/MANIFEST.in +1 -0
- {ascii_art_python-1.2.4/ascii_art_python.egg-info → ascii_art_python-2.0.1}/PKG-INFO +16 -15
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1}/README.md +8 -9
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1}/pyproject.toml +11 -6
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python/__init__.py +2 -2
- ascii_art_python-2.0.1/src/ascii_art_python/ascii_base.py +637 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python/cli.py +42 -41
- ascii_art_python-2.0.1/src/ascii_art_python/full_mode.py +73 -0
- ascii_art_python-2.0.1/src/ascii_art_python/new_skool.py +67 -0
- ascii_art_python-2.0.1/src/ascii_art_python/old_skool.py +67 -0
- ascii_art_python-2.0.1/src/ascii_art_python/tools.py +11 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src/ascii_art_python.egg-info}/PKG-INFO +16 -15
- ascii_art_python-2.0.1/src/ascii_art_python.egg-info/SOURCES.txt +20 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python.egg-info/requires.txt +4 -1
- ascii_art_python-2.0.1/tests/test_ascii_api.py +213 -0
- ascii_art_python-1.2.4/MANIFEST.in +0 -1
- ascii_art_python-1.2.4/ascii_art_python/ascii_base.py +0 -452
- ascii_art_python-1.2.4/ascii_art_python/full_mode.py +0 -60
- ascii_art_python-1.2.4/ascii_art_python/new_skool.py +0 -41
- ascii_art_python-1.2.4/ascii_art_python/old_skool.py +0 -42
- ascii_art_python-1.2.4/ascii_art_python.egg-info/SOURCES.txt +0 -18
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1}/LICENSE +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1}/setup.cfg +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python/assets/fonts/GoogleSansCode-Regular.ttf +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python/assets/fonts/KreativeSquareSM.ttf +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python.egg-info/dependency_links.txt +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python.egg-info/entry_points.txt +0 -0
- {ascii_art_python-1.2.4 → ascii_art_python-2.0.1/src}/ascii_art_python.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
recursive-include src/ascii_art_python/assets/fonts *
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ascii_art_python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: A Python library and CLI tool for converting images and videos into ASCII art.
|
|
5
5
|
Author-email: Guillem Prieur <prieurguillem38@gmail.com>
|
|
6
|
-
Project-URL: Homepage, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-
|
|
7
|
-
Project-URL: Bug Tracker, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python/-/issues
|
|
8
|
-
Project-URL: Source Code, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python
|
|
9
|
-
Project-URL: Documentation, https://guill_prieur.site-prieur.fr/ascii-art-python
|
|
6
|
+
Project-URL: Homepage, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-2
|
|
7
|
+
Project-URL: Bug Tracker, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python-2/-/issues
|
|
8
|
+
Project-URL: Source Code, https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python-2
|
|
9
|
+
Project-URL: Documentation, https://guill_prieur.site-prieur.fr/ascii-art-python-2
|
|
10
10
|
Keywords: ascii,ascii-art,image-to-ascii,video-to-ascii,cli,terminal,terminal-graphics,generator,converter
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -32,22 +32,23 @@ Requires-Dist: tqdm>=4.65.0
|
|
|
32
32
|
Requires-Dist: opencv-python-headless>=4.8.0
|
|
33
33
|
Requires-Dist: moviepy>=2.0.0
|
|
34
34
|
Requires-Dist: numpy>=1.24.0
|
|
35
|
-
Requires-Dist: click
|
|
35
|
+
Requires-Dist: click>=8.0.0
|
|
36
36
|
Requires-Dist: importlib_resources; python_version < "3.10"
|
|
37
|
+
Provides-Extra: dev
|
|
38
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
37
39
|
Dynamic: license-file
|
|
38
40
|
|
|
39
41
|
# ASCII Art Python - Convert Images & Videos to Terminal Graphics
|
|
40
42
|
|
|
41
43
|
<div align="center">
|
|
42
44
|
|
|
43
|
-
[](https://pypi.org/project/ascii-art-python/)
|
|
46
|
+
[](https://pypi.org/project/ascii-art-python/)
|
|
47
|
+
[](https://pypi.org/project/ascii-art-python/)
|
|
48
|
+
[](https://opensource.org/licenses/MIT)
|
|
47
49
|
|
|
48
50
|
</div>
|
|
49
51
|
|
|
50
|
-
|
|
51
52
|
ASCII Art Python is a powerful tool to transform your images and videos into ASCII art. Export your creations as text, images, or videos (with audio) and play them directly in your terminal.
|
|
52
53
|
|
|
53
54
|
## Preview
|
|
@@ -85,7 +86,7 @@ Below is an example of an image featuring the Python logo:
|
|
|
85
86
|
|
|
86
87
|
And below, an example of a video featuring Nyan Cat:
|
|
87
88
|
|
|
88
|
-

|
|
89
|
+

|
|
89
90
|
|
|
90
91
|
## Installation
|
|
91
92
|
|
|
@@ -107,14 +108,14 @@ aap-echo my_image.jpg -m full_mode
|
|
|
107
108
|
|
|
108
109
|
```bash
|
|
109
110
|
# Export a video to ASCII (.mp4)
|
|
110
|
-
aap-export my_video.mp4 result.mp4 -
|
|
111
|
+
aap-export my_video.mp4 result.mp4 -h 100
|
|
111
112
|
```
|
|
112
113
|
|
|
113
114
|
### 2. Python Usageimport ascii_art_python as aap
|
|
114
115
|
|
|
115
116
|
```python
|
|
116
117
|
# Convert an image (Hybrid Mode)
|
|
117
|
-
img = aap.full_mode.Image.from_path("photo.jpg",
|
|
118
|
+
img = aap.full_mode.Image.from_path("photo.jpg", width=500)
|
|
118
119
|
print(img)
|
|
119
120
|
```
|
|
120
121
|
|
|
@@ -132,7 +133,7 @@ vid.print_in_terminal()
|
|
|
132
133
|
|
|
133
134
|
## Full Documentation
|
|
134
135
|
|
|
135
|
-
To check the complete API, class details, and advanced export options, visit: [the doc](https://guill_prieur.site-prieur.fr/ascii-art-python/).
|
|
136
|
+
To check the complete API, class details, and advanced export options, visit: [the doc](https://guill_prieur.site-prieur.fr/ascii-art-python-2/).
|
|
136
137
|
|
|
137
138
|
## License
|
|
138
139
|
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/ascii-art-python/)
|
|
6
|
+
[](https://pypi.org/project/ascii-art-python/)
|
|
7
|
+
[](https://pypi.org/project/ascii-art-python/)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
ASCII Art Python is a powerful tool to transform your images and videos into ASCII art. Export your creations as text, images, or videos (with audio) and play them directly in your terminal.
|
|
14
13
|
|
|
15
14
|
## Preview
|
|
@@ -47,7 +46,7 @@ Below is an example of an image featuring the Python logo:
|
|
|
47
46
|
|
|
48
47
|
And below, an example of a video featuring Nyan Cat:
|
|
49
48
|
|
|
50
|
-

|
|
49
|
+

|
|
51
50
|
|
|
52
51
|
## Installation
|
|
53
52
|
|
|
@@ -69,14 +68,14 @@ aap-echo my_image.jpg -m full_mode
|
|
|
69
68
|
|
|
70
69
|
```bash
|
|
71
70
|
# Export a video to ASCII (.mp4)
|
|
72
|
-
aap-export my_video.mp4 result.mp4 -
|
|
71
|
+
aap-export my_video.mp4 result.mp4 -h 100
|
|
73
72
|
```
|
|
74
73
|
|
|
75
74
|
### 2. Python Usageimport ascii_art_python as aap
|
|
76
75
|
|
|
77
76
|
```python
|
|
78
77
|
# Convert an image (Hybrid Mode)
|
|
79
|
-
img = aap.full_mode.Image.from_path("photo.jpg",
|
|
78
|
+
img = aap.full_mode.Image.from_path("photo.jpg", width=500)
|
|
80
79
|
print(img)
|
|
81
80
|
```
|
|
82
81
|
|
|
@@ -94,7 +93,7 @@ vid.print_in_terminal()
|
|
|
94
93
|
|
|
95
94
|
## Full Documentation
|
|
96
95
|
|
|
97
|
-
To check the complete API, class details, and advanced export options, visit: [the doc](https://guill_prieur.site-prieur.fr/ascii-art-python/).
|
|
96
|
+
To check the complete API, class details, and advanced export options, visit: [the doc](https://guill_prieur.site-prieur.fr/ascii-art-python-2/).
|
|
98
97
|
|
|
99
98
|
## License
|
|
100
99
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ascii_art_python"
|
|
7
|
-
version = "
|
|
7
|
+
version = "2.0.1"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Guillem Prieur", email="prieurguillem38@gmail.com" },
|
|
10
10
|
]
|
|
@@ -49,15 +49,20 @@ dependencies = [
|
|
|
49
49
|
"opencv-python-headless>=4.8.0",
|
|
50
50
|
"moviepy>=2.0.0",
|
|
51
51
|
"numpy>=1.24.0",
|
|
52
|
-
"click",
|
|
52
|
+
"click>=8.0.0",
|
|
53
53
|
"importlib_resources; python_version < '3.10'",
|
|
54
54
|
]
|
|
55
55
|
|
|
56
|
+
[project.optional-dependencies]
|
|
57
|
+
dev = [
|
|
58
|
+
"pytest>=7.0.0",
|
|
59
|
+
]
|
|
60
|
+
|
|
56
61
|
[project.urls]
|
|
57
|
-
"Homepage" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-
|
|
58
|
-
"Bug Tracker" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python/-/issues"
|
|
59
|
-
"Source Code" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python"
|
|
60
|
-
"Documentation" = "https://guill_prieur.site-prieur.fr/ascii-art-python"
|
|
62
|
+
"Homepage" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-2"
|
|
63
|
+
"Bug Tracker" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python-2/-/issues"
|
|
64
|
+
"Source Code" = "https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python-2"
|
|
65
|
+
"Documentation" = "https://guill_prieur.site-prieur.fr/ascii-art-python-2"
|
|
61
66
|
|
|
62
67
|
[project.scripts]
|
|
63
68
|
aap-export = "ascii_art_python.cli:create_and_export"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Module from https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python
|
|
2
|
+
Module from https://gitlab.pprriieeuurr.fr/guill_prieur/ascii-art-python-2
|
|
3
3
|
"""
|
|
4
|
-
__version__ = "
|
|
4
|
+
__version__ = "2.0.1"
|
|
5
5
|
from . import new_skool
|
|
6
6
|
from . import old_skool
|
|
7
7
|
from . import full_mode
|