Client¶
Sync and async client (Ineepy, AsyncIneepy) for the ineep lakehouse.
Ineepy
¶
Synchronous client for the ineep lakehouse API.
Configuration is resolved from three sources in priority order
(highest to lowest): code-level arguments → ineepy.toml in the
current directory → INEEPY_* environment variables.
Can be used as a context manager (preferred) or manually closed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str | None
|
Bearer token. Defaults to config/env |
None
|
base_url
|
str | None
|
API base URL. Defaults to config/env |
None
|
api_path
|
str | None
|
API path prefix. Defaults to config/env |
None
|
config_file
|
str | Path | None
|
Path to the TOML config file (str or Path).
Defaults to |
None
|
Example::
# After calling get_token(...) once, the token is saved to
# ineepy.toml and the client loads it automatically:
with Ineepy() as client:
user, etag = client.users.get('me')
close()
¶
Close the underlying HTTP client.