Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FujiwaraChoki/MoneyPrinter
/ functions
Functions
117 in github.com/FujiwaraChoki/MoneyPrinter
⨍
Functions
117
◇
Types & classes
8
↳
Endpoints
7
↓ 34 callers
Function
log
Drop-in replacement for ``print(colored(msg, color))``. Prints to the terminal **and** pushes an ANSI-stripped copy to the SSE queue.
Backend/logstream.py:90
↓ 24 callers
Function
emit
(message: str, level: str = "info")
Backend/pipeline.py:41
↓ 17 callers
Function
create_job
(session: Session, payload: dict, max_attempts: int = 1)
Backend/repository.py:15
↓ 16 callers
Function
session_factory
(tmp_path: Path)
tests/conftest.py:22
↓ 15 callers
Function
get_job
(session: Session, job_id: str)
Backend/repository.py:51
↓ 14 callers
Function
showToast
(message, type = "info")
Frontend/app.js:110
↓ 11 callers
Function
list_job_events
( session: Session, job_id: str, after_id: int = 0, limit: int = 200 )
Backend/repository.py:55
↓ 10 callers
Function
append_event
( session: Session, job_id: str, event_type: str, level: str, message: str, payload: O
Backend/repository.py:31
↓ 10 callers
Function
utcnow
()
Backend/repository.py:11
↓ 8 callers
Function
setGeneratingState
(active)
Frontend/app.js:241
↓ 6 callers
Function
apiRequest
(path, options = {})
Frontend/app.js:30
↓ 6 callers
Function
guard_cancelled
()
Backend/pipeline.py:46
↓ 5 callers
Function
stopJobPolling
()
Frontend/app.js:233
↓ 4 callers
Function
_disable_cleanup
(monkeypatch)
tests/test_worker.py:5
↓ 4 callers
Function
generate_response
Generate a script for a video, depending on the subject of the video. Args: video_subject (str): The subject of the video. a
Backend/gpt.py:67
↓ 4 callers
Function
request_cancel
(session: Session, job_id: str)
Backend/repository.py:72
↓ 3 callers
Function
claim_next_queued_job
(session: Session)
Backend/repository.py:97
↓ 3 callers
Function
clean_dir
Removes every file in a directory. Args: path (str): Path to directory. Returns: None
Backend/utils.py:25
↓ 3 callers
Function
setModelOptions
(models, preferredModel)
Frontend/app.js:52
↓ 2 callers
Function
_ollama_client
()
Backend/gpt.py:20
↓ 2 callers
Function
check_env_vars
Checks if the necessary environment variables are set. Returns: None Raises: SystemExit: If any required environment va
Backend/utils.py:113
↓ 2 callers
Function
convert_to_srt_time_format
(total_seconds: float)
Backend/video.py:94
↓ 2 callers
Function
dismissToast
(toast)
Frontend/app.js:131
↓ 2 callers
Function
generate_audio
(text: str, voice: str)
Backend/tiktokvoice.py:112
↓ 2 callers
Function
get_api_response
()
Backend/tiktokvoice.py:98
↓ 2 callers
Function
get_authenticated_service
This method retrieves the YouTube service. Returns: any: The authenticated YouTube service.
Backend/youtube.py:67
↓ 2 callers
Function
get_search_terms
Generate a JSON-Array of search terms for stock videos, depending on the subject of a video. Args: video_subject (str): The subj
Backend/gpt.py:237
↓ 2 callers
Function
init_db
()
Backend/db.py:39
↓ 2 callers
Function
initialize_upload
This method uploads a video to YouTube. Args: youtube (any): The authenticated YouTube service. options (dict): The options
Backend/youtube.py:93
↓ 2 callers
Function
list_ollama_models
Returns available Ollama model names and configured default model. Returns: Tuple[List[str], str]: (available model names, default m
Backend/gpt.py:34
↓ 2 callers
Function
mark_cancelled
( session: Session, job_id: str, reason: str = "Job cancelled." )
Backend/repository.py:163
↓ 2 callers
Function
mark_completed
(session: Session, job_id: str, result_path: str)
Backend/repository.py:143
↓ 2 callers
Function
mark_failed
(session: Session, job_id: str, error_message: str)
Backend/repository.py:176
↓ 2 callers
Function
request
(baseUrl)
Frontend/app.js:33
↓ 2 callers
Function
updateColorDot
()
Frontend/app.js:137
↓ 1 callers
Function
__generate_subtitles_assemblyai
Generates subtitles from a given audio file and returns the path to the subtitles. Args: audio_path (str): The path to the audio fil
Backend/video.py:49
↓ 1 callers
Function
__generate_subtitles_locally
Generates subtitles from a given audio file and returns the path to the subtitles. Args: sentences (List[str]): all the sentences sa
Backend/video.py:81
↓ 1 callers
Function
_database_url
()
Backend/db.py:17
↓ 1 callers
Function
_extract_model_name
(model_obj)
Backend/gpt.py:24
↓ 1 callers
Function
_job_cancelled
(job_id: str)
Backend/worker.py:21
↓ 1 callers
Function
_log_event
(job_id: str, message: str, level: str)
Backend/worker.py:29
↓ 1 callers
Function
appendLogEntry
(entry)
Frontend/app.js:157
↓ 1 callers
Function
choose_random_song
Chooses a random MP3 from the Songs/ directory. Returns: str: The path to the chosen song, or None if no MP3 files found.
Backend/utils.py:53
↓ 1 callers
Function
combine_videos
Combines a list of videos into one video and returns the path to the combined video. Args: video_paths (List): A list of paths to th
Backend/video.py:162
↓ 1 callers
Function
equalize_subtitles
(srt_path: str, max_chars: int = 10)
Backend/video.py:133
↓ 1 callers
Function
formatTimestamp
(ts)
Frontend/app.js:152
↓ 1 callers
Function
generateVideo
()
Frontend/app.js:296
↓ 1 callers
Function
generate_metadata
Generate metadata for a YouTube video, including the title, description, and keywords. Args: video_subject (str): The subject of the
Backend/gpt.py:315
↓ 1 callers
Function
generate_script
Generate a script for a video, depending on the subject of the video, the number of paragraphs, and the AI model. Args: video_sub
Backend/gpt.py:142
↓ 1 callers
Function
generate_subtitles
Generates subtitles from a given audio file and returns the path to the subtitles. Args: audio_path (str): The path to the audio fil
Backend/video.py:118
↓ 1 callers
Function
generate_video
This function creates the final video, with subtitles and audio. Args: combined_video_path (str): The path to the combined video.
Backend/video.py:268
↓ 1 callers
Function
loadOllamaModels
(reuseEnabled)
Frontend/app.js:69
↓ 1 callers
Function
main
()
Backend/worker.py:65
↓ 1 callers
Function
pollJob
()
Frontend/app.js:177
↓ 1 callers
Function
process_next_job
()
Backend/worker.py:35
↓ 1 callers
Method
push
Add a log entry. Drops the oldest entry if the queue is full.
Backend/logstream.py:21
↓ 1 callers
Function
resolve_imagemagick_binary
Resolves an ImageMagick executable path across Linux, macOS, and Windows. Returns: Optional[str]: Absolute executable path if found.
Backend/utils.py:82
↓ 1 callers
Function
resumable_upload
This method implements an exponential backoff strategy to resume a failed upload. Args: insert_request (MediaFileUpload): The re
Backend/youtube.py:133
↓ 1 callers
Function
run_generation_pipeline
( data: dict, is_cancelled, on_log, amount_of_stock_videos: int = 5, )
Backend/pipeline.py:35
↓ 1 callers
Function
save_audio_file
(base64_data: str, filename: str = "output.mp3")
Backend/tiktokvoice.py:105
↓ 1 callers
Function
save_video
Saves a video from a given URL and returns the path to the video. Args: video_url (str): The URL of the video to save. direc
Backend/video.py:28
↓ 1 callers
Function
search_for_stock_videos
Searches for stock videos based on a query. Args: query (str): The query to search for. api_key (str): The API key to use.
Backend/search.py:6
↓ 1 callers
Function
split_string
(string: str, chunk_size: int)
Backend/tiktokvoice.py:79
↓ 1 callers
Function
startJobPolling
(jobId)
Frontend/app.js:224
↓ 1 callers
Function
tts
( text: str, voice: str = "none", filename: str = "output.mp3", play_sound: bool = False, )
Backend/tiktokvoice.py:121
↓ 1 callers
Function
uploadSongs
()
Frontend/app.js:271
↓ 1 callers
Function
upload_video
(video_path, title, description, category, keywords, privacy_status)
Backend/youtube.py:174
Method
__init__
(self, maxsize: int = 500)
Backend/logstream.py:10
Function
cancelGeneration
()
Frontend/app.js:257
Function
cancel_job
(job_id: str)
Backend/main.py:124
Function
cancel_latest_running_job
()
Backend/main.py:159
Method
clear
Drain all pending items from the queue.
Backend/logstream.py:13
Function
client
(monkeypatch, session_factory)
tests/test_api_jobs.py:17
Function
client
()
tests/test_api_misc.py:16
Function
fake_clean_dir
(path: str)
tests/test_api_misc.py:93
Function
fake_list_models
()
tests/test_api_misc.py:21
Function
fake_pipeline
(data, is_cancelled, on_log)
tests/test_worker.py:27
Function
fake_which
(candidate: str)
tests/test_utils.py:61
Function
generate
()
Backend/main.py:50
Function
generate_audio_thread
(text_part, index)
Backend/tiktokvoice.py:172
Function
get_events
(job_id: str)
Backend/main.py:94
Function
get_job_status
(job_id: str)
Backend/main.py:68
Function
models
()
Backend/main.py:27
Method
push_event
Send a control event (complete, error, cancelled).
Backend/logstream.py:41
Function
session
(session_factory)
tests/conftest.py:43
Method
stream
Generator yielding SSE-formatted lines. Terminates on control events.
Backend/logstream.py:60
Function
test_cancel_job_endpoint_cancels_existing_job
(client, session_factory)
tests/test_api_jobs.py:74
Function
test_cancel_job_endpoint_returns_404_for_unknown_job
(client)
tests/test_api_jobs.py:92
Function
test_cancel_latest_running_job_cancels_active_job
(client, session_factory)
tests/test_api_jobs.py:110
Function
test_cancel_latest_running_job_returns_404_when_no_active_job
(client)
tests/test_api_jobs.py:101
Function
test_choose_random_song_returns_none_if_songs_dir_missing
( monkeypatch, tmp_path: Path )
tests/test_utils.py:19
Function
test_choose_random_song_returns_selected_mp3
(monkeypatch, tmp_path: Path)
tests/test_utils.py:28
Function
test_claim_next_queued_job_marks_running_and_skips_cancelled
(session)
tests/test_repository.py:40
Function
test_clean_dir_removes_existing_files_and_directories
(tmp_path: Path)
tests/test_utils.py:6
Function
test_create_job_persists_payload_and_queued_event
(session)
tests/test_repository.py:12
Function
test_generate_creates_job_and_job_status_is_fetchable
(client)
tests/test_api_jobs.py:31
Function
test_generate_requires_video_subject
(client)
tests/test_api_jobs.py:22
Function
test_get_events_respects_after_query_parameter
(client, session_factory)
tests/test_api_jobs.py:56
Function
test_job_cancelled_helper_reflects_cancel_flag
(monkeypatch, session_factory)
tests/test_worker.py:108
Function
test_job_cancelled_helper_returns_true_for_missing_job
( monkeypatch, session_factory )
tests/test_worker.py:100
next →
1–100 of 117, ranked by callers