From 2e107a3bfa8a0e03258ec72b13c297c424af613f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 20 Feb 2024 09:10:33 -0500 Subject: [PATCH] Add functions to create NeonAPI instance from environment variables and token --- neon_client/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neon_client/__init__.py b/neon_client/__init__.py index 37dfd5d..31d5684 100644 --- a/neon_client/__init__.py +++ b/neon_client/__init__.py @@ -4,8 +4,12 @@ from .exceptions import NeonAPIError def from_environ(): + """Create a NeonAPI instance from environment variables.""" + return NeonAPI.from_environ() def from_token(token): + """Create a NeonAPI instance from a token.""" + return NeonAPI.from_token(token)