Initial commit: Vultr API v2 Python wrapper with FastAPI server
- 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>
This commit is contained in:
15
vultr_api/resources/base.py
Normal file
15
vultr_api/resources/base.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
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
|
||||
Reference in New Issue
Block a user