Skip to content

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 INEEPY_TOKEN. Obtain one with :func:~ineepy.get_token.

None
base_url str | None

API base URL. Defaults to config/env INEEPY_BASE_URL (default https://ineep-lakehouse-prod.exe.xyz).

None
api_path str | None

API path prefix. Defaults to config/env INEEPY_API_PATH (default /api/v0).

None
config_file str | Path | None

Path to the TOML config file (str or Path). Defaults to ineepy.toml in the current working directory.

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.

AsyncIneepy

Async version of :class:~ineepy.Ineepy.

aclose() async

Close the underlying async HTTP client.