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

Uploaded Source

Built Distribution

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

pymetastore-0.4.2-py3-none-any.whl (132.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymetastore-0.4.2.tar.gz
  • Upload date:
  • Size: 134.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for pymetastore-0.4.2.tar.gz
Algorithm Hash digest
SHA256 aac164f385446c4dcb8e32edbc369c7ec5107ba6aa16ccee0b1ad826f004552e
MD5 147989a4eeac55e158f6e758138720c7
BLAKE2b-256 2e400a7c04f9460235cc65d7f2a7bfa96fc3f80f7e3ca6755974a77b6c5d0c4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymetastore-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 132.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for pymetastore-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77a08303da633e696e214947aff28842128abf54678fa3cc40a24dabb9114365
MD5 147faa89beee59f7ad06e5e11740a1fb
BLAKE2b-256 7a2f310fa6b18f7ebb6f7949770d716d28f9018f699633c7cd6c6ffe3b925b08

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