Metadata-Version: 2.4
Name: metalake
Version: 0.8.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Database
Requires-Dist: duckdb>=1.5 ; extra == 'duckdb'
Requires-Dist: pyarrow>=15 ; extra == 'duckdb'
Requires-Dist: apache-flink>=1.20,<1.21 ; extra == 'flink'
Requires-Dist: jupyterlab>=4.6,<5 ; extra == 'notebook'
Requires-Dist: jupyter-server>=2.21 ; extra == 'notebook'
Requires-Dist: ipykernel>=6.29 ; extra == 'notebook'
Requires-Dist: pandas ; extra == 'pandas'
Requires-Dist: pyarrow>=15 ; extra == 'pandas'
Requires-Dist: polars>=1.22 ; extra == 'polars'
Requires-Dist: pyarrow>=15 ; extra == 'pyarrow'
Requires-Dist: pyiceberg[pyarrow]>=0.12 ; extra == 'pyiceberg'
Requires-Dist: pyspark>=3.5,<3.6 ; extra == 'spark'
Provides-Extra: duckdb
Provides-Extra: flink
Provides-Extra: notebook
Provides-Extra: pandas
Provides-Extra: polars
Provides-Extra: pyarrow
Provides-Extra: pyiceberg
Provides-Extra: spark
License-File: LICENSE
License-File: NOTICE
Summary: Open-source lakehouse table format & protocol inside a PostgreSQL catalog
Keywords: lakehouse,parquet,postgres,datafusion,table-format
License-Expression: Apache-2.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/metalakeorg/metalake

# MetaLake

Open-source lakehouse table format & protocol inside a PostgreSQL catalog

## Cloud storage and your own Postgres

```
metalake init ./lake gs://bucket/prefix
metalake init ./lake s3://bucket/prefix
metalake init postgresql://user@host/db s3://bucket/prefix
```

Credentials come from the environment (`AWS_*`, `GOOGLE_*`, `AZURE_*`), never from a file. A password for Postgres
is `PGPASSWORD`.

## Upkeep

```
metalake retain main --max-age 30d --min-snapshots 10
metalake maintain
```

Until a ref says what it keeps, it keeps everything. `maintain` runs once; schedule it as you schedule anything else.

## For programs

stdout holds what was asked for and stderr the rest. `--format json` prints one object per line, and exit codes are
stable: 0 done, 1 failed, 2 wrong use, 3 a conflict that changed nothing, 4 a write whose fate is unknown.

## Platforms

Windows and macOS 11 or later on x86-64 and ARM, Linux with glibc 2.34 or later on x86-64 and ARM.

On macOS, a process forked from one that used metalake cannot connect, and says so: start it with `spawn`, which is what
`multiprocessing` does there by default.

