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.5.tar.gz
(11.5 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.5.tar.gz.
File metadata
- Download URL: lance_namespace-0.8.5.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 |
b4a5967afcbf9924300a0b9d2fb74c44a23f76907e8734ebed6e0e3a561b0df0
|
|
| MD5 |
6856209f1dc6ae60f3e5399c09eb0f8a
|
|
| BLAKE2b-256 |
d0223d8eb4e913edf36cda416f1dca287147af508abe3ca89bf0e619b9fa9f54
|
File details
Details for the file lance_namespace-0.8.5-py3-none-any.whl.
File metadata
- Download URL: lance_namespace-0.8.5-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 |
6d3e2b8da586d06409494b56955a63c3152eeae2883cd2e8ba4e80d20dc0de0f
|
|
| MD5 |
93a95b3ccd5a641cdd702dc181e4cf61
|
|
| BLAKE2b-256 |
c0daafc3cdc42fc2dcf885a9d3524bf2c3bd2a9df89b1668b1806dec5e436263
|