Skip to content

Commit

Permalink
Add functions to create NeonAPI instance from environment variables a…
Browse files Browse the repository at this point in the history
…nd token
  • Loading branch information
kennethreitz committed Feb 20, 2024
1 parent adc137a commit 2e107a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neon_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@


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)

0 comments on commit 2e107a3

Please sign in to comment.