mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 22:50:18 +00:00
13 lines
438 B
Python
13 lines
438 B
Python
from .http_client import Neon_API_V2
|
|
from .resources import APIKeyResource, UserResource, ProjectResource, DatabaseResource
|
|
|
|
|
|
class NeonClient:
|
|
def __init__(self, api_key: str, **kwargs):
|
|
self.api = Neon_API_V2(api_key, **kwargs)
|
|
|
|
self.api_keys = APIKeyResource(self.api)
|
|
self.users = UserResource(self.api)
|
|
self.projects = ProjectResource(self.api)
|
|
self.databases = DatabaseResource(self.api)
|