MCPcopy Create free account

hub / github.com/disler/indydevtools / functions

Functions79 in github.com/disler/indydevtools

↓ 19 callersFunctionload_config
Loads the YAML configuration file.
indy_dev_tools/modules/idt_config.py:104
↓ 5 callersFunctionprompt_json_response
Generate a response from a prompt using the OpenAI API. Example: res = llm.prompt_json_response( f"You're a data innovat
indy_dev_tools/modules/llm.py:20
↓ 4 callersFunctionmake_cap_refs
Attach capitalized references to the prompt.
indy_dev_tools/modules/llm.py:9
↓ 3 callersFunctiongenerate_directories
Generates the draft and final directories based on the configuration.
indy_dev_tools/modules/idt_config.py:148
↓ 3 callersFunctionwrite_config
Writes (or updates) the YAML configuration file.
indy_dev_tools/modules/idt_config.py:156
↓ 2 callersFunctioncreate_thumbnail
(count: int, prompt: str)
indy_dev_tools/modules/create_thumbnail.py:38
↓ 2 callersFunctiongenerate_metadata_flow
(input_data: GenerateMetadataInput)
indy_dev_tools/modules/generate_metadata_flow.py:19
↓ 2 callersMethodmake_thumbnail_file_path
(self, count: int, ext="png")
indy_dev_tools/models.py:132
↓ 2 callersFunctionview_config
View the configuration file in the console.
indy_dev_tools/modules/idt_config.py:167
↓ 1 callersFunction_parse_prompt_template
(template: IdtSimplePromptTemplate)
indy_dev_tools/modules/sps_prompt.py:8
↓ 1 callersFunctioncompose_description
()
indy_dev_tools/modules/compose_description.py:14
↓ 1 callersFunctioncompose_hashtags
()
indy_dev_tools/modules/compose_hashtags.py:9
↓ 1 callersFunctioncompose_thumbnail
()
indy_dev_tools/modules/compose_thumbnail.py:12
↓ 1 callersFunctioncompose_titles
()
indy_dev_tools/modules/compose_title.py:11
↓ 1 callersFunctioncreate_description
( count: int, script_file_path: str, seo_keywords: Optional[str] = None, draft_title: Optional
indy_dev_tools/modules/create_description.py:29
↓ 1 callersFunctioncreate_formatted_references
( references: str, rough_draft_title: str, seo_keywords: str, )
indy_dev_tools/modules/create_formatted_references.py:32
↓ 1 callersFunctioncreate_hashtags
( rough_draft_title: str, seo_keywords: str, )
indy_dev_tools/modules/create_hashtags.py:25
↓ 1 callersFunctioncreate_research
(seo_keywords: List[str])
indy_dev_tools/modules/create_research.py:10
↓ 1 callersFunctioncreate_thumbnail_from_generated_prompt
(count: int)
indy_dev_tools/modules/create_thumbnail.py:16
↓ 1 callersFunctioncreate_thumbnail_prompt
( count: int, draft_title: str, seo_keywords: Optional[str] = None, art_style: Optional[str] =
indy_dev_tools/modules/create_thumbnail_prompt.py:88
↓ 1 callersFunctioncreate_title
Create a titles for a youtube video given a draft title, script, and SEO keywords.
indy_dev_tools/modules/create_title.py:46
↓ 1 callersFunctioncreate_transcription
Transcribes a video using Faster Whisper and returns a pydantic Transcription object. Args: video_path (str): The path to the video file
indy_dev_tools/modules/create_transcription.py:15
↓ 1 callersFunctionget_path_to_files_with_sound
(dir)
indy_dev_tools/modules/file_util.py:5
↓ 1 callersFunctionmain
Main entry point for the CLI.
indy_dev_tools/main.py:19
↓ 1 callersFunctionmain
()
scripts/run_tox.py:5
↓ 1 callersFunctionmain
()
scripts/publish_testpypi.py:4
↓ 1 callersFunctionmain
()
scripts/publish_pypi.py:4
↓ 1 callersFunctionmerge_new_configs
Merges the existing configuration with the default configuration, adding any missing keys.
indy_dev_tools/modules/idt_config.py:80
↓ 1 callersFunctionprompt_image
Generate an image from a prompt using the OpenAI API and save it to the specified file path.
indy_dev_tools/modules/llm.py:64
↓ 1 callersFunctionprompt_stream
Generate a response from a prompt using the OpenAI API without specifying a response format.
indy_dev_tools/modules/llm.py:130
↓ 1 callersFunctionresize_image
Rescales an image from one ratio to another (1792x1024 to 1280x720) and saves it. Args: image_path: Path to the input image. out
indy_dev_tools/modules/resize_image.py:4
↓ 1 callersFunctionsps_get
(sps_config: IdtSimplePromptSystem, alias: str)
indy_dev_tools/modules/sps_get.py:4
↓ 1 callersFunctionsps_list
(sps_config: IdtSimplePromptSystem)
indy_dev_tools/modules/sps_list.py:5
↓ 1 callersFunctionsps_prompt
( alias: str, prompt: str, vars: Optional[str] = None, stream_response: bool = True )
indy_dev_tools/modules/sps_prompt.py:25
Functioncompose
Compose the final thumbnail for a video. - inputs - `/draft/thumbnail_<count>.png` - outputs - Finalized `/final/thumbnai
indy_dev_tools/commands/thumbnails.py:25
Functioncompose
()
indy_dev_tools/commands/titles.py:11
Functioncompose
- Compose a description given a completed draft directory. - Inputs - `<config.yt.operating_dir>/draft/descriptions.json` - `<con
indy_dev_tools/commands/descriptions.py:11
Functioncompose
Compose the final set of hashtags for a video. - inputs - `/draft/hashtags.json` - outputs - Finalized `/final/hashtags.t
indy_dev_tools/commands/hashtags.py:9
Functionconfig
Open the indydevtools config file so you can view it, and edit it. Inputs: -p: Only print the configuration file to the console, do
indy_dev_tools/commands/youtube.py:39
Functionconfig
Dump the config file for the Simple Prompt System so you can view it, open it, and edit it to add your own prompt templates. Inputs:
indy_dev_tools/commands/simple_prompt_system.py:18
Functioncreate
Create an image with the specified prompt and download it. - inputs - `-p`: The prompt to create thumbnail with. - `-c`: The
indy_dev_tools/commands/thumbnails.py:84
Functioncreate
( rough_draft_title: str = typer.Option( "", "-r", "--rough-draft-title", help="The rough draft ti
indy_dev_tools/commands/titles.py:16
Functioncreate
( script_file: str = typer.Option( ..., "-s", "--script-file", help="The path to the script file."
indy_dev_tools/commands/descriptions.py:25
Functioncreate
- Generate hashtags for a video (list of 10 comma sep, and top three). - Inputs - `-r`: The rough draft title of the video. -
indy_dev_tools/commands/hashtags.py:23
Functioncreate_from_prompt
Create thumbnails from a generated prompt. - inputs - `/draft/thumbnail_prompt.json` - outputs - `/drafts/thumbnail_<coun
indy_dev_tools/commands/thumbnails.py:37
Functioncreate_prompt
Create a prompt for generating a thumbnail. - inputs - `-r`: The rough draft title of the video. - `-k`: The SEO keywords for
indy_dev_tools/commands/thumbnails.py:56
Methoddescription_file_path
(self)
indy_dev_tools/models.py:103
Functiondir
Open the directory where the configuration file is stored. Output: - The directory where the configuration file is stored is opened.
indy_dev_tools/commands/config.py:51
Methoddraft_dir_path
(self)
indy_dev_tools/models.py:77
Methoddraft_sub_dir
(self)
indy_dev_tools/models.py:69
Functionedit
Edit the configuration file in the default editor. Output: - The configuration file is opened in the default editor.
indy_dev_tools/commands/config.py:33
Methodfinal_description_file_path
(self)
indy_dev_tools/models.py:117
Methodfinal_dir_path
(self)
indy_dev_tools/models.py:81
Methodfinal_hashtags_file_path
(self)
indy_dev_tools/models.py:125
Methodfinal_sub_dir
(self)
indy_dev_tools/models.py:73
Methodfinal_thumbnail_file_path
(self)
indy_dev_tools/models.py:129
Methodfinal_title_file_path
(self)
indy_dev_tools/models.py:121
Functionformat
- Format the references for a video. - Inputs - `-r`: The references to format. - `-t`: The rough draft title of the video.
indy_dev_tools/commands/references.py:10
Methodformatted_references_file_path
(self)
indy_dev_tools/models.py:111
Functiongen_meta
( path_to_audio_or_video: str = typer.Option( ..., "--file", "-f", help="Path to the audio or vide
indy_dev_tools/commands/youtube.py:156
Functiongen_meta_auto
( get_references: bool = typer.Option( False, "-r", "--get-references", he
indy_dev_tools/commands/youtube.py:59
Functionget
Get the prompt template. Inputs: -a: The alias for the prompt template Outputs: - The prompt template
indy_dev_tools/commands/simple_prompt_system.py:82
Methodhashtags_file_path
(self)
indy_dev_tools/models.py:107
Functioniterate
(prompt: str, thumbnail_file_path: str)
indy_dev_tools/commands/thumbnails.py:141
Functioniterate
(title: str)
indy_dev_tools/commands/titles.py:37
Functioniterate
(prompt: str, description: str)
indy_dev_tools/commands/descriptions.py:46
Functionlist
List all available prompt templates. Inputs: - None Outputs: - The list of all available prompt templates
indy_dev_tools/commands/simple_prompt_system.py:66
Functionprompt
Generate a response from a prompt using the OpenAI API without specifying a response format.
indy_dev_tools/modules/llm.py:95
Functionprompt
Run a prompt using your favorite template with custom variables. Inputs: -a: The alias for the prompt template -p: The promp
indy_dev_tools/commands/simple_prompt_system.py:38
Functionrescale
Rescale an image to the specified width and height. Defaults to youtube thumbnail size. - inputs - `-f`: The path to the input image
indy_dev_tools/commands/thumbnails.py:107
Functionrun
( alias: str = typer.Option(..., "-a", help="Alias"), prompt: str = typer.Option(..., "-p", help="Prom
indy_dev_tools/commands/playground.py:8
Functionsafe_get
{'a': {'b': [{'c': 1}]}} safe_get(data, 'a.b.0.c') -> 1
indy_dev_tools/modules/dict_util.py:1
Methodscript_file_path
(self)
indy_dev_tools/models.py:91
Methodscript_json_file_path
(self)
indy_dev_tools/models.py:95
Methodthumbnail_prompt_file_path
(self)
indy_dev_tools/models.py:85
Methodtitle_file_path
(self)
indy_dev_tools/models.py:99
Functiontranscribe
( file: str = typer.Option( ..., "--file", "-f", help="The path to the video file to transcribe."
indy_dev_tools/commands/script.py:16
Functionview
View the configuration file in the console. Input: -p: Only print the configuration file to the console, do not open in editor O
indy_dev_tools/commands/config.py:10
Functionview_config_dir
Open the directory where the configuration file is stored.
indy_dev_tools/modules/idt_config.py:176