semvec/pypi-packages huggingface dataset:
sms-spam-detection 0.1.6
A Python package for SMS spam detection.

# SMS Spam Detection
This project is an SMS Spam Detection application built using Flask, Word2Vec, and Extra Trees Classifier. The application provides an API endpoint to predict whether a given SMS message is spam or not.

## Features

- Preprocesses text data by tokenizing, removing punctuation, and filtering out stop words.
- Generates message embeddings using a pre-trained Word2Vec model.
- Predicts whether a message is spam or not using an Extra Trees Classifier model.
- Provides a web interface for users to input messages and get predictions.

## Installation

1. Clone the repository:
    ```sh
    git clone https://github.com/amintaheri23/sms-spam-detection.git
    cd sms-spam-detection
    ```

2. Create and activate a virtual environment:
    ```sh
    python -m venv venv
    source venv/bin/activate
    ```

3. Install the required packages:
    ```sh
    pip install -r requirements.txt
    ```

4. Download NLTK data:
    ```sh
    python -m nltk.downloader punkt stopwords
    ```

## Usage
you can use the `predict` function directly in your code:
    ```python
    from sms_spam_detection import predict

    message = "Congratulations! You've won a free ticket to the Bahamas!"
    prediction = predict(message)
    print(prediction)
    ```
## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgements

- [Flask](https://flask.palletsprojects.com/)
- [Gensim](https://radimrehurek.com/gensim/)
- [scikit-learn](https://scikit-learn.org/)
- [NLTK](https://www.nltk.org/)
- [Waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/)

## Author

Created by Amin Taheri - [GitHub](https://github.com/amintaheri23)
as1170 0.1.1
Library to control AS1170 LED driver via I2C on Raspberry Pi
Requires Python: >=3.6

# AS1170 Python Library

## Description
This library allows control of the **AS1170** driver via **I2C** on **Raspberry Pi**, enabling LED management with simple commands like `led1.on()` and `led1.off()`.

## Installation
Since Raspberry Pi OS has stricter package management, it is recommended to install the library in a virtual environment to avoid conflicts.

### 1 Install Python Virtual Environment
If `venv` is not installed, run:
```sh
sudo apt install python3-venv
```

### 2 Create a Virtual Environment
Inside your project folder:
```sh
python3 -m venv venv
```

### 3 Activate the Virtual Environment
```sh
source venv/bin/activate
```

### 4 Install the Library
```sh
pip install as1170
```

### 5 Using the Library
```python
from as1170.driver import led

led.on()
time.sleep(1)
led.off()
```

### 6 Deactivate the Virtual Environment
```sh
deactivate
```

## Uninstallation
To remove the library from your virtual environment:
```sh
pip uninstall as1170
```
If you want to completely remove the virtual environment:
```sh
rm -rf venv
```