Skip to main content

A Python library for extracting code snippets using LLMs

Project description

Lasso

PyPI License

Lasso is a Python package designed to extract code snippets from plain text using Large Language Models (LLMs).

Installation

Install via pip:

pip install lasso

Usage

python

from lasso import extractor

text = "Here's some Python code: print('Hello World')"
code_snippet = extractor.extract_code(text)
print(code_snippet)

Features

  • Extracts code snippets from plain text.
  • Supports multiple programming languages.
  • Easily integrates into other LLM-based projects.

Contributing

License

This project is licensed under the MIT License.

Next Steps

  1. Make sure src/lasso/__init__.py exists.
  2. Create pyproject.toml (or use setup.py if preferred).
  3. Build and upload to PyPI using twine.

Let me know if you need help with any step! 🚀

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

llmcodxtracter-0.2.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

llmcodxtracter-0.2.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file llmcodxtracter-0.2.3.tar.gz.

File metadata

  • Download URL: llmcodxtracter-0.2.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for llmcodxtracter-0.2.3.tar.gz
Algorithm Hash digest
SHA256 28a88fb0380e4a68813c4ea9e7b8a0e63115dd094cc36029a5fc321194bad863
MD5 5bfb38920647c38faf680fceb052090d
BLAKE2b-256 7031f2ee5d85eadcd19ee5d4b63bdd445ca8919429e482bd0df9d2d6ba0c45d1

See more details on using hashes here.

File details

Details for the file llmcodxtracter-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: llmcodxtracter-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for llmcodxtracter-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c90d92473ef0f0fe8a1bd19d1ffcbcea67c5c2621b2ef59ed5423eb623bec796
MD5 e13376d5d78daa57d4c809c237294775
BLAKE2b-256 7e2e635a12a6152cbcea5489bf9db49e6656728c9d33ccb15dc4c06d30223471

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