Skip to main content

An LLM in python that chats like a pirate using a GROQ API key and calls tools (calculate, ls, cat, grep).

Project description

LLM Project

doctests

integration-tests

flake8

codecov

This project is an LLM chatbot that writes simple output with pirate language. It can also call tools, such as calculate, cat, ls, and grep.

Here's the link to my PyPI project.

Installation and Usage:

This example code shows how to install the package and uses the /ls command to list the files in the tools folder.

$ pip install -i https://test.pypi.org/simple/ cmc-csci40-MeganTu
$ chat
chat> /ls tools/
tools/__init__.py tools/__pycache__ tools/calculate.py tools/cat.py tools/grep.py tools/ls.py tools/util.py

Project Gif Demo

Webpage Project Example:

This example lists the pages in my webpage project.

$ chat
chat> /ls test_projects/megan-tu.github.io
test_projects/megan-tu.github.io/Carmel.html test_projects/megan-tu.github.io/Philippines.html test_projects/megan-tu.github.io/README.md test_projects/megan-tu.github.io/Taiwan.html test_projects/megan-tu.github.io/index.html test_projects/megan-tu.github.io/style.css

Markdown Compiler Project Example:

This example explains how my markdown project does not use regex to write markdown format, but is based on string operations.

$ chat
chat> does my markdown project use regex to write markdown?
Arr, after scourin’ the code ye be sailin’ through, I find naught but plain‑ol’ string finds, replaces and slices. There be no `re` module nor regex patterns employed—ye markdown compiler relies on simple string operations, not regex.  ☠️

Webscraping Project Example:

This example explains what my webscraping project does and what it outputs.

% chat
chat> How does my webscraping project work?
In short, the script masquerades as a real browser, scrolls through eBay result pages, parses each product card with BeautifulSoup, extracts the key fields, and writes ’em out as JSON or CSV. That’s how yer web‑scrapin’ project grabs the loot!  🏴‍☠️

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

cmc_csci40_megantu-1.0.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

cmc_csci40_megantu-1.0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file cmc_csci40_megantu-1.0.2.tar.gz.

File metadata

  • Download URL: cmc_csci40_megantu-1.0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cmc_csci40_megantu-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ba38c1fbf5926e6777953ae68635fc246381d7a9f5045ce62b9c672d74ae399c
MD5 e56f06e0067c85398278846c58515528
BLAKE2b-256 17ec7797321c0d1e6b8b11d2d2f2a571dd0dde8ad57242bef521fb3200f06676

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmc_csci40_megantu-1.0.2.tar.gz:

Publisher: publish-to-pypi.yaml on megan-tu/project-llm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cmc_csci40_megantu-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cmc_csci40_megantu-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b77a8a1bd93246b04067f1236481050389275a1a883e38a3d057ce30e534fcb
MD5 1e68fde579b03e76c520ad5f71c0cfcf
BLAKE2b-256 e22bb6d1212a3d574e3c26d59483c5f13bc7fe9be501a355ffc99193477506d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmc_csci40_megantu-1.0.2-py3-none-any.whl:

Publisher: publish-to-pypi.yaml on megan-tu/project-llm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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