Skip to main content

Bring vibes into your code: LLM-powered if-statements and loops!

Project description

VibeChecks

Table of Contents

Introduction

VibeChecks is a lightweight python package that allows users to use natural language (LLMs) as part of their code logic. For example, VibeChecks can be used to check if/loop statements as well as provide responses for functions that are described but not implemented. It supports OpenAI and Google Gemini client currently and asimple example illustrating how it can be used can be seen below:

from google import genai
from vibechecks import VibeCheck

# initialize client
client = genai.Client(api_key=GEMINI_API_KEY)

# wrap it in VibeCheck
vc = VibeCheck(client, model="gemini-2.0-flash-lite")

# the example below asks user for a dog breed and checks if it is valid
user_input = input("Enter a dog breed:")
if vc(f"{user_input} is a valid dog breed"):
    print(f"{user_input} is a valid dog breed!")
else:
    print(f"{user_input} is not a valid dog breed!")

VibeChecks is published on pypi and can be easily installed with:

python3 -m pip install vibechecks

Details on the usage of the package and available APIs can be found on the wiki page.

Features

  • Natural Language Conditions: Use natural language to check for conditions, making your code more readable and intuitive.
  • Multi-provider Support: Seamlessly switch between different LLM providers. VibeChecks currently supports OpenAI and Google Gemini.
  • Extensible: The modular design allows for easy extension to other LLM providers in the future.
  • Custom Exceptions: Provides custom exceptions for better error handling and debugging.

Technologies

Technologies used by VibeChecks are as below:

Done with:

Python

Project Repository
https://github.com/vibe-engineers/vibechecks

Team

Contributing

If you are looking to contribute to the project, you may find the Developer Guide useful.

In general, the forking workflow is encouraged and you may open a pull request with clear descriptions on the changes and what they are intended to do (enhancement, bug fixes etc). Alternatively, you may simply raise bugs or suggestions by opening an issue or raising it up on discord.

Note: Templates have been created for pull requests and issues to guide you in the process.

Others

For any questions regarding the implementation of the project, you may also reach out on discord.

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

vibechecks-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibechecks-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file vibechecks-1.0.0.tar.gz.

File metadata

  • Download URL: vibechecks-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vibechecks-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1483aabca4ccc8bc5a4abdc1f8d1d0d06db6ac6675ec152e00b1ebc356f9afbf
MD5 9319e7f5146653e7bfda6fed51a017fe
BLAKE2b-256 f96a9ffc8623fadb2ac2fc405f72a782664129a27616eaf163540138f30bd47f

See more details on using hashes here.

File details

Details for the file vibechecks-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vibechecks-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vibechecks-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b077e65b6d20307079756a1779ec2a5467a994e90a7843e629f5a32fcc90fe
MD5 c6878b7ad18df2148569daa7474a4807
BLAKE2b-256 06f1ffa10b0de0e3dbf0392ea488ddfe04c6cd725fddf2ccc063a78f5fee8c13

See more details on using hashes here.

Supported by

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