Skip to main content

A Python client for the Thrift interface to Hive Metastore

Project description

pymetastore 🐝 🐍

pymetastore is a Python client for Hive Metastore.

Features

  • Python-friendly interface for Hive Metastore
  • Comprehensive support for metadata operations
  • Fully compatible with the Hive metastore service over Thrift protocol

Installation

Install pymetastore with pip:

pip install pymetastore

Quick Start

Here's a taste of using pymetastore to connect to Hive Metastore and interact with metadata:

from pymetastore.metastore import HMS

with HMS.create(host="localhost", port=9083) as hms:
    databases = hms.list_databases()
    database = hms.get_database(name="test_db")
    tables = hms.list_tables(database_name=database.name)
    table = hms.get_table(
        database_name=database.name,
        table_name=tables[0],
    )
    partitions = hms.list_partitions(
        database_name=database.name,
        table_name=table.name,
    )
    partition = hms.get_partition(
        database_name=database.name,
        table_name=table.name,
        partition_name="partition=1",
    )

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

pymetastore-0.4.0.tar.gz (132.1 kB view details)

Uploaded Source

Built Distribution

pymetastore-0.4.0-py3-none-any.whl (132.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymetastore-0.4.0.tar.gz
  • Upload date:
  • Size: 132.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.7.4 CPython/3.11.4

File hashes

Hashes for pymetastore-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c738ec5d5d9abacb5364c1ba34a746d19c35579c10b79b468cbec9487fc7e136
MD5 528c9ff7b5e16e81a64a7a6c7e87fe85
BLAKE2b-256 93f6adfde9497b2ab5a1420782dafdcbdb6e7c32ac351971d0b6c22b4e64d9ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymetastore-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 132.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.7.4 CPython/3.11.4

File hashes

Hashes for pymetastore-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a940da43c0e6094e3315d8e2d3dcb09353ac2c4f2e73ebf18a0efdebfb0795
MD5 12d6da39580b6a02e95c7ecb3fb8186c
BLAKE2b-256 887027b5142dcaf5e1ec593e87c965c570cc96bb98952c71f16e04386bb5cf6f

See more details on using hashes here.

Supported by

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