Skip to main content

Lance Namespace interface and plugin registry

Project description

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

Project details


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.7.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lance_namespace-0.7.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file lance_namespace-0.7.1.tar.gz.

File metadata

  • Download URL: lance_namespace-0.7.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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

Hashes for lance_namespace-0.7.1.tar.gz
Algorithm Hash digest
SHA256 739c3c5b021c1582223a23056af085575a6f8bd577e744bafbafc4db76f89f22
MD5 1aaca8c1ffa5da0376b1c70ddda176db
BLAKE2b-256 1c90ab4062f609a1749a7b587d7fd91ddbfa0c107e6aad925bd36367eeeba2f9

See more details on using hashes here.

File details

Details for the file lance_namespace-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: lance_namespace-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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

Hashes for lance_namespace-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c050c4a2bcd27a75551268449b74a8ac23dde4077f9bf7df460d52c50355d5f0
MD5 0c9a5e5ab74632c9c3feb870c82ada04
BLAKE2b-256 6ea3c1d804a1bcd05d2a84dbc5d1b6795599fcee1866e322be55c18cbe109229

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page