About this Project
This project is a Python Module that let you use manim using a python API instead of the command line. Pressing the green run button in your IDE will render the scene or show the last frame of the scene.
Installation
Install the package with pip:
pip install manim-main-function
Usage
Please make sure you have manim installed and running on your machine
To use the module, you just need to let your scene inherit from the ManinMainFunctions class.
This class provides a set of functions that allow you to render the scene using the main function instead of the command line.
Below is are two examples of how to use the Module.
import manim as m
# import ManinMainFunctions
from manim_main_function.mmf import ManinMainFunction
# Add 'ManinMainFunctions' to your scene class to enable the main function
class ShowLastFrameExample(ManinMainFunction, m.Scene):
def construct(self):
my_text = m.Text("Hello World", color=m.BLUE)
self.add(my_text)
if __name__ == '__main__':
# You can now render Manim Scenes using the main function instead of the command line!
ShowLastFrameExample.show_last_frame()
import manim as m
# import ManinMainFunctions
from manim_main_function.mmf import ManinMainFunction
# Add 'ManinMainFunctions' to your scene class to enable the main function
class ShowLastFrameExample(ManinMainFunction, m.Scene):
def construct(self):
my_text = m.Text("Hello World", color=m.BLUE)
self.play(
m.FadeIn(my_text)
)
if __name__ == '__main__':
# You can now render Manim Scenes using the main function instead of the command line!
ShowLastFrameExample.render_video_medium() # renders the video with the -pqm flags
# Feel free to uncomment the following lines to render the video with different quality settings:
#
# ShowLastFrameExample.render_video_low() # renders the video with the -pql flags
# ShowLastFrameExample.render_video_high() # renders the video with the -pqh flags
# ShowLastFrameExample.render_video_4k() # renders the video with the -pqk flags
# ShowLastFrameExample.render_video_4k_without_cache() # renders the video with the -pqk flags and without cache (--disable_caching flag)
Available Functions
render_video_low(): Renders the video with the -pql flagsrender_video_medium(): Renders the video with the -pqm flagsrender_video_high(): Renders the video with the -pqh flagsrender_video_4k(): Renders the video with the -pqk flagsrender_video_4k_without_cache(): Renders the video with the -pqk flags and without cache (--disable_caching flag)show_last_frame(): Shows the last frame of the scene
Metadata
Release files for manim-main-function 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| manim_main_function-0.1.2.tar.gz | 3.1 kB | Without provenance | Details for manim_main_function-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| manim_main_function-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for manim_main_function-0.1.2-py3-none-any.whl |
Total release size: 7.1 kB
Release files / manim_main_function-0.1.2.tar.gz
| Download URL | manim_main_function-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0a61a500043c4d86b83c4e1466483178067d9943d34c27a17eb5d2e7de5383a
|
|
BLAKE2b-256 checksum How to use checksums |
dbf7cfa91fb8348d24e897f6d646bdb9a08e8c2df23c1ddd27a70c1c7580a49b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / manim_main_function-0.1.2-py3-none-any.whl
| Download URL | manim_main_function-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6a58ea641b85e73c6c5174a80530633dc034a39385b7b4b0fc44e7ca21ab8b4
|
|
BLAKE2b-256 checksum How to use checksums |
3ca5277156a75999d1d94c437b914bb2679f74c9ff8a0bb48acf4eadd32a9483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for manim-main-function 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.