semvec/pypi-packages huggingface dataset:
langsec 0.0.1
Security framework for LLM-generated SQL queries
Requires Python: >=3.8

[![Version](https://img.shields.io/github/v/release/langsec-ai/langsec)](https://github.com/langsec-ai/langsec/releases)
[![License](https://img.shields.io/github/license/langsec-ai/langsec)](https://img.shields.io/github/license/langsec-ai/langsec)
[![Stars](https://img.shields.io/github/stars/langsec-ai/langsec?style=social)](https://github.com/langsec-ai/langsec/stargazers)


# LangSec: A Security Framework for Text-to-SQL
A security framework for validating and securing LLM-generated SQL queries. LangSec helps prevent SQL injection, unauthorized access, and other security vulnerabilities when working with language models that generate SQL.

![Text To SQL Abuse](https://raw.githubusercontent.com/langsec-ai/langsec/main/assets/langsecgif.gif)

Demonstration of making a malicious query using [Vanna](https://github.com/vanna-ai/vanna).
LangSec helps prevent such attacks by validating generated queries against a security schema.

![LangSec](https://raw.githubusercontent.com/langsec-ai/langsec/main/assets/image.png)

## Installation

```bash
pip install langsec
```

## Documentation
For a detailed guide on how to use LangSec, please refer to the [documentation](https://docs.lang-sec.com).

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

APACHE 2.0 © 2024 LangSec

## Support

For issues and feature requests, please create an issue on GitHub or contact dev@lang-sec.com.
ClassHoster 0.1.5
Host ANY Class
Requires Python: >=3.8

# Host ANY Class!

## Description
Long READMEs are scary, so I'll keep this short. There is more info in the docs/README.md.
This package is meant to take YOUR class, and make it very easy to use. Do this in one terminal.

    git clone https://github.com/Repo-Factory/ClassHoster && cd ClassHoster
    install.sh && ROBOT.py

This will host the classes provided in ROBOT_SYSTEMS. 

In the second terminal

    test_class_hoster.py

You'll see some output in the 2nd terminal that will help understand why this system is helpful.

You can see generated stubs here for example class I provided.

    code ~/ROBOT_LIB/ROBOT_API.py