Skip to main content

This is a template python library.

Project description

WYN-Template-Library

Overview

WYN-Template-Library is a Python library that leverages the power of numpy, pandas, matplotlib, and openai to provide robust data analysis and visualization capabilities. This library aims to simplify complex data processing tasks and help users visualize their data effectively.

Features

  • Data Manipulation: Use pandas for easy and efficient data manipulation.
  • Numerical Computations: Leverage numpy for high-performance numerical computations.
  • Data Visualization: Create stunning visualizations with matplotlib.

Installation

To install the WYN-Template-Library library, you can use poetry. First, ensure you have poetry installed. If not, you can install it using pip:

pip install poetry

Then, create a new project and add the necessary dependencies:

poetry new WYN-Template-Library
cd WYNTemplate
poetry add numpy pandas matplotlib

Usage

Here is a simple example of how to use WYN-Template-Library:

# YOUR CODE HERE

# Install
! pip install wyn-template-library

# Inspect
ChatBot

# Grab your API key
from google.colab import userdata
OPENAI_API_KEY = userdata.get('OPENAI_API_KEY')

# Define bot
bot = ChatBot(
    OPENAI_API_KEY=OPENAI_API_KEY,
    PROTOCOL="You are a helpful assistant",
    MODEL="gpt-3.5-turbo"
)

# Try it out!
bot.generate_response("Tell me a joke")
# Sure! Here's a joke for you: Why did the scarecrow win an award? Because he was outstanding in his field!

bot.generate_response("My name is John, what's your name?")
# I'm just a virtual assistant, you can call me Assistant. How can I help you today, John?

bot.generate_response("What questions did I ask you?")
# You asked me to tell you a joke and you also told me your name is John. How can I assist you further, John?

Publishing to PyPI

To publish your library to PyPI, follow these steps:

  1. Configure Poetry: Add your PyPI token to Poetry configuration.

    poetry config pypi-token.pypi pypi-<TOKEN_HERE>
    
  2. Build the Project: Build your project using Poetry.

    poetry build
    
  3. Publish the Project: Publish your project to PyPI.

    poetry publish
    

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or inquiries, please contact [Yiqiao Yin] at [eagle0504@gmail.com].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wyn_template_library-0.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

wyn_template_library-0.1.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page