- vultr_api/: Python library wrapping Vultr API v2 - 17 resource modules (instances, dns, firewall, vpc, etc.) - Pagination support, error handling - server/: FastAPI REST server - All API endpoints exposed via HTTP - X-API-Key header authentication - Swagger docs at /docs - Podman quadlet config for systemd deployment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
256 B
Python
16 lines
256 B
Python
"""
|
|
Base Resource class
|
|
"""
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from ..client import VultrClient
|
|
|
|
|
|
class BaseResource:
|
|
"""Base class for API resources"""
|
|
|
|
def __init__(self, client: "VultrClient"):
|
|
self.client = client
|