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.5.4.tar.gz
(10.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.5.4.tar.gz.
File metadata
- Download URL: lance_namespace-0.5.4.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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 |
633d6d277683bae45a5a1fd37e5b921ce86dae1e9ce8c9523cf5368b830abcaf
|
|
| MD5 |
4b0c217c54128f7334baa223869368ec
|
|
| BLAKE2b-256 |
aa115186f9d0c23ec69ce6e283cea7a1d2e73cf749ee4bdd22aec9f3a88bcfd4
|
File details
Details for the file lance_namespace-0.5.4-py3-none-any.whl.
File metadata
- Download URL: lance_namespace-0.5.4-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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 |
cd16081f5794ba6ec89ab6527dc383592265b6f1f7b6a0413da61739c8a0b6d7
|
|
| MD5 |
87c52a6782247615f8024382d9d3f0cb
|
|
| BLAKE2b-256 |
758e18d16a4cda13ecec79db829d8547c044165f09eca0f541255802a526f743
|