Saravanan666/pypi-org huggingface dataset:
Package: gpt-developer-tools
GPT Developer ToolsA CLI utility based on OpenAI'sChatGPTthat helps developers in:DebuggingExplaning/Documenting an undocumented scriptCreating new scripts based on promptInstallationPrerequisitespython3andpython3-pippackages should be installed.OpenAI API Key. You can generate one by visitingbeta.openai.comLocal InstallationInstallgpt-developer-toolsPyPI package usingpip.python3-mpipinstallgpt-developer-toolsExportOPENAI_API_KEYenvironment variable.exportOPENAI_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Rungdtcommand with arguments and options.gdtexplain--path./gpt_developer_tools.pyUsageTo debug a script withgdtgdtdebug--path./setup.pyTo debug first 7 lines of a scriptgdtdebug--path./setup.py--line-end7To debug specific lines of a scriptgdtdebug--path./setup.py--line-start7--line-end17To debug a script with a different promptgdtdebug--path./setup.py--line-start7--line-end17--prompt-message"Debug this script"To fetch an explanation/documentation for a scriptgdtexplain--path./setup.py--line-start7--line-end17--prompt-message"Explain this script to me line by line"To create and save a scriptgdtcreate-pm"Write a merge sort program in Java"-w--path./sorting.javaSample OutputInputScript:./gpt_developer_tools.py

