🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

lance-namespace

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lance-namespace

Lance Namespace interface and plugin registry

pipPyPI
Version
0.3.1
Maintainers
1

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

Keywords

lance

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts