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

Publish Python distribution to PyPI

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.7.tar.gz (6.8 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.7-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmc_csci40_megantu-1.0.7.tar.gz
  • Upload date:
  • Size: 6.8 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.7.tar.gz
Algorithm Hash digest
SHA256 739e6a3bdb039efb1b1185133294f5bc5ae5d6fb8a2e4e91e3d63c4745de5ac5
MD5 918047c107418ea374c644c1f015365d
BLAKE2b-256 bea4a375c07476d4f9abd60d58843221f38e974731092f99d61e07275cccf494

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmc_csci40_megantu-1.0.7.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.7-py3-none-any.whl.

File metadata

File hashes

Hashes for cmc_csci40_megantu-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 428a494914f680cba72a12fc08cee8548c9bb691d66a8aa7fc1a8ea8bb141b2c
MD5 14834b44fdb566e34f472c7f79684391
BLAKE2b-256 4640381696c7ece17f249971da55041f08bcd8bc21f06744cd9543e567e40212

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmc_csci40_megantu-1.0.7-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