Skip to content
/ sppq Public

πŸ› οΈ A versatile Python package offering a set of utilities to enhance productivity and automate tasks. From creating large text displays to integrating with GPT for natural language processing, Sppq simplifies various operations through a simple Python interface.

Notifications You must be signed in to change notification settings

Sppqq/sppq

Repository files navigation

πŸš€ Sppq

πŸ‡·πŸ‡Ί Русская вСрсия

πŸ› οΈ A versatile Python package offering a set of utilities to enhance productivity and automate tasks. From creating large text displays to integrating with GPT for natural language processing, Sppq simplifies various operations through a simple Python interface.

πŸ“‘ Table of Contents

πŸ“₯ Installation

πŸ“¦ From PyPI (Recommended)

pip install sppq

πŸ”„ From GitHub Repository

pip install git+https://github.com/Sppqq/sppq.git@main

To update to the latest version:

pip install -U git+https://github.com/Sppqq/sppq.git@main

πŸ’Ύ Local Installation

  1. Download the package
  2. Unzip the package
  3. Open the package folder in the console
  4. Install using pip with the .whl file:
pip install dist/sppq-**VERSION**-py3-none-any.whl

ℹ️ Replace **VERSION** with the actual version number of Sppq you downloaded.

πŸ”¨ Usage

After installing the Sppq package, you can import it into your Python code to access its functions:

from sppq import *

βš™οΈ Functions

Sppq provides the following powerful functions:

πŸ“ Text and Console Operations

  • bigtext(text): ✨ Uses ASCII text for output
  • cl(): 🧹 Clears the console
  • printt(text, speed): ⌨️ Slow printing to console

πŸ€– AI and Content Processing

  • retell(url): πŸ“š Summarizes or retells content from a given URL
  • ask_gpt(prompt): πŸ€” Interacts with GPT for responses

πŸ“Š Utilities

  • percent(one, two): πŸ’― Calculates percentage between numbers
  • pbar(): πŸ“Š Initializes a progress bar
  • pbarupdate(pb): πŸ”„ Updates the progress bar
  • color2rgb('color'): 🎨 Converts color to RGB

πŸ”Œ Integration

  • send_webhook(...): πŸ“‘ Sends messages through Discord webhook
    send_webhook(
        webhook_url,      # Discord webhook URL
        description,      # Message description
        embed,           # Embed content
        file,            # File attachment
        title,           # Message title
        color,           # Embed color
        author_name,     # Author name
        author_url,      # Author URL
        author_icon_url, # Author icon
        footer_text,     # Footer text
        footer_icon_url, # Footer icon
        thumbnail_url,   # Thumbnail
        username,        # Bot username
        avatar_url,      # Bot avatar
        content          # Message content
    )

πŸ’‘ Examples

Here are some examples to get you started with Sppq:

πŸ”€ Big Text Display

from sppq import *
print(bigtext('Hello world!'))

⌨️ Slow Printing

from sppq import *
printt('Hello world!')

πŸ€– GPT Interaction

from sppq import *
print(ask_gpt('How are you?'))

πŸ“Š Progress Bar

from sppq import *
import time
pb = pbar(100)
for i in range(100):
    pbarupdate(pb)
    time.sleep(1)

🎨 Color Conversion

from sppq import *
printt(color2rgb('red'))

πŸ“‘ Discord Webhook

from sppq import *
printt(text=send_webhook('https://discord.com/api/webhooks/...'))

About

πŸ› οΈ A versatile Python package offering a set of utilities to enhance productivity and automate tasks. From creating large text displays to integrating with GPT for natural language processing, Sppq simplifies various operations through a simple Python interface.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages