ineepy
A Python client library for the ineep lakehouse API — typed models, sync and async clients, streaming uploads/downloads, and ETag-based caching.
Links
- Repository: codeberg.org/Ineep/ineepy
- Documentation: ineep.codeberg.page/ineepy/
- Changelog: CHANGELOG.md
Requirements
- Python 3.12+
uv
Installation
uv add ineepy
Or for development:
git clone https://codeberg.org/Ineep/ineepy
cd ineepy
uv sync
Authentication
Exchange your credentials for a JWT token once — by default it is saved
to ineepy.toml in the current directory, so clients can be constructed
with no arguments afterwards:
from ineepy import Ineepy, get_token
# One-time: saves base_url, api_path and token to ./ineepy.toml
get_token('user@example.com', 'secret',
base_url='https://lakehouse.example.com')
client = Ineepy() # picks up ineepy.toml
Or keep the token in your hands and pass it explicitly:
token = get_token('user@example.com', 'secret', save_token=False)
client = Ineepy(token=token)
scopes accepts a single scope name or an iterable of names and
defaults to 'user'; request 'admin' for administrative operations.
An async variant, async_get_token, mirrors get_token exactly.
Quickstart
from ineepy import Ineepy
with Ineepy() as client:
user, etag = client.users.get('me')
namespaces = client.namespaces.list()
tables = client.tables.list('raw')
The same API is available asynchronously:
from ineepy import AsyncIneepy
async with AsyncIneepy() as client:
user, etag = await client.users.get('me')
namespaces = await client.namespaces.list()
tables = await client.tables.list('raw')
Working with data
Upload streams file-like objects straight from disk, query returns typed JSON rows, and large results stream directly to a file:
with Ineepy() as client:
# Streaming upload from an open file
with open('orders.parquet', 'rb') as f:
client.data.upload('raw.sales.orders', f, 'parquet')
# JSON query with filters
result = client.data.query('raw.sales.orders',
filters='country:eq:BR')
print(result.items)
# Large results: submit as parquet, stream to disk
job_id = client.data.submit_query('raw.sales.orders',
format='parquet')
client.data.poll_download_to(job_id, 'result.parquet')
Explicit write modes (append, overwrite, upsert), row deletion,
cross-table queries with joins, and job monitoring are covered in the
data documentation.
Configuration
Settings are resolved in priority order: constructor arguments →
ineepy.toml in the current directory → INEEPY_* environment
variables.
| Environment variable | Default | Description |
|---|---|---|
INEEPY_BASE_URL |
https://ineep-lakehouse-prod.exe.xyz |
API base URL |
INEEPY_API_PATH |
/api/v0 |
API path prefix |
INEEPY_TOKEN |
(empty) | Bearer token |
client = Ineepy(base_url='https://my-server.example.com', token=token)
Error handling
Every failure raises a subclass of ineepy.exceptions.IneepyError:
from ineepy.exceptions import NotFoundError
try:
table, etag = client.tables.get_metadata('raw.sales.ghost')
except NotFoundError as e:
print(f'missing table: {e}')
Concurrent updates are guarded by ETags — a stale etag raises
PreconditionFailedError instead of silently overwriting.
Resources
| Resource | Access | Description |
|---|---|---|
users |
client.users |
User management (list, get, create, update, delete) |
api_keys |
client.api_keys |
API key management (create, list, revoke) |
namespaces |
client.namespaces |
Namespace management; list() with no arg returns root namespaces |
tables |
client.tables |
Table schema and metadata management within namespaces |
data |
client.data |
Upload, JSON/parquet/csv queries, cross-table queries, streaming transfers, write modes (append, overwrite, upsert) |
Documentation
Development
make format # format code
make lint # lint and type-check code
make test # run unit tests with coverage
make test-e2e # run end-to-end tests against a live server
make docs # validate doc snippets against a live server, build site
E2E tests
E2E tests require a running ineep server and admin credentials:
cp .env.example .env
# edit .env with your credentials
make test-e2e
The .env file is gitignored. See .env.example for the available variables.
Project structure
src/ineepy/ Main package
_auth.py Token acquisition (sync + async)
_client.py Ineepy and AsyncIneepy clients
_config.py Pydantic settings (env vars)
_exceptions.py Exception hierarchy
_models.py Pydantic request/response models
exceptions.py Public exceptions re-export
helpers.py Public helper utilities
models.py Public models re-export
_resources/ Per-resource implementations
api_keys.py
data.py
namespaces.py
tables.py
users.py
tests/
resources/ Unit tests per resource
e2e/ End-to-end workflow tests
scripts/ Shell scripts called by make
pyproject.toml Project metadata and tool config
License
This project is licensed under the GNU General Public License v3.0.
You are free to use, modify, and distribute this software under the terms of the GPL v3. Any derivative work must also be distributed under the same license. See the LICENSE file for the full license text.
Metadata
Release files for ineepy 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ineepy-0.4.2.tar.gz | 22.7 kB | Without provenance | Details for ineepy-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ineepy-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for ineepy-0.4.2-py3-none-any.whl |
Total release size: 53.6 kB
Release files / ineepy-0.4.2.tar.gz
| Download URL | ineepy-0.4.2.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4d69009e3d979a18acddf765dfb2ae4c702017256682a1bf9084bc5cd7f343f
|
|
BLAKE2b-256 checksum How to use checksums |
bad9c951bdb52af23016b824d3c6b5ee8d284521a3e0718ddbee5d650e1408ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ineepy-0.4.2-py3-none-any.whl
| Download URL | ineepy-0.4.2-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6c3447d5f8296eacd19b338b841ca3d6992ba07c7904387d958cab093aee920
|
|
BLAKE2b-256 checksum How to use checksums |
811665bef30b6c9cd4c2b813d2578fb66b9ceaa0aff2b3085f669f2943607a18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ineepy 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.