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.1.tar.gz
(10.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.5.1.tar.gz.
File metadata
- Download URL: lance_namespace-0.5.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 |
c77dba6a1b73c969aa96a63e16111aa11edefc2764af7404a19d9e08627bd6b9
|
|
| MD5 |
e099969e7edd403e8e6034d6d021aea2
|
|
| BLAKE2b-256 |
23163519dc99b956ceaff01b49f37664c71351a71d9840b96545ab4861146562
|
File details
Details for the file lance_namespace-0.5.1-py3-none-any.whl.
File metadata
- Download URL: lance_namespace-0.5.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 |
51c8291e421b733b725746bdd55cbb46928c3849fe0e46c4a3ad713211ce97ae
|
|
| MD5 |
b37ad4b22d8ef2819bc4bcf148a9582e
|
|
| BLAKE2b-256 |
1675277932ef04f5439e3f52bb3848c98a758f42b04d654687c310830013aafb
|