videopython 0.3.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.

Potentially problematic release.


This version of videopython might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: videopython
3
- Version: 0.3.0
3
+ Version: 0.4.1
4
4
  Summary: Minimal video generation and processing library.
5
5
  Project-URL: Homepage, https://github.com/bartwojtowicz/videopython/
6
6
  Project-URL: Repository, https://github.com/bartwojtowicz/videopython/
@@ -18,9 +18,22 @@ Requires-Python: <3.13,>=3.10
18
18
  Requires-Dist: numpy>=1.25.2
19
19
  Requires-Dist: opencv-python>=4.9.0.80
20
20
  Requires-Dist: pillow>=10.3.0
21
- Requires-Dist: pydub>=0.25.1
22
- Requires-Dist: soundpython>=0.1.9
21
+ Requires-Dist: soundpython>=0.1.11
23
22
  Requires-Dist: tqdm>=4.66.3
23
+ Provides-Extra: ai
24
+ Requires-Dist: accelerate>=0.29.2; extra == 'ai'
25
+ Requires-Dist: diffusers>=0.26.3; extra == 'ai'
26
+ Requires-Dist: numba>=0.61.0; extra == 'ai'
27
+ Requires-Dist: openai-whisper>=20240930; extra == 'ai'
28
+ Requires-Dist: torch>=2.1.0; extra == 'ai'
29
+ Requires-Dist: transformers>=4.38.1; extra == 'ai'
30
+ Provides-Extra: dev
31
+ Requires-Dist: mypy>=1.8.0; extra == 'dev'
32
+ Requires-Dist: pytest-cov>=6.1.1; extra == 'dev'
33
+ Requires-Dist: pytest>=7.4.0; extra == 'dev'
34
+ Requires-Dist: ruff>=0.1.14; extra == 'dev'
35
+ Requires-Dist: types-pillow>=10.2.0.20240213; extra == 'dev'
36
+ Requires-Dist: types-tqdm>=4.66.0.20240106; extra == 'dev'
24
37
  Description-Content-Type: text/markdown
25
38
 
26
39
  # About
@@ -39,10 +52,10 @@ sudo apt-get install ffmpeg
39
52
 
40
53
  ### Install with pip
41
54
  ```bash
42
- pip install videopython[generation]
55
+ pip install videopython[ai]
43
56
  ```
44
- > You can install without `[generation]` dependencies for basic video handling and processing.
45
- > The funcionalities found in `videopython.generation` won't work.
57
+ > You can install without `[ai]` dependencies for basic video handling and processing.
58
+ > The funcionalities found in `videopython.ai` won't work.
46
59
 
47
60
  ## Basic Usage
48
61
 
@@ -52,10 +65,10 @@ pip install videopython[generation]
52
65
  from videopython.base.video import Video
53
66
 
54
67
  # Load videos and print metadata
55
- video1 = Video.from_path("tests/test_data/fast_benchmark.mp4")
68
+ video1 = Video.from_path("tests/test_data/small_video.mp4")
56
69
  print(video1)
57
70
 
58
- video2 = Video.from_path("tests/test_data/slow_benchmark.mp4")
71
+ video2 = Video.from_path("tests/test_data/big_video.mp4")
59
72
  print(video2)
60
73
 
61
74
  # Define the transformations
@@ -79,18 +92,18 @@ savepath = video.save()
79
92
 
80
93
  ### Video Generation
81
94
 
