A Python library for extracting code snippets using LLMs
Project description
Lasso
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
- Fork the repository.
- Clone it: git clone https://github.com/DarthMuzammil/Lasso.git
- Install dependencies: pip install -r requirements.txt
- Submit a pull request!
License
This project is licensed under the MIT License.
Next Steps
- Make sure
src/lasso/__init__.pyexists. - Create
pyproject.toml(or usesetup.pyif preferred). - 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5845364e85ac9bf667efdf89b763929f18b73815b9dd4cefad0a7eb7a4b91743
|
|
| MD5 |
ed189dc329063bc8d6bdf0620d5c76c1
|
|
| BLAKE2b-256 |
7ceec9d079a9a7fb9a760075331bf2a641b35617c229dd5dcad1d2f897213c90
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3005099fcfb9e4e90b361121cafef8230db1e29d5b429433ecd250419919fbef
|
|
| MD5 |
1fca39bfa9ba7ba4ce147a24d2049e14
|
|
| BLAKE2b-256 |
46163e353eb4f5ba84a814bf188b2a457621f5cfc72c4bbdfef6e125ad1c76f9
|