Metadata-Version: 2.4
Name: corebase
Version: 1.0.0
Summary: Corebase client for Python: database, auth, realtime, storage and functions. Drop-in replacement for supabase-py.
Keywords: corebase,postgres,postgrest,realtime,auth
Author: Corebase
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Dist: deprecation>=2.1.0
Requires-Dist: httpx[http2]>=0.26,<0.29
Requires-Dist: pydantic>=2.11.7,<3,<3.0.0
Requires-Dist: pyjwt[crypto]>=2.15.1
Requires-Dist: typing-extensions>=4.14.0
Requires-Dist: websockets>=11,<16
Requires-Dist: yarl>=1.20.1,>=1.22.0
Requires-Python: >=3.11
Project-URL: Homepage, https://corebase.so
Description-Content-Type: text/markdown

# corebase

Corebase client for Python: database, auth, realtime, storage and functions.

A drop-in replacement for `supabase` (supabase-py): the same API, built from
the same source, published under Corebase's name.

```bash
pip install corebase
```

```python
from corebase import create_client, acreate_client

corebase = create_client("https://<ref>.corebase.so", "<service or anon key>")
rows = corebase.table("todos").select("*").execute()
```

## Moving from supabase-py

supabase-py is six packages with their own top-level modules. Here they are
one package, with the libraries inside it, so both can be installed at once:

| Before | After |
| --- | --- |
| `supabase` | `corebase` |
| `postgrest` | `corebase.postgrest` |
| `supabase_auth` (`gotrue`) | `corebase.auth` |
| `realtime` | `corebase.realtime` |
| `storage3` | `corebase.storage` |
| `supabase_functions` | `corebase.functions` |

Only the module names change; every class and function keeps its upstream
name (`create_client`, `acreate_client`, `Client`, `AsyncClient`,
`ClientOptions`, `AsyncClientOptions`, `APIError`, ...). For example:

```python
# before
from supabase import acreate_client
from supabase.lib.client_options import AsyncClientOptions
from postgrest.exceptions import APIError

# after
from corebase import acreate_client
from corebase.lib.client_options import AsyncClientOptions
from corebase.postgrest.exceptions import APIError
```

`CorebaseClient`, `AsyncCorebaseClient` and `CorebaseException` are also
exported as aliases of `Client`, `AsyncClient` and `SupabaseException`.

Needs Python 3.11 or newer.

## Licence

MIT. Based on supabase-py (see `UPSTREAM` for the version), whose copyright
notice is kept in `LICENSE`.
