-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (63 loc) · 1.94 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import setuptools
long_description = '''
# VideoCloud
[![Build Status](https://travis-ci.org/paramt/videocloud.svg?branch=master)](https://travis-ci.org/paramt/videocloud)
[![License](https://img.shields.io/github/license/paramt/videocloud.svg)](https://github.com/paramt/videocloud/blob/master/LICENSE)
Generate word clouds from YouTube video captions
## Installation
```
pip install videocloud
```
*Note: A C compiler is required for the installation process.*
## Usage
```
videocloud <link to YouTube video> [options]
```
```
videocloud www.youtu.be/MHTizZ_XcUM --language=es --color=#eee
```
### Options
#### `--filepath`
Where on disk to save the generated videocloud
Default: <kbd>videocloud.png</kbd>
#### `--language`
2-letter language code of the captions
Default: <kbd>en</kbd>
#### `--color`
Hex color code of the videocloud's background color
Default: <kbd>#d1d1d1</kbd>
#### `--font`
Link to a TTF font file
Default: [Noto Sans](assets/fonts/NotoSans/NotoSans.ttf)
#### `--mask`
Link to a PNG mask file
Default: [Cloud](https://github.com/paramt/videocloud/blob/v2.5/assets/masks/cloud.png)
## Development
This project is maintained by [paramt](https://github.com/paramt) on [GitHub](https://github.com/paramt/videocloud).
'''
setuptools.setup(
name="videocloud",
version="3.0.0",
url="https://github.com/paramt/VideoCloud",
license="MIT",
author="Param Thakkar",
author_email="contact@param.me",
description="A command line tool that generates word clouds from YouTube video captions",
long_description=long_description,
long_description_content_type="text/markdown",
packages=["videocloud"],
install_requires=[
"pillow==9.0.0",
"wordcloud==1.8.1",
"youtube-transcript-api==0.4.3",
"numpy==1.22.2",
"click==8.0.4",
"requests==2.27.1"
],
python_requires=">= 3.6",
entry_points={
'console_scripts': [
'videocloud=videocloud.main:videocloud'
]
}
)