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.1.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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
729ad5fa17c87c0cdb461a3d451a5061e7d1654a4ade7fd016ddec3df6f381c4
|
|
| MD5 |
86c73297711c52d80dd77f2698bf63a9
|
|
| BLAKE2b-256 |
30f7ed797a95054106865ba952f4796fba8256112d3df4d01cdbb347decf8049
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b68050a88cb8e6b833888d52b417218b3de8a0f80a67e289ecb8b6beeb63537d
|
|
| MD5 |
835dc01d2531477f9e959bf893c91ce7
|
|
| BLAKE2b-256 |
88926d7e632478fb2e7254dc19c1497e20f6f181f7bd06ff1718d84da18eabbd
|