Metadata-Version: 2.4
Name: splitsmart-aws
Version: 0.1.0
Summary: Custom OOP wrappers for AWS services used in the SplitSmart application.
Author-email: Splitsmart Developer <developer@splitsmart.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: boto3>=1.26.0

# SplitSmart AWS Library

This is a custom OOP wrapper for AWS services, extracted from the SplitSmart project. It simplifies interactions with S3, Textract, SNS, Lambda, DynamoDB, and CloudWatch.

## Installation

```bash
pip install splitsmart-aws
```

## Usage

### S3 Service

```python
from splitsmart_aws import S3Service

s3 = S3Service(
    region_name='us-east-1',
    access_key='YOUR_KEY',
    secret_key='YOUR_SECRET',
    bucket_name='your-bucket'
)

result = s3.upload_receipt(open('receipt.jpg', 'rb'), user_id=1, group_id=10)
print(result['url'])
```

### Textract OCR

```python
from splitsmart_aws import TextractService

textract = TextractService(region_name='us-east-1', ...)
ocr_data = textract.extract_receipt('path/to/receipt.jpg')
print(ocr_data['data']['total_amount'])
```

### CloudWatch Logging

```python
from splitsmart_aws import CloudWatchLogger

cw = CloudWatchLogger(log_group='/myapp/logs', log_stream='server-1')
cw.info('user_login', user='john_doe', details={'ip': '1.2.3.4'})
```

## License

MIT