82
- > Using Nvidia A40 or better is recommended for the `videopython.generation` module.
95
+ > Using Nvidia A40 or better is recommended for the `videopython.ai` module.
83
96
  ```python
84
97
  # Generate image and animate it
85
- from videopython.generation import ImageToVideo
86
- from videopython.generation import TextToImage
87
- from videopython.generation import TextToMusic
98
+ from videopython.ai.generation import ImageToVideo
99
+ from videopython.ai.generation import TextToImage
100
+ from videopython.ai.generation import TextToMusic
88
101
 
89
102
  image = TextToImage().generate_image(prompt="Golden Retriever playing in the park")
90
103
  video = ImageToVideo().generate_video(image=image, fps=24)
91
104
 
92
105
  # Video generation directly from prompt
93
- from videopython.generation import TextToVideo
106
+ from videopython.ai.generation import TextToVideo
94
107
  video_gen = TextToVideo()
95
108
  video = video_gen.generate_video("Dogs playing in the snow")
96
109
  for _ in range(10):
@@ -0,0 +1,26 @@
1
+ videopython/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ videopython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ videopython/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ videopython/ai/generation/__init__.py,sha256=5esJ7_PPSkqNXuPQWLLAyeQZY00BnYFc94WZIHi7pBU,233
5
+ videopython/ai/generation/audio.py,sha256=CNf6ZeV3iU4CU0Kq8HtDLwLPP2ABq9AGQD1TBOSLyoQ,2230
6
+ videopython/ai/generation/image.py,sha256=gS0zqzyIoCvjTjfks31ApG8lX0nUKXWRRgFGGLN4RjM,654
7
+ videopython/ai/generation/video.py,sha256=206YON_XjPTYyjIJ3j5uBgd_yHmCDg7SqbkIU9GzEgw,1831
8
+ videopython/ai/understanding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ videopython/ai/understanding/transcribe.py,sha256=VNgXnzbTH0NHDKHjanj6CjUnl-XwT-nsOkd5zqn9a_E,1219
10
+ videopython/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ videopython/base/combine.py,sha256=XC_pzyhbIh6h0fmxX1LhhhtlmOBbUQX9Y4EtDJqQn8g,1900
12
+ videopython/base/compose.py,sha256=pti12VY3Yg7TZZiENPF6veM8POWssfsK8ePDdGlhAhA,1968
13
+ videopython/base/effects.py,sha256=1RbRLTQD0V26DBc4jbRCDI4eGr6-TyBdX-Ia2USKxmc,7554
14
+ videopython/base/exceptions.py,sha256=68_16lUPOR9_zhWdeBGS8_NFI32VbrcoDbN5KHHg0_w,44
15
+ videopython/base/transcription.py,sha256=FloqvY-OlBQPOCkPnSx6R7azn4smD5-JYd-pMNssuYw,196
16
+ videopython/base/transforms.py,sha256=FDh-8EgQoZxB6Gv-T15kZGctcu9_4XHsTy_n7kgxlQw,5828
17
+ videopython/base/transitions.py,sha256=P1bBsxugf5i0JEtx7MoRgxWSIDcBli-0QucRwBIFGqs,3687
18
+ videopython/base/video.py,sha256=m_AzlUVvZYIkLih7EbJS7TSC2FIm6q06I1Zp9UHadl0,18444
19
+ videopython/utils/__init__.py,sha256=uhFG_cnw6zZUWxpfs_I3-82mh-NBLqivbPDnsdOEUmI,122
20
+ videopython/utils/common.py,sha256=F-30YoKUwWDI7HiJUWw0gRFUguhShSVaxT0aFfvpifg,936
21
+ videopython/utils/image.py,sha256=zR5_WnSBXGgyE9gNpXnNXmPtfdmnlY7kdOsgkZUGOds,1747
22
+ videopython/utils/text.py,sha256=T0W6VgpLfLczMMdUXEhkEftUQmuNzuQusO9I7-HU8Zg,27962
23
+ videopython-0.4.1.dist-info/METADATA,sha256=xd-a02H1P_mq8nNGBIkuPfGYhO950MY3kJFm18rpAHs,4453
24
+ videopython-0.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ videopython-0.4.1.dist-info/licenses/LICENSE,sha256=nJL9jVOt2MSW7swNDq4Y6oD_n9bLI0B0afr8ougtZ6s,10832
26
+ videopython-0.4.1.dist-info/RECORD,,
@@ -1,20 +0,0 @@
1
- videopython/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- videopython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- videopython/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- videopython/base/compose.py,sha256=pti12VY3Yg7TZZiENPF6veM8POWssfsK8ePDdGlhAhA,1968
5
- videopython/base/effects.py,sha256=ZFUWrgVWTn4uWpxPfTQSQQKEZN5ns4btMofOZNHCeQc,7540
6
- videopython/base/exceptions.py,sha256=68_16lUPOR9_zhWdeBGS8_NFI32VbrcoDbN5KHHg0_w,44
7
- videopython/base/transforms.py,sha256=VP8SGArokfXN-IE7tk-3i0oMM3HV5zpJa-GLj7BoeRo,5856
8
- videopython/base/transitions.py,sha256=P1bBsxugf5i0JEtx7MoRgxWSIDcBli-0QucRwBIFGqs,3687
9
- videopython/base/video.py,sha256=8hIIr-LzLktuPpNG3IvuqhSSDwT0jXbQmpv9wo7TMhc,12304
10
- videopython/generation/__init__.py,sha256=5esJ7_PPSkqNXuPQWLLAyeQZY00BnYFc94WZIHi7pBU,233
11
- videopython/generation/audio.py,sha256=CNf6ZeV3iU4CU0Kq8HtDLwLPP2ABq9AGQD1TBOSLyoQ,2230
12
- videopython/generation/image.py,sha256=i8zJm0WXn_Pykby9Urw1kzDcla6ArYhRgG-ueRdoAJ0,675
13
- videopython/generation/video.py,sha256=206YON_XjPTYyjIJ3j5uBgd_yHmCDg7SqbkIU9GzEgw,1831
14
- videopython/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- videopython/utils/common.py,sha256=F-30YoKUwWDI7HiJUWw0gRFUguhShSVaxT0aFfvpifg,936
16
- videopython/utils/image.py,sha256=MAncPG_vY4ZnewIsjgkCCzKJm2XtZXPiNRv3Zyc0AYM,12298
17
- videopython-0.3.0.dist-info/METADATA,sha256=YvNIxT652bGaoNbob_vrXVg9SJxnbpudCKkbdTfNfJo,3879
18
- videopython-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
- videopython-0.3.0.dist-info/licenses/LICENSE,sha256=nJL9jVOt2MSW7swNDq4Y6oD_n9bLI0B0afr8ougtZ6s,10832
20
- videopython-0.3.0.dist-info/RECORD,,
File without changes
File without changes
File without changes