This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# Predefined interpolation constants for auto-complete | |
BEZIER = ("BEZIER", None) | |
LINEAR = ("LINEAR", None) | |
EASE_IN = ("SINE", "EASE_IN") | |
BOUNCE = ("BOUNCE", "EASE_OUT") | |
class ValueTracker: | |
def __init__(self, default_value=0, fps=24, name="Tracker"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.11" | |
# dependencies = [ | |
# "ffmpeg-python", | |
# ] | |
# /// | |
# header generated with | |
# uv add --script convert_mov_to_mp4.py ffmpeg-python | |
from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "typst", | |
# ] | |
# /// | |
from pathlib import Path | |
import typst | |
typst_file = Path.cwd() / "hello.typ" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.11" | |
# dependencies = [ | |
# "ffmpeg-python", | |
# ] | |
# /// | |
from pathlib import Path | |
import shutil | |
import ffmpeg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "pillow", | |
# "pyobjc-framework-Quartz", | |
# ] | |
# /// | |
from pathlib import Path | |
from PIL import Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# title = "UV togtether with typer" | |
# author = "Jan-Hendrik Müller" | |
# license = "MIT" | |
# version = "0.0.3" | |
# classifiers = [ | |
# "License :: OSI Approved :: MIT License", | |
# "Programming Language :: Python :: 3.12", | |
# "Topic :: Scientific/Engineering :: Visualization", | |
# ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
# Disable warning for pip installer update notes | |
os.environ["PIP_DISABLE_PIP_VERSION_CHECK"] = "1" | |
build_platforms = [ | |
"win_amd64", # Windows x64 | |
"manylinux2014_x86_64", # Linux x64 | |
"macosx_12_0_arm64", # macOS ARM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "matplotlib", | |
# ] | |
# /// | |
# hearder was generated with command: | |
# uv add --script foo.py matplotlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "matplotlib==3.10.0", | |
# ] | |
# /// | |
# header was generated with this one terminal command: | |
# uv init --script foo.py | |
# echo -e 'matplotlib' | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.11" | |
# dependencies = [ | |
# "numpy==2.1.3", | |
# ] | |
# /// | |
import marimo | |
__generated_with = "0.9.31" |