ChatGPT's Response:if __name__ == '__main__':cli()ThisscriptisusedtodebugorexplainascriptusingChatGPT.Thescriptusestheclicklibrarytocreateacommandlineinterfaceandimporttherequesterandutilsmodulesfromthesrcpackage.Thecli()functionisusedtocreatethecommandlinegroup.Thedebug()andexplain()functionsareusedtodebugorexplainascriptrespectively.Bothfunctionstakeinthepathtothescript,thestartingandendinglineofthescript,themodelengine,maxtokens,numberofoutputs,temperatureandpromptmessagetobeusedbyChatGPT.Theopen_ai_api_keyisretrievedfromtheenvironmentvariableOPENAI_API_KEYandisusedtosendtherequesttoChatGPT.Finally,thecli()functioniscalledtoexecutethecommandlineinterface.Development and TestingCreate virtual environment.python3-mvirtualenvvenvActivate virtual environment.sourcevenv/bin/activateInstall CLI utilitygdtpython3-mpipinstall--editable.Add your OpenAI API key as environment variable. You can generate one frombeta.openai.comif you already have an OpenAI account.exportOPENAI_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Rungdtutility with target script passed as pathgdtexplain--path./gpt_developer_tools.pyFollow OpenAI'sAPI Documentationfor details related to models and predictions.
Package: gpt-dialog
GPT DialogEl paquetegpt_dialogfacilita la creación de bots basados en modelos GPT capaces de dialogar entre sí. Los bots pueden discutir sobre un tema específico, y uno de ellos, denominado moderador, tiene la capacidad de generar una conclusión después de escuchar a los demás bots.InstalaciónPara instalar el paquete, clona el repositorio y crea un entorno virtual. Asegúrate de tener Python 3.10 instalado en tu entorno.RequisitosEl paquetegpt_dialogrequiere las siguientes librerías:openaiattrspython-dotenvPuedes instalar estos requisitos utilizando el siguiente comando:pipinstall-rsrc/requirements.txtAdemás, necesitarás una API key de OpenAI para utilizar el paquete. Asegúrate de configurar tu API key correctamente antes de utilizar el paquete.Usofromgpt_dialogs.gpt_groupsimportChatBotGroupsgroup=ChatBotGroups.create_bots(NUMBER_BOTS,MODEL_TYPE,None,OPENAI_API_KEY)question=input("¿Qué quieres debatir?: ")conclusion=group.launch_debate(question,MODEL_TYPE,None,OPENAI_API_KEY,ITERATIONS,True)Este es un ejemplo básico de cómo usar el paquete. Asegúrate de consultar la documentación para obtener información detallada sobre las funciones y opciones disponibles.AutorSantiago Arran Sanz(santhiperbolico)
Package: gptdjmme
ME-GPTCreate a clone of you - give it information about yourself and let it speak for you.TODO - add a gif here[Demo]Project philosophyOpen source- the project is open source and free to use. We are building the open platform for devs to tinker with and build their personal code-generation toolbox.Clone yourself- the project is about creating a clone of yourself. You can use it to automate your work, or to create a digital version of yourself that can speak for you.SetupTODO - [ ] Add setup instructionsRun:TODO - [ ] Add run instructionsResultsTODO - [ ] Add resultsFeaturesYou can specify the "identity" of the AI agent by editing the files in theidentityfolder.Editing the identity, and evolving thememoryof the AI agent will change the way it responds to you.ContributingWe are building the open platform for devs to tinker with and build their personal code-generation toolbox.If you want to contribute, please check out theroadmap, in the GitHub repo. You are welcome to read thecontributing documentfor more information.We are currently looking for more maintainers and community organizers to help us build the community around this project. If you are interested, email -daniel@danielmcdonald.devif you are interested in an official role.
Package: gpt-do
gpt-doThis is a handy-dandy CLI for when you don't know wtf to do.Instead of furiously grepping through man pages, simply usedo(orddoif onbash/zsh), and have GPT-3 do all the magic for you.Check out the blog posthere.DemoClick to play:InstallationWe recommend usingpipx:$pipxinstallgpt-do$whichdo~/.local/bin/doHowever you can also usebrew:$brewinstallyasyf/do/do$whichdo/opt/homebrew/bin/doOrpip:$pipinstallgpt-do$whichdo~/.asdf/installs/python/3.11.0/bin/doUsagen.b.If you're onbashorzsh,dois a reserved keyword, so you'll have to use the aliasddo.n.b.The default model used isGPT-3. Please ensure you have sufficient credits in your OpenAI account to use it.$exportOPENAI_API_KEY=xxx# stick this in your bash_profile$doamendthemessageofmylastcommitto"It works!"This command will amend the message of the last commit to 'It works!'.git commit --amend -m 'It works!'Do you want to continue? [y/N]: y[main 3e6a2f6] It works!!Date: Thu Dec 22 01:15:40 2022 -08005 files changed, 1088 insertions(+)create mode 100644 .gitignorecreate mode 100644 .gitmodulescreate mode 100644 README.mdcreate mode 100644 poetry.lockcreate mode 100644 pyproject.toml
Package: gptdocumenter
GPT-DocumenterGPT-Documenter is a small project that automates the process of documenting Python functions by using GPT-3.5 along with Langchain.Installation-gitclonehttps://github.com/username/gpt-documenter.gitUsageGPT-Documenter utilizes Python Typer and provides two main commands:inspectdocument-functionsinspectTheinspectcommand allows you to preview the documentation setup and receive an estimate of token usage. To use theinspectcommand, provide the following parameters:project_path: The path of the project you want to documentoutput_path: The path where the JSON result will be savedexcluded_paths: A list of paths you want to avoid, with project_path as root.Here's an example of how to use theinspectcommand:pythonmain.pyinspect/path/to/project/path/to/output.jsondirectory/to/avoid,file_to_avoid.pydocument-functionsThedocument-functionscommand generates the actual documentation for the Python functions in your project. You'll need to provide the same arguments as theinspectcommand, along with your OpenAI API key:openai_api_key: Your OpenAI API keyproject_path: The path of the project you want to documentoutput_path: The path where the JSON result will be savedexclude_paths: A list of paths you want to avoid, with project_path as root.Here's an example of how to use thedocument-functionscommand:pythonmain.pydocument-functionsYOUR_API_KEY/path/to/project/path/to/output.jsondirectory/to/avoid,file_to_avoid.pyOnce the command is executed, GPT-Documenter will begin generating the documentation for the functions and save the result as a JSON file in the specified output path.
Package: gptEngine
GPTEngineModel Class DocumentationTheGPTEngineModelclass is designed to interact with the OpenAI GPT-3.5 Turbo engine using prompts from a .doc file. It provides a convenient way to generate responses based on tasks and input prompts.Table of ContentsInstallationUsageClass DetailsAttributesMethodsExampleContributingLicenseInstallationBefore using theGPTEngineModelclass, make sure you have the required dependencies installed:pipinstallopenai
pipinstallpython-docxUsageTo use theGPTEngineModelclass, follow these steps:Create a configuration file containing your OpenAI API key. Refer to theconfig.pyfile in the code for an example.Import theGPTEngineModelclass:fromyour_moduleimportGPTEngineModelInitialize an instance of the GPTEngineModel class with your main task and input prompt:engine=GPTEngineModel("Main task description","Input prompt text")Use the generate_response method to generate responses based on a .doc file:response=engine.generate_response("path/to/your/file.docx")print(response)Class DetailsAttributesmain_task(str): The main task description.input_prompt(str): The input prompt for the GPT-3.5 Turbo engine.api_key(str): The OpenAI API key for authentication.Methodsgenerate_response(file_path: str) -> strGenerate a response from OpenAI based on the provided .doc file.Parameters:file_path(str): The path to the .doc file.Returns:str: The response from OpenAI.Private Methods_setup_openai(): Set up the OpenAI API key for authentication._get_context() -> str: Get the context for the current task._get_file(file_path: str) -> str: Read the .doc file and return the text content._batch_process(file_path: str) -> List[dict]: Batch process the instructions and input prompt.Examplefromyour_moduleimportGPTEngineModel# Initialize the GPTEngineModelengine=GPTEngineModel("Summarize an article","Please summarize the following article:")# Generate a response from OpenAI based on a .doc fileresponse=engine.generate_response("path/to/your/article.docx")print(response)ContributingIf you would like to contribute to this project or report issues, please refer to the project's GitHub repositoryhttps://github.com/mbsuraj/gptEngine.git.LicenseThis project is licensed under the MIT. See the LICENSE.md file for details.
Package: gpt-engineer
GPT-EngineerGPT-engineer lets you:Specify a software in natural languageSit back and watch as an AI writes and executes the codeAsk the AI to implement improvementsGetting StartedInstall gpt-engineerForstablerelease:python -m pip install gpt-engineerFordevelopment:git clone https://github.com/gpt-engineer-org/gpt-engineer.gitcd gpt-engineerpoetry installpoetry shellto activate the virtual environmentWe actively support Python 3.10 - 3.12. The last version to support python 3.8 - 3.9 was0.2.6.Setup API KeyChooseoneof:Export env variable (you can add this to .bashrc so that you don't have to do it each time you start the terminal)export OPENAI_API_KEY=[your api key].env file:Create a copy of.env.templatenamed.envAdd your OPENAI_API_KEY in .envCustom model:Seedocs, supports local model, azure, etc.Check theWindows READMEfor windows usage.Other ways to run:Use Docker (instructions)Do everything in your browser:Create new code (default usage)Create an empty folder for your project anywhere on your computerCreate a file calledprompt(no extension) inside your new folder and fill it with instructionsRungpte <project_dir>with a relative path to your folderFor example:gpte projects/my-new-projectfrom the gpt-engineer directory root with your new folder inprojects/Improve Existing CodeLocate a folder with code which you want to improve anywhere on your computerCreate a file calledprompt(no extension) inside your new folder and fill it with instructions for how you want to improve the codeRungpte <project_dir> -iwith a relative path to your folderFor example:gpte projects/my-old-projectfrom the gpt-engineer directory root with your folder inprojects/By running gpt-engineer you agree to ourterms.Relation to gptengineer.appgptengineer.appis a commercial project for automatic generation of web-apps.
It features a UI for non-technical users, connected to a git controlled codebase.
The gptengineer.app team is actively supporting the open source community.FeaturesYou can specify the "identity" of the AI agent by overriding theprepromptsfolder, with your own version of thepreprompts, using the--use-custom-prepromptsargument.Editing theprepromptsis how you make the agent remember things between projects.You can also run with open source models, like WizardCoder. See thedocumentationfor example instructions.MissionThe gpt-engineer community mission is tomaintain tools that coding agent builders can use and facilitate collaboration in the open source community.If you are interested in contributing to this, we are interested in having you.If you want to see our broader ambitions, check out theroadmap, and joindiscordto get input on how you cancontributeto it.gpt-engineer isgovernedby a board of long term contributors. If you contribute routinely and have an interest in shaping the future of gpt-engineer, you will be considered for the board.Examplehttps://github.com/gpt-engineer-org/gpt-engineer/assets/4467025/40d0a9a8-82d0-4432-9376-136df0d57c99
Package: gpterm
GPTermInteract and chat with OpenAI's GPT-3 models via an REPL terminal emulation on macOS.
Including voiced output, image generation and model selection.InstallationTo install GPTerm, simply execute the following command in your terminal:pip3install--upgradegptermNote:GPTerm works best when installed and run under aCondaenvironment. SeeKnown IssuesTo install under conda (after installing anaconda or miniconda):condacreate--namegptermpython=3.10.8
condaactivategpterm
pip3install--upgradegptermUsagegptermNote:GPTerm uses the OpenAI API which requires anOpenAI API KeySetting an OpenAI API Key:You can get your OpenAI API Key fromOpenAIStoring it in the file~/.openai-api-keywill allow to run GPTerm without manually providing it with the API key.
In the command below replaceapi_keywith your OpenAI API Key.echoapi_key> ~/.openai-api-keyAlternatively, you can provide your API Key togptermby passing it with one of these flags:--api_key <api_key>--api_key_path <path/to/file/containing/api_key>Or by setting a shell environment variableOPENAI_API_KEYwith your API Key before runninggptermSetting the Color Theme:For the best experience a terminal with adarkbackground theme is recommended. (Like the one provided byiTerm)However, if you are using a light background terminal start gpterm with the following flag:--theme lightOptions arelightordark(default)FeaturesGPTerm provides the following features as supported by OpenAI's API:Streamed outputMultiline inputPreserves conversation context including the option to reset itVoiced output using text to speech (with a variety of voices to choose from)Image Generation using a DALL·E model (note that as the saying goes an image is worth a thousand tokens...)Model selection and parameters (including thechatgptmodel which is set as default: gpt-3.5-turbo)Displays number of remaining tokens for current conversation context before it is reset (Due tomax_tokenslimited by OpenAI's API)Code blocks formatted with Syntax highlighting (experimental)Known IssuesTab completion doesn't seem to work well in thereadlinemodule that comes with native python. TheCondaenvironment includes a python binary with a readline module that does support it.
Package: gpterminal
GPTerminalGPTerminal 是一个基于 GPT 模型的命令行工具，旨在帮助用户解决各种编程问题，提供智能问答和代码执行功能。功能聊天：与 GPT-3 或 GPT-4 进行智能聊天。Git 命令行助手：根据您的问题提供 Git 命令帮助。
3.代码执行：执行命令并捕获错误输出及其上下文，提供智能解决方案。安装确保安装 Python 3.6 或更高版本。然后运行：pipinstallgpterminal

