lance-namespace

Lance Namespace interface and plugin registry

Apache-2.0 46 个版本 Python >=3.8
安装
pip install lance-namespace
poetry add lance-namespace
pipenv install lance-namespace
conda install lance-namespace
描述

lance-namespace

Lance Namespace interface and plugin registry.

Overview

This package provides:

  • LanceNamespace ABC interface for namespace implementations
  • connect() factory function for creating namespace instances
  • register_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

版本列表
0.8.6 2026-06-12
0.8.5 2026-06-11
0.8.4 2026-06-10
0.8.2 2026-06-05
0.8.0 2026-06-01
0.7.7 2026-05-20
0.7.6 2026-05-05
0.7.5 2026-05-05
0.7.4 2026-05-05
0.7.3 2026-05-04
0.7.2 2026-04-25
0.7.1 2026-04-24
0.7.0 2026-04-21
0.6.1 2026-03-17
0.6.0 2026-03-16
0.5.4 2026-03-16
0.5.3 2026-03-16
0.5.2 2026-02-20
0.5.1 2026-02-20
0.5.0 2026-02-19
0.4.5 2026-01-07
0.4.4 2026-01-07
0.4.3 2026-01-01
0.4.2 2025-12-31
0.4.1 2025-12-31
0.4.0 2025-12-21
0.3.2 2025-12-15
0.3.1 2025-12-11
0.3.0 2025-12-11
0.2.1 2025-11-28
0.2.0 2025-11-27
0.0.21 2025-11-14
0.0.20 2025-10-27
0.0.19 2025-10-21
0.0.18 2025-10-08
0.0.17 2025-10-01
0.0.16 2025-09-30
0.0.15 2025-09-24
0.0.14 2025-09-02
0.0.13 2025-08-31
0.0.12 2025-08-31
0.0.10 2025-08-30
0.0.9 2025-08-28
0.0.8 2025-08-26
0.0.6 2025-08-20
0.0.5 2025-08-01