| name | api-integration |
| version | 1.0.0 |
| category | data |
| description | Integrate offshore engineering software APIs with mock testing for OrcaFlex, AQWA, and WAMIT |
| type | reference |
| capabilities | [] |
| requires | [] |
| tags | [] |
Api Integration
When to Use This Skill
Use this skill when you need to:
- Integrate with OrcaFlex Python API
- Integrate with ANSYS AQWA or WAMIT
- Create mock APIs for testing without software licenses
- Build automation workflows for marine analysis software
- Develop robust error handling for API calls
- Implement batch processing with external software APIs
- Create abstraction layers over multiple analysis tools
Core Knowledge Areas
1. OrcaFlex API Integration
Working with OrcaFlex Python API:
import os
from pathlib import Path
from typing import Optional, Dict, List, Any
from dataclasses import dataclass
from abc import ABC, abstractmethod
*See sub-skills for full details.*
Creating abstraction layer for multiple tools:
```python
class MarineAnalysisAPI(ABC):
"""Abstract base class for marine analysis software APIs."""
@abstractmethod
def create_model(self, config: dict) -> Any:
"""Create new analysis model."""
pass
*See sub-skills for full details.*
Testing without software licenses:
```python
import pytest
from unittest.mock import Mock, patch, MagicMock
from pathlib import Path
class TestOrcaFlexIntegration:
"""Test suite for OrcaFlex integration using mocks."""
*See sub-skills for full details.*
Robust error handling for API calls:
```python
import time
from functools import wraps
typing , ,
(