A python script to prefab your scripts/text files, and re create them with ease and not have to open your browser to copy code or write code yourself

Overview

Scriptfab - What is it?

A python script to prefab your scripts/text files, and re create them with ease and not have to open your browser to copy code or write code yourself. You can copy paste or write a script into the python file and re instance it easily. You don't have to wait for your browser to load, you don't have to re-watch a tutorial to write code. Example of practical use: You start a new Godot or Unity project and you need to write a Player script (player controller) and you need to look up the code or watch a tutorial, instead of doing that you can copy and paste that code into the python script once and re-instance it as many times you want in the future by running the python file.

Scriptfab - How to use it?

Download the python file and place it in your project folder, open it using a text editor (preferably Visual Studio Code/Sublime Text/Notepad++/Pycharm) then take a look at the comments, I have tried to explain as much as I can. I will also go through how to use it here.

image

Look at the variable called "script_content", this is where your script that you want to re-use goes. Start off by deleting "# Delete this comment and copy paste/write the script you want to re-use here" inside of the triple quotes.

Then copy/paste or write the script there, example: image

Now to configure the command Scroll down to find this, image Then un-comment the elif statement. Write the name of command that you want to type when running the python file inside the "" image image (MAKE SURE IT IS LOWERCASE)

Scroll up to find this, image Then create a new list value as a string and add the name of the command you used image

To add more script prefabs, just re create a similar function and elif statement.

Scriptfab - End result/Running the py file

Requirements: Python Go to where you have the python file using file explorer. image

Right click on dead space while holding your Shift key. image

Then simply click 'Open PowerShell window here' (This could say CommandPrompt for you depending on your windows version). After you see the powershell window. image

Type in image

You should see this. image

Type in 'scripts' to see the list of scripts you added. image

Then type in the command you defined before. image

Then type the filename and file extentsion. image

Check again in the folder to see the script you defined before magically appeared! image

Enjoy saving time!

Permission to change the script

Do what ever you want with it :D

You might also like...
Code examples for my Write Better Python Code series on YouTube.

Write Better Python Code This repository contains the code examples used in my Write Better Python Code series published on YouTube: https:/

A calibre plugin that generates Word Wise and X-Ray files then sends them to Kindle. Supports KFX, AZW3 and MOBI eBooks. X-Ray supports 18 languages.
A calibre plugin that generates Word Wise and X-Ray files then sends them to Kindle. Supports KFX, AZW3 and MOBI eBooks. X-Ray supports 18 languages.

WordDumb A calibre plugin that generates Word Wise and X-Ray files then sends them to Kindle. Supports KFX, AZW3 and MOBI eBooks. Languages X-Ray supp

Simple Python script to scrape youtube channles of "Parity Technologies and Web3 Foundation" and translate them to well-known braille language or any language

Simple Python script to scrape youtube channles of "Parity Technologies and Web3 Foundation" and translate them to well-known braille language or any

Write Alphabet, Words and Sentences with your eyes.

The-Next-Gen-AI-Eye-Writer The Eye tracking Technique has become one of the most popular techniques within the human and computer interaction era, thi

Understand Text Summarization and create your own summarizer in python
Understand Text Summarization and create your own summarizer in python

Automatic summarization is the process of shortening a text document with software, in order to create a summary with the major points of the original document. Technologies that can make a coherent summary take into account variables such as length, writing style and syntax.

The ability of computer software to identify words and phrases in spoken language and convert them to human-readable text

speech-recognition-py Speech recognition is the ability of computer software to identify words and phrases in spoken language and convert them to huma

Finds snippets in iambic pentameter in English-language text and tries to combine them to a rhyming sonnet.

Sonnet finder Finds snippets in iambic pentameter in English-language text and tries to combine them to a rhyming sonnet. Usage This is a Python scrip

Ptorch NLU, a Chinese text classification and sequence annotation toolkit, supports multi class and multi label classification tasks of Chinese long text and short text, and supports sequence annotation tasks such as Chinese named entity recognition, part of speech tagging and word segmentation.

Pytorch-NLU,一个中文文本分类、序列标注工具包,支持中文长文本、短文本的多类、多标签分类任务,支持中文命名实体识别、词性标注、分词等序列标注任务。 Ptorch NLU, a Chinese text classification and sequence annotation toolkit, supports multi class and multi label classification tasks of Chinese long text and short text, and supports sequence annotation tasks such as Chinese named entity recognition, part of speech tagging and word segmentation.

Text-Summarization-using-NLP - Text Summarization using NLP  to fetch BBC News Article and summarize its text and also it includes custom article Summarization
Owner
DevNugget
I make videos and I am a nugget. ok.
DevNugget
NLPretext packages in a unique library all the text preprocessing functions you need to ease your NLP project.

NLPretext packages in a unique library all the text preprocessing functions you need to ease your NLP project.

Artefact 114 Dec 15, 2022
Saptak Bhoumik 14 May 24, 2022
Product-Review-Summarizer - Created a product review summarizer which clustered thousands of product reviews and summarized them into a maximum of 500 characters, saving precious time of customers and helping them make a wise buying decision.

Product-Review-Summarizer - Created a product review summarizer which clustered thousands of product reviews and summarized them into a maximum of 500 characters, saving precious time of customers and helping them make a wise buying decision.

Parv Bhatt 1 Jan 1, 2022
💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants

Rasa Open Source Rasa is an open source machine learning framework to automate text-and voice-based conversations. With Rasa, you can build contextual

Rasa 15.3k Dec 30, 2022
💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants

Rasa Open Source Rasa is an open source machine learning framework to automate text-and voice-based conversations. With Rasa, you can build contextual

Rasa 15.3k Jan 3, 2023
💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants

Rasa Open Source Rasa is an open source machine learning framework to automate text-and voice-based conversations. With Rasa, you can build contextual

Rasa 10.8k Feb 18, 2021
We have built a Voice based Personal Assistant for people to access files hands free in their device using natural language processing.

Voice Based Personal Assistant We have built a Voice based Personal Assistant for people to access files hands free in their device using natural lang

Rushabh 2 Nov 13, 2021
Utility for Google Text-To-Speech batch audio files generator. Ideal for prompt files creation with Google voices for application in offline IVRs

Google Text-To-Speech Batch Prompt File Maker Are you in the need of IVR prompts, but you have no voice actors? Let Google talk your prompts like a pr

Ponchotitlán 1 Aug 19, 2021