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.7.tar.gz (10.8 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.7-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lance_namespace-0.7.7.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.7.tar.gz
Algorithm Hash digest
SHA256 d00b525f2e26993a6c61668e798bca6c808605ab8a79f29f86a1a1af92d91ae2
MD5 192fa40d8ceecc9d9b5fe4e5446e8021
BLAKE2b-256 065c9822af615fc1bd3ee1073994696c739aecde377be32435ec3303aed1bc5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lance_namespace-0.7.7-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 477a7ca6b5e1f673a2c9ba52f42d6e8e3ff7c27a601392a21eb90fba98d0309b
MD5 6e05503bfdef42c4cc6415a486dae893
BLAKE2b-256 1143186acc1156da20c351db196e2b6241b2453b16dc1b4cc8e0a626667ca471

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