Add functions to create NeonAPI instance from environment variables and token

This commit is contained in:
2024-02-20 09:10:33 -05:00
parent adc137a918
commit 2e107a3bfa
+4
View File
@@ -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)