Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oogway-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oogway-py

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

Python SDK for Oogway AI

PyPI Supported Versions MIT licensed

oogway_py is the official Python SDK for Oogway AI that requires no binaries. Quickly allow users to gain knowledge from Master Oogway in a few lines of code.

Installation

The oogway_py SDK can be installed from PyPI via pip:

pip install oogway_py

Quickstart

  1. Install oogway_py

  2. Export your OPENAI_API_KEY in your terminal

  3. Add the following code to your application to add Oogway AI to your app:

    # import oogway ai python sdk
    import asyncio
    import sys
    import oogway_py as oogway
    
    
    ai = oogway.Oogway()
    
    # change model name from python
    
    ai.model_name = "gpt-4-0125-preview"
    
    async def talk_to_oogway(question: str):
        print(f"\n> You : {question}");
        while True:
            print("\n> Oogway : ", end="");
            # python async generator for chunk streaming
            async for chunk in ai.ask(question):
                sys.stdout.write(chunk)
                sys.stdout.flush()
            question = input("\n\n> You: ")
    
    

That's it! Your application should now be able to allow users to converse with Master Oogway 🐢.

Note You can run the example above from the demo file.

Run python python/oogway_py/demo.py or checkout the Jupyter Notebook Example

Demo

https://github.com/cs50victor/oogway_py/assets/52110451/aa762411-a8a9-4e50-a746-8374f8455700

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc