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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llmcodxtracter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5845364e85ac9bf667efdf89b763929f18b73815b9dd4cefad0a7eb7a4b91743
MD5 ed189dc329063bc8d6bdf0620d5c76c1
BLAKE2b-256 7ceec9d079a9a7fb9a760075331bf2a641b35617c229dd5dcad1d2f897213c90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llmcodxtracter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3005099fcfb9e4e90b361121cafef8230db1e29d5b429433ecd250419919fbef
MD5 1fca39bfa9ba7ba4ce147a24d2049e14
BLAKE2b-256 46163e353eb4f5ba84a814bf188b2a457621f5cfc72c4bbdfef6e125ad1c76f9

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