# Installation Options for alexa-api

## Option 1: Install from Local Path (Recommended for Development)

In your other project's virtual environment:

```bash
pip install /path/to/alexa_api
```

Or using an absolute path:
```bash
pip install /Users/srijan/Documents/ai-caring/alexa_api
```

For editable mode (changes reflect immediately):
```bash
pip install -e /Users/srijan/Documents/ai-caring/alexa_api
```

## Option 2: Build and Install from Wheel

1. Build the distribution:
```bash
cd /Users/srijan/Documents/ai-caring/alexa_api
python -m build
```

This creates `dist/` folder with `.whl` and `.tar.gz` files.

2. Install in your other project:
```bash
pip install /path/to/alexa_api/dist/alexa_api-1.0.5-py3-none-any.whl
```

## Option 3: Install from Git Repository

If you push this to GitHub/GitLab:

```bash
pip install git+https://github.com/yourusername/alexa_api.git
```

For a specific branch or tag:
```bash
pip install git+https://github.com/yourusername/alexa_api.git@main
```

## Option 4: Publish to PyPI (For Public Distribution)

1. Build the package:
```bash
python -m build
```

2. Install twine:
```bash
pip install twine
```

3. Upload to PyPI:
```bash
twine upload dist/*
```

Then install from PyPI:
```bash
pip install alexa-api
```

## Usage in Other Projects

Once installed, use it like:

```python
import alexa_api

# Get device list
devices = alexa_api.get_device_list(refresh_token)

# Execute command
status, response = alexa_api.execute_command(
    command_type="speak",
    command_message="Hello",
    refresh_token=refresh_token,
    device="Your Device"
)
```

