|
| 1 | +# API Reference |
| 2 | + |
| 3 | +This section provides comprehensive API documentation for all DAPI modules and classes, automatically generated from docstrings. |
| 4 | + |
| 5 | +## 📋 Overview |
| 6 | + |
| 7 | +The DAPI package is organized into several core modules: |
| 8 | + |
| 9 | +### **Core Client** |
| 10 | +- **[DSClient](client.md)** - Main client interface for all DAPI functionality |
| 11 | + |
| 12 | +### **Service Modules** |
| 13 | +- **[Jobs](jobs.md)** - Job submission, monitoring, and management |
| 14 | +- **[Files](files.md)** - File operations and path translation |
| 15 | +- **[Apps](apps.md)** - Application discovery and details |
| 16 | +- **[Systems](systems.md)** - System information and queue management |
| 17 | +- **[Auth](auth.md)** - Authentication and credential management |
| 18 | + |
| 19 | +### **Database Access** |
| 20 | +- **[Database](database.md)** - Database connections and query execution |
| 21 | + |
| 22 | +### **Utilities** |
| 23 | +- **[Exceptions](exceptions.md)** - Custom exception classes |
| 24 | + |
| 25 | +## 🚀 Quick Navigation |
| 26 | + |
| 27 | +### **Getting Started** |
| 28 | +```python |
| 29 | +from dapi import DSClient |
| 30 | + |
| 31 | +# Initialize client |
| 32 | +client = DSClient() |
| 33 | + |
| 34 | +# Access different services |
| 35 | +client.jobs.generate_request(...) |
| 36 | +client.files.upload(...) |
| 37 | +client.db.ngl.read_sql(...) |
| 38 | +``` |
| 39 | + |
| 40 | +### **Common Operations** |
| 41 | +- **Submit Jobs**: `client.jobs.submit_request(job_dict)` |
| 42 | +- **Monitor Jobs**: `submitted_job.monitor()` |
| 43 | +- **File Upload**: `client.files.upload(local_path, remote_uri)` |
| 44 | +- **File Download**: `client.files.download(remote_uri, local_path)` |
| 45 | +- **Database Query**: `client.db.ngl.read_sql("SELECT * FROM table")` |
| 46 | + |
| 47 | +### **Advanced Features** |
| 48 | +- **Archive Management**: Custom job result organization |
| 49 | +- **Path Translation**: Seamless local/cloud path conversion |
| 50 | +- **Parametric Studies**: Batch job submission and monitoring |
| 51 | +- **Error Handling**: Comprehensive exception hierarchy |
| 52 | + |
| 53 | +## 📖 Documentation Conventions |
| 54 | + |
| 55 | +### **Parameter Types** |
| 56 | +- `Optional[Type]` - Parameter can be `None` |
| 57 | +- `Union[Type1, Type2]` - Parameter accepts multiple types |
| 58 | +- `List[Type]` - List containing elements of specified type |
| 59 | +- `Dict[str, Any]` - Dictionary with string keys and any values |
| 60 | + |
| 61 | +### **Return Types** |
| 62 | +- Methods clearly document return types and formats |
| 63 | +- Async methods return appropriate async types |
| 64 | +- Error conditions are documented in `Raises` sections |
| 65 | + |
| 66 | +### **Examples** |
| 67 | +Each method includes practical usage examples showing: |
| 68 | +- Basic usage patterns |
| 69 | +- Parameter combinations |
| 70 | +- Error handling |
| 71 | +- Integration with other DAPI components |
| 72 | + |
| 73 | +## 🔗 Cross-References |
| 74 | + |
| 75 | +The API documentation includes extensive cross-references: |
| 76 | +- **Method signatures** link to parameter and return types |
| 77 | +- **Related methods** are referenced in descriptions |
| 78 | +- **Example workflows** demonstrate method integration |
| 79 | +- **Error handling** shows exception hierarchies |
| 80 | + |
| 81 | +--- |
| 82 | + |
| 83 | +**Browse the API documentation using the navigation menu to explore specific modules and their functionality.** |
0 commit comments