或者

pipinstallgpterminal-ihttps://pypi.org/simple/使用在命令行中输入以下命令启动 gpterminalgpterminal然后选择您想要使用的功能。示例聊天gt chatGit 命令行助手gt git代码执行gt run your-command当您在终端中输入gt令时，如果提示Command not found，这可能是因为您的系统未将gt命令添加到 PATH 环境变量中。在这种情况下，您可以按照以下步骤操作：在 macOS 或 Linux 上打开终端并输入以下命令：echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc这将向您的.bashrc文件添加一行，该行将~/.local/bin目录添加到 PATH 环境变量中。然后，重新加载您的.bashrc文件：source~/.bashrc现在，您应该能够在终端中使用gt命令了。在 Windows 上打开命令提示符并输入以下命令：setx PATH"%USERPROFILE%\AppData\Roaming\\PythonXX\Scripts;%PATH%"请注意，将PythonXX替换为您的 Python 版本号，例如Python36或Python39。然后，关闭并重新打开命令提示符，或者注销并重新登录您的 Windows 帐户。现在，您应该能够在命令提示符中使用gt命令了。问题需要设置api_key(必填)以及base_url(可选)需要 api_key 的也可以耐心等待，后续我会修改代码中获取 api_key 的方式，可以让大家直接使用具体免费 api_key 的获取方式我还在开发中，后续会更新，敬请期待贡献欢迎对 GPTerminal 进行贡献！请在提交 Pull Request 之前确保您的代码符合项目的质量标准。许可GPTerminal 采用 MIT 许可证。有关详细信息，请参阅LICENSE文件。
Package: gpterminator
GPTerminator :robot: - ChatGPT in the Terminal!GPTerminator provides a convenient way to interact with OpenAI's chat completion and image generation APIs using your command line interface.Features :sparkles::mag: Chat completion:floppy_disk: Save and load chat sessions:bar_chart: File analysis:art: Image generation with Dalle:clipboard: Easy code and text copying using:repeat: Regeneration of responsesGetting Started & Installation :rocket:To use this terminal interface, follow these steps:1) Install GPTerminatorgitclonehttps://github.com/AineeJames/ChatGPTerminatorcdChatGPTerminator
pipinstall.orpipinstallgpterminator2) Set the OPENAI_API_KEY env variable (you may want this in your shell's.rcfile):exportOPENAI_API_KEY=<YOUR_API_KEY>3) Run the following command to start the ChatGPT terminal interface:gpterm4) You can now start chatting. Type a message and press Enter to get a response.5) Type!helpfor a list of commands to useRunning with podman/docker (optional) :package:Build the image and provide theAPIKEYpodmanbuild\--build-argAPIKEY=$(echo$OPENAI_API_KEY)\-tgpterm.Rungptermin the containerpodmanrun-it--rm--namegptermgptermSet an alias for easy accessecho"alias gpterm='podman run -it --rm --name gpterm gpterm'">>~/.bashrcCommands :exclamation:Power up you chat experience with commands!By typing!helpyou can view all the possible commands along with a short description.Please check out thewikifor more detailed help with commands!Configuration :gear:Theconfig.iniconfiguration resides in different locations depending on your OS. In order to find the path, rungptermand then enter!pconf.GPTerminator is configurable and can support multiple configurations. Add the following to yourconfig.ini:[CONFIG_TEMPLATE]ModelName=SystemMessage=Temperature=PresencePenalty=FrequencyPenalty=CommandInitiator=SavePath=CodeTheme=SettingDescriptionDefaultModelNamethis is the model used when chattinggpt-3.5-turboTemperaturebetween 0 and 21PresencePenaltybetween -2 and 20FrequencyPenaltybetween -2 and 20SystemMessagethis is the starting system message sent to the APIYou are a helpful assistant named GPTerminatorCommandInitiatorthis can be set to change the default!structure!SavePaththis changes the location of the save path when loading/saving(default save path)CodeThemethis changes the Pygments theme of code blocksmonokaiNoteMore details on some settings can be foundhereNoteValid color schemes can be foundhereNoteIf you change theCommandInitiator, you will now type<new-command>to execute commands...After saving the config file, rungpterm, then enter!setconfand select which config you wish to use. You can also run the!pconfcommand to view the current config details.Contributing :raised_hands:Current Contributors:We welcome contributions to this project. If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request.Disclaimer :warning:WarningThis program uses the OpenAI API to chat and generate images using DALL·E. It is a good idea to put a usage cap on your billing, just in case something goes wrong!
Package: gpt-fn
GPT-FnGPT-Fn is a lightweight utility library designed to seamlessly integrate AI capabilities into your software applications. Our focus is on providing essential utilities that make it easy to incorporate artificial intelligence into your codebase without unnecessary complexities.FeaturesFunction-like API: With GPT-Fn, you can utilize AI capabilities in your code just like any other function. No need to learn complex AI frameworks or APIs; simply call our functions and harness the power of AI effortlessly.AI Integration: GPT-Fn seamlessly integrates state-of-the-art AI models, allowing you to perform tasks such as natural language processing, image recognition, sentiment analysis, and much more.Flexible Configuration: We provide a range of configurable options to fine-tune the behavior of AI functions according to your specific requirements. Customize the models, parameters, and output formats to suit your application's needs.Well Tested: GPT-Fn comes with a comprehensive suite of test cases, ensuring the reliability and stability of the library. We strive to provide a robust solution that you can trust in your production environments.Open-Source: GPT-Fn is an open-source project, enabling collaboration and contribution from the developer community. Feel free to explore the source code, suggest improvements, and contribute to making GPT-Fn even more powerful.InstallationYou can install GPT-Fn using pip, the Python package manager:pipinstallgpt-fnGetting StartedTo start using GPT-Fn in your project, import the library and call the desired function:fromgpt_fn.completionimportchat_completiongenerated_text=chat_completion([{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"Hello, who are you?"},],)print(generated_text)In the example above, we use thechat_completionfunction to generate response by AI.chat_completionalso raises error on incomplete responses. The implementation ofchat_completionmakes the most common use case easy. You can explore other available functions in the GPT-Fn documentation/testsfor a wide range of AI tasks.ContributingWe welcome contributions from the developer community to help improve GPT-Fn. If you encounter any issues, have ideas for new features, or would like to contribute code, please check out ourcontribution guidelines. We appreciate your support!LicenseGPT-Fn is licensed under theMIT License. Feel free to use, modify, and distribute it in your projects. Refer to the license file for more information.AcknowledgementsWe would like to thank the open-source community for their valuable contributions and the creators of the underlying AI models that power GPT-Fn.ContactIf you have any questions, suggestions, or feedback, please don't hesitate to opena an issue.
Package: gptfuncs
GPT-FuncsAutomatically pass your funcions defined in Python to ChatGPT have it call them back seemlessly.You can do all that in a single line:gptfuncs.add_function_hooks("funcs.py",lambdafuncs:openai_api("Say hi",funcs))Under the hoodgptfuncs.add_function_hooks():Loads a python file specified as the parameter and encodes the function signatures to JSONCalls back the functions dynamically after ChatGPT respondsUse PEP-8 style to document your function signatures (seefuncs.pyfor an example.)Exampledefchat_completion_request(messages,functions=None,model=None):# post request to OpenAI api# ...# Our functions are defined in funcs.py so we just pass that in to gptfuncs.add_function_hooks# and in handles everythingres=gptfuncs.add_function_hooks("funcs.py",lambdafuncs:chat_completion_request(model="gpt-3.5-turbo-0613",messages=[{"role":"user","content":"Sing me a poem about Hackernews."}],functions=funcs))# normal api result after all the functions have been calledprint(res)funcs.py:importosimportsubprocessdefplay_music(audio_data_hex):"""Play music to user.Args:audio_data_hex (string): Hex representation of the raw audio binary data with 44100 sample rate."""bin_data=base64.b64decode(audio_data_hex)file_path="/tmp/a.mp3"withopen(file_path,"wb")asfile:file.write(bin_data)print(f"Binary file saved as:{file_path}")os.system("/usr/bin/afplay "+file_path)defspeak(sentence,spoken_speed=210):"""Convert the sentence to spoken words and speak it to user.Args:sentence (string): English sentence that should be spoken.spoken_speed (number): A value from 100 to 300 determining how fast the sentence is spoken."""subprocess.Popen(['say','-v','Karen','-r',str(spoken_speed),sentence])