Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/disler/indydevtools
/ functions
Functions
79 in github.com/disler/indydevtools
⨍
Functions
79
◇
Types & classes
18
↓ 19 callers
Function
load_config
Loads the YAML configuration file.
indy_dev_tools/modules/idt_config.py:104
↓ 5 callers
Function
prompt_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 callers
Function
make_cap_refs
Attach capitalized references to the prompt.
indy_dev_tools/modules/llm.py:9
↓ 3 callers
Function
generate_directories
Generates the draft and final directories based on the configuration.
indy_dev_tools/modules/idt_config.py:148
↓ 3 callers
Function
write_config
Writes (or updates) the YAML configuration file.
indy_dev_tools/modules/idt_config.py:156
↓ 2 callers
Function
create_thumbnail
(count: int, prompt: str)
indy_dev_tools/modules/create_thumbnail.py:38
↓ 2 callers
Function
generate_metadata_flow
(input_data: GenerateMetadataInput)
indy_dev_tools/modules/generate_metadata_flow.py:19
↓ 2 callers
Method
make_thumbnail_file_path
(self, count: int, ext="png")
indy_dev_tools/models.py:132
↓ 2 callers
Function
view_config
View the configuration file in the console.
indy_dev_tools/modules/idt_config.py:167
↓ 1 callers
Function
_parse_prompt_template
(template: IdtSimplePromptTemplate)
indy_dev_tools/modules/sps_prompt.py:8
↓ 1 callers
Function
compose_description
()
indy_dev_tools/modules/compose_description.py:14
↓ 1 callers
Function
compose_hashtags
()
indy_dev_tools/modules/compose_hashtags.py:9
↓ 1 callers
Function
compose_thumbnail
()
indy_dev_tools/modules/compose_thumbnail.py:12
↓ 1 callers
Function
compose_titles
()
indy_dev_tools/modules/compose_title.py:11
↓ 1 callers
Function
create_description
( count: int, script_file_path: str, seo_keywords: Optional[str] = None, draft_title: Optional
indy_dev_tools/modules/create_description.py:29
↓ 1 callers
Function
create_formatted_references
( references: str, rough_draft_title: str, seo_keywords: str, )
indy_dev_tools/modules/create_formatted_references.py:32
↓ 1 callers
Function
create_hashtags
( rough_draft_title: str, seo_keywords: str, )
indy_dev_tools/modules/create_hashtags.py:25
↓ 1 callers
Function
create_research
(seo_keywords: List[str])
indy_dev_tools/modules/create_research.py:10
↓ 1 callers
Function
create_thumbnail_from_generated_prompt
(count: int)
indy_dev_tools/modules/create_thumbnail.py:16
↓ 1 callers
Function
create_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 callers
Function
create_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 callers
Function
create_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 callers
Function
get_path_to_files_with_sound
(dir)
indy_dev_tools/modules/file_util.py:5
↓ 1 callers
Function
main
Main entry point for the CLI.
indy_dev_tools/main.py:19
↓ 1 callers
Function
main
()
scripts/run_tox.py:5
↓ 1 callers
Function
main
()
scripts/publish_testpypi.py:4
↓ 1 callers
Function
main
()
scripts/publish_pypi.py:4
↓ 1 callers
Function
merge_new_configs
Merges the existing configuration with the default configuration, adding any missing keys.
indy_dev_tools/modules/idt_config.py:80
↓ 1 callers
Function
prompt_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 callers
Function
prompt_stream
Generate a response from a prompt using the OpenAI API without specifying a response format.
indy_dev_tools/modules/llm.py:130
↓ 1 callers
Function
resize_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 callers
Function
sps_get
(sps_config: IdtSimplePromptSystem, alias: str)
indy_dev_tools/modules/sps_get.py:4
↓ 1 callers
Function
sps_list
(sps_config: IdtSimplePromptSystem)
indy_dev_tools/modules/sps_list.py:5
↓ 1 callers
Function
sps_prompt
( alias: str, prompt: str, vars: Optional[str] = None, stream_response: bool = True )
indy_dev_tools/modules/sps_prompt.py:25
Function
compose
Compose the final thumbnail for a video. - inputs - `/draft/thumbnail_<count>.png` - outputs - Finalized `/final/thumbnai
indy_dev_tools/commands/thumbnails.py:25
Function
compose
()
indy_dev_tools/commands/titles.py:11
Function
compose
- Compose a description given a completed draft directory. - Inputs - `<config.yt.operating_dir>/draft/descriptions.json` - `<con
indy_dev_tools/commands/descriptions.py:11
Function
compose
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
Function
config
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
Function
config
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
Function
create
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
Function
create
( rough_draft_title: str = typer.Option( "", "-r", "--rough-draft-title", help="The rough draft ti
indy_dev_tools/commands/titles.py:16
Function
create
( script_file: str = typer.Option( ..., "-s", "--script-file", help="The path to the script file."
indy_dev_tools/commands/descriptions.py:25
Function
create
- 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
Function
create_from_prompt
Create thumbnails from a generated prompt. - inputs - `/draft/thumbnail_prompt.json` - outputs - `/drafts/thumbnail_<coun
indy_dev_tools/commands/thumbnails.py:37
Function
create_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
Method
description_file_path
(self)
indy_dev_tools/models.py:103
Function
dir
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
Method
draft_dir_path
(self)
indy_dev_tools/models.py:77
Method
draft_sub_dir
(self)
indy_dev_tools/models.py:69
Function
edit
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
Method
final_description_file_path
(self)
indy_dev_tools/models.py:117
Method
final_dir_path
(self)
indy_dev_tools/models.py:81
Method
final_hashtags_file_path
(self)
indy_dev_tools/models.py:125
Method
final_sub_dir
(self)
indy_dev_tools/models.py:73
Method
final_thumbnail_file_path
(self)
indy_dev_tools/models.py:129
Method
final_title_file_path
(self)
indy_dev_tools/models.py:121
Function
format
- 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
Method
formatted_references_file_path
(self)
indy_dev_tools/models.py:111
Function
gen_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
Function
gen_meta_auto
( get_references: bool = typer.Option( False, "-r", "--get-references", he
indy_dev_tools/commands/youtube.py:59
Function
get
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
Method
hashtags_file_path
(self)
indy_dev_tools/models.py:107
Function
iterate
(prompt: str, thumbnail_file_path: str)
indy_dev_tools/commands/thumbnails.py:141
Function
iterate
(title: str)
indy_dev_tools/commands/titles.py:37
Function
iterate
(prompt: str, description: str)
indy_dev_tools/commands/descriptions.py:46
Function
list
List all available prompt templates. Inputs: - None Outputs: - The list of all available prompt templates
indy_dev_tools/commands/simple_prompt_system.py:66
Function
prompt
Generate a response from a prompt using the OpenAI API without specifying a response format.
indy_dev_tools/modules/llm.py:95
Function
prompt
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
Function
rescale
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
Function
run
( alias: str = typer.Option(..., "-a", help="Alias"), prompt: str = typer.Option(..., "-p", help="Prom
indy_dev_tools/commands/playground.py:8
Function
safe_get
{'a': {'b': [{'c': 1}]}} safe_get(data, 'a.b.0.c') -> 1
indy_dev_tools/modules/dict_util.py:1
Method
script_file_path
(self)
indy_dev_tools/models.py:91
Method
script_json_file_path
(self)
indy_dev_tools/models.py:95
Method
thumbnail_prompt_file_path
(self)
indy_dev_tools/models.py:85
Method
title_file_path
(self)
indy_dev_tools/models.py:99
Function
transcribe
( file: str = typer.Option( ..., "--file", "-f", help="The path to the video file to transcribe."
indy_dev_tools/commands/script.py:16
Function
view
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
Function
view_config_dir
Open the directory where the configuration file is stored.
indy_dev_tools/modules/idt_config.py:176