semvec/pypi-packages huggingface dataset:
restmachine-aws 0.1.1
AWS Lambda adapter for RestMachine framework
License: MIT
Requires Python: >=3.9
Keywords: rest, api, aws, lambda, api-gateway, serverless

# RestMachine AWS Adapter

AWS Lambda adapter for RestMachine framework.

## Installation

```bash
pip install restmachine-aws
```

For development:

```bash
# From monorepo root
pip install -e packages/restmachine[dev]
pip install -e packages/restmachine-aws[dev]
```

## Usage

```python
from restmachine import RestApplication
from restmachine_aws import AwsApiGatewayAdapter

app = RestApplication()

@app.get("/hello")
def hello():
    return {"message": "Hello from AWS Lambda!"}

# Create Lambda handler
adapter = AwsApiGatewayAdapter(app)

def lambda_handler(event, context):
    return adapter.handle_event(event, context)
```

## Features

- AWS API Gateway Lambda proxy integration support
- Automatic conversion between API Gateway events and RestMachine requests
- Base64 encoding/decoding for binary content
- Query parameters, path parameters, and headers support
- Full request context available

## Testing

```bash
pytest packages/restmachine-aws/tests/
```

## License

MIT
ai-data-scrubber 0.1.1
A lightweight tool for removing personal data from text before uploading to LLMs
License: MIT
Requires Python: >=3.10
Keywords: privacy, data-cleaning, pii, llm, spacy, anonymization, text-processing

# AI Data Scrubber

The AI Data Scrubber is a lightweight privacy-focused tool designed to remove personal information from text documents before uploading them to Large Language Models (LLMs). You can use it to clean sensitive documents like resumes or contracts. It's not guaranteed to remove everything, so you should still check before you upload your file to a LLM.

It uses a mixture of regular expressions and named entity recognition models from [spaCy](https://spacy.io/). It's less accurate than asking a LLM to remove PII - but then you don't need to either run a LLM on your own machine, or upload your document to a LLM.

## What It Does

The AI Data Scrubber removes personal information including:
- Names
- Email addresses
- Phone numbers
- Street addresses & ZIP codes
- URLs
- License plates

Currently, only US formats are supported.

You can run it via a command line interface or you can import it into your Python script.

## Quick Start

```bash
# Install using pip
pip install ai-data-scrubber

# Download required language model (~560MB)
python -m spacy download en_core_web_lg

# Clean your file
ai-data-scrubber your-file.txt
```

## Usage

**Command Line:**
```bash
# Auto-generates an output file with _scrubbed suffix
ai-data-scrubber input.txt

# Or you can specify the output file with the -o flag
ai-data-scrubber input.txt -o output.txt
```

**Python:**
```python
from ai_data_scrubber import scrub_text, scrub_file

# Scrub text directly
cleaned = scrub_text("Your text with personal information here")

# Or scrub a file
scrub_file("input.txt", "output.txt")
```

## Example

**Original text:**
```
John Smith
123 Main Street, Apt 4B
New York, NY 10001
Email: john.smith@example.com
Phone: (555) 123-4567
```

**Cleaned text:**
```
[NAME]
[ADDRESS], [UNIT]
New York, NY [ZIP_CODE]
Email: [EMAIL]
Phone: [PHONE]
```

## Documentation

You can find further documentation in the `docs` folder: 

- [Installation Guide](docs/INSTALLATION.md) - Detailed installation including from source
- [Performance Testing](docs/TESTING.md) - How to run a testing script with 20 sample resumes


## License

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

## Contributing

Contributions welcome! Feel free to submit a Pull Request.