Metadata-Version: 2.1
Name: localaws
Version: 0.1.1
Summary: Run local Python scripts with AWS profiles - perfect for local testing with different AWS environments
Home-page: https://github.com/yourusername/localaws
Author-email: Sourav Padhi <ssupsourav@gmail.com>
License: MIT License
        
        Copyright (c) 2024
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: boto3>=1.26.0

# localaws

Run local Python scripts with different AWS profiles - perfect for local testing and development.

## Installation

```bash
pip install localaws
```

## Usage

Basic usage:
```bash
localaws script.py -p dev-profile
```

Full options:
```bash
localaws script.py --profile dev-profile --region us-west-2 --verbose
```

Short options:
```bash
localaws script.py -p dev-profile -r us-west-2 -v
```

## Features

- 🚀 Quick switch between AWS profiles for local testing
- ✅ AWS profile validation before execution
- 🌎 AWS region support
- 📦 Proper Python path handling
- 🔍 Verbose logging option
- ❌ Clean error handling with helpful messages
- 🔄 Cross-platform compatibility

## Common Use Cases

1. Testing AWS Lambda functions locally with different profiles:
```bash
localaws lambda_function.py -p test-profile
```

2. Running scripts against different AWS environments:
```bash
localaws deploy_script.py -p staging-profile
localaws deploy_script.py -p production-profile
```

3. Local development with different AWS accounts:
```bash
localaws dev_script.py -p personal-aws -r us-east-1
```

## Requirements

- Python 3.7+
- boto3
- click

## Development

Clone and install in development mode:
```bash
git clone https://github.com/heysouravv/localaws.git
cd localaws
pip install -e .
```

Run tests:
```bash
pytest tests/
```

## License

MIT License - See LICENSE file for details
