mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 14:50:16 +00:00
16 lines
336 B
Python
16 lines
336 B
Python
from .client import NeonAPI
|
|
from .__version__ import __version__
|
|
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)
|