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.2.3.tar.gz
(4.1 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a88fb0380e4a68813c4ea9e7b8a0e63115dd094cc36029a5fc321194bad863
|
|
| MD5 |
5bfb38920647c38faf680fceb052090d
|
|
| BLAKE2b-256 |
7031f2ee5d85eadcd19ee5d4b63bdd445ca8919429e482bd0df9d2d6ba0c45d1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c90d92473ef0f0fe8a1bd19d1ffcbcea67c5c2621b2ef59ed5423eb623bec796
|
|
| MD5 |
e13376d5d78daa57d4c809c237294775
|
|
| BLAKE2b-256 |
7e2e635a12a6152cbcea5489bf9db49e6656728c9d33ccb15dc4c06d30223471
|