Lance Namespace interface and plugin registry
Project description
lance-namespace
Lance Namespace interface and plugin registry.
Overview
This package provides:
LanceNamespaceABC interface for namespace implementationsconnect()factory function for creating namespace instancesregister_namespace_impl()for external implementation registration- Re-exported model types from
lance_namespace_urllib3_client
Installation
pip install lance-namespace
Usage
import lance_namespace
# Connect using native implementations (requires lance package)
ns = lance_namespace.connect("dir", {"root": "/path/to/data"})
ns = lance_namespace.connect("rest", {"uri": "http://localhost:4099"})
# Register a custom implementation
lance_namespace.register_namespace_impl("glue", "lance_glue.GlueNamespace")
ns = lance_namespace.connect("glue", {"catalog": "my_catalog"})
Creating Custom Implementations
from lance_namespace import LanceNamespace
class MyNamespace(LanceNamespace):
def namespace_id(self) -> str:
return "MyNamespace { ... }"
# Override other methods as needed
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lance_namespace-0.8.2.tar.gz
(11.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lance_namespace-0.8.2.tar.gz.
File metadata
- Download URL: lance_namespace-0.8.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78cd6ad2f2764bccded1d8b64474419cc5571956b68a23ad2770977ddaeb03a1
|
|
| MD5 |
d237b75c5831b4310aee75f7580d7881
|
|
| BLAKE2b-256 |
33fd3a8731b2ed83ba198b15b5963c6df4836736057f23206107b0ab4a5f57fd
|
File details
Details for the file lance_namespace-0.8.2-py3-none-any.whl.
File metadata
- Download URL: lance_namespace-0.8.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6531a4d8b95f201835b954a949f890d03cbc3124aca5f1dd21d999157a08935f
|
|
| MD5 |
ce085b7108837c5022ff000aa0b70bb2
|
|
| BLAKE2b-256 |
6acb7f3cc83b8b35a27a27539c3086562d11010f10ca113808ce1078308ca5c0
|