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.1.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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llmcodxtracter-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 729ad5fa17c87c0cdb461a3d451a5061e7d1654a4ade7fd016ddec3df6f381c4
MD5 86c73297711c52d80dd77f2698bf63a9
BLAKE2b-256 30f7ed797a95054106865ba952f4796fba8256112d3df4d01cdbb347decf8049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llmcodxtracter-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b68050a88cb8e6b833888d52b417218b3de8a0f80a67e289ecb8b6beeb63537d
MD5 835dc01d2531477f9e959bf893c91ce7
BLAKE2b-256 88926d7e632478fb2e7254dc19c1497e20f6f181f7bd06ff1718d84da18eabbd

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