Put gremllms in your code. They are quite helpful.
Project description
gremllm
A slight upgrade to the Gremlins in your code, we hereby present GREMLLM. This utility class can be used for a variety of purposes. Uhm. Also please don't use this and if you do please tell me because WOW. Or maybe don't tell me. Or do.
Installation
pip install gremllm
Usage
import gremllm
# Be sure to tell your gremllm what sort of thing it is
counter = gremllm.new('counter')
counter.value = 5
counter.increment()
print(counter.value) # 6?
print(counter.to_roman_numerals()) # VI?
Every method call and attribute access goes through a gremllm to decide what code to execute.
Configuration
Set OPENAI_API_KEY in environment or .env file.
Examples
Basic counter (see example/counter.py):
counter = gremllm.new('counter')
counter.value = 0
counter.increment()
counter.increment(5)
counter.add_seventeen()
print(counter.current_value)
print(counter.value_in_hex)
counter.reset()
Shopping cart (see example/cart.py):
# Remind me to not shop at your store
cart = gremllm.new('shopping_cart')
cart.add_item('apple', 1.50)
cart.add_item('banana', 0.75)
total = cart.calculate_total()
print(f"Cart contents: {cart.contents_as_json()}")
print(f"Cart total: {total}")
cart.clear()
Other notes
OMG THIS ACTUALLY WORKS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gremllm-0.1.0.tar.gz.
File metadata
- Download URL: gremllm-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc1068f0124564c77be8e1a7402289148cc638cf9d40032011fc6b328a6c596b
|
|
| MD5 |
c8c5e7c31e2660862b137200cfaa5888
|
|
| BLAKE2b-256 |
5dc122a0b3431230b1263abff1a6b8ea430dbbe21ea2c731e391b1fcaac9834e
|
File details
Details for the file gremllm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gremllm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f0120df4f5bd5a181d4c53a375295cd68e17f014cc8dfb8521b911ab668dd17
|
|
| MD5 |
01188fe564644655111cff758610679d
|
|
| BLAKE2b-256 |
78ac9fc6ec8474ae8a111e2b0caed3512ea45c3890131569699178d04d208063
|