Metadata-Version: 2.4
Name: realsense-applesilicon
Version: 0.1.0
Summary: Python wrapper for Intel RealSense cameras on Apple Silicon
Author: James Ball
Author-email: James Ball <James@istarirobotics.com>
License-Expression: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<2.0.0,>=1.19.0
Requires-Dist: opencv-python<5.0.0,>=4.5.0
Requires-Dist: cython<1.0.0,>=0.29.0
Provides-Extra: test
Requires-Dist: pytest<7.0.0,>=6.0.0; extra == "test"
Requires-Dist: pytest-cov<3.0.0,>=2.10.0; extra == "test"
Provides-Extra: dev
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: isort>=5.0.0; extra == "dev"
Requires-Dist: flake8>=3.9.0; extra == "dev"
Requires-Dist: mypy>=0.900; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=4.0.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
Provides-Extra: all
Requires-Dist: realsense-applesilicon[dev,docs,test]; extra == "all"
Dynamic: author
Dynamic: license-file
Dynamic: requires-python

# realsense-applesilicon

Python wrapper for Intel RealSense cameras on Apple Silicon

## Installation

### System Requirements
- macOS running on Apple Silicon (M1/M2)
- Homebrew package manager
- Python 3.8 or higher

### Installing System Dependencies
```bash
# Install librealsense2 (required)
brew install librealsense2
```

### Installing the Python Package
```bash
# Basic installation
pip install realsense-applesilicon

# With test dependencies
pip install realsense-applesilicon[test]

# With development tools
pip install realsense-applesilicon[dev]

# With documentation tools
pip install realsense-applesilicon[docs]

# With all optional dependencies
pip install realsense-applesilicon[all]
```

## Dependencies

### Core Dependencies
- Python 3.8+
- librealsense2 (system library)
- numpy>=1.19.0,<2.0.0
- opencv-python>=4.5.0,<5.0.0
- cython>=0.29.0,<1.0.0

### Optional Dependencies

#### Testing (install with `pip install realsense-applesilicon[test]`)
- pytest>=6.0.0,<7.0.0
- pytest-cov>=2.10.0,<3.0.0

#### Development (install with `pip install realsense-applesilicon[dev]`)
- black>=22.0.0 (code formatting)
- isort>=5.0.0 (import sorting)
- flake8>=3.9.0 (code linting)
- mypy>=0.900 (type checking)

#### Documentation (install with `pip install realsense-applesilicon[docs]`)
- sphinx>=4.0.0
- sphinx-rtd-theme>=1.0.0

## Usage

```python
from realsense.wrapper import PyRealSense

# Initialize the camera
rs = PyRealSense(width=640, height=480, framerate=30)

# Start the camera
rs.start()

try:
    # Get frames
    frames = rs.get_frames()
    depth_frame = frames.get('depth')
    color_frame = frames.get('color')
    ir_frame = frames.get('infrared')
    
    # Process frames...
    
finally:
    # Stop the camera
    rs.stop()
```

## Development

### Setting up development environment
```bash
# Clone the repository
git clone https://github.com/yourusername/realsense-applesilicon.git
cd realsense-applesilicon

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate

# Install development dependencies
pip install -e ".[dev,test,docs]"
```

### Running tests
```bash
pytest tests/
```

### Code formatting
```bash
# Format code
black .

# Sort imports
isort .

# Run linter
flake8 .
```

## License

MIT License 
