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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lance_namespace-0.4.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.0.tar.gz
Algorithm Hash digest
SHA256 aedfb5f4413ead9c5f0d2a351fe47b0b68a1dec0dd4331a88f54bce3491f630f
MD5 48e19446b2c91e10c2d64f1d09a7141e
BLAKE2b-256 868db117539252afc81b0fb94301e5543516af8594a70242ef247bc88c03cbdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lance_namespace-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d91ee199a9864535ea17bd41787726c06b7ec8efbf06f7275bc54ea9998264f
MD5 ac8791104478f049863781748ccdd5bb
BLAKE2b-256 e7feedbeb9ae7408685e90b2f0609c2f84bc3ef2f65d82bb4dce394de6d9c317

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