skillfed

hive-metastore-client

A client for connecting and running DDLs on Hive Metastore with Thrift protocol

hive-metastore-client v1.0.9 320.1K downloads/30d#7,639 on PyPI56
License unclear Copyright Active released

What it is and what it does

Hive Metastore Client is a Python wrapper around the Thrift protocol for communicating with Apache Hive Metastore. It provides a higher-level interface for executing DDL (Data Definition Language) operations—such as creating, modifying, and dropping databases and tables—without writing raw Thrift calls. The package depends only on thrift and supports Python 3.7 and later.

Typically used in data engineering workflows where you need to programmatically manage Hive metadata from Python code. It abstracts the Thrift connection and serialization details, offering builder patterns and context managers to simplify common operations. The library is suitable for automation scripts, data pipelines, and integration layers that need to interact with Hive Metastore.

Use it for:

  • Automate database and table creation in Hive Metastore as part of a data pipeline setup.
  • Programmatically manage Hive schema definitions from Python without direct Thrift protocol handling.
  • Build data engineering tools that need to query or modify Hive metadata at runtime.
  • Integrate Hive Metastore operations into orchestration frameworks or ETL workflows.
  • Perform bulk DDL operations on Hive tables from a Python application or script.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client for connecting to Apache Hive Metastore and executing DDL commands via the Thrift protocol.

Yes, if you need to interact with Hive Metastore from Python and can work around the unclear license. The package has low install friction, no known vulnerabilities, and active repository maintenance. However, verify the license terms before use in commercial projects, and note that the latest release is over 4 years old—test compatibility with your Hive version before deploying to production.

Install

hive-metastore-client on PyPI

pip

pip install hive-metastore-client

uv

uv add hive-metastore-client

poetry

poetry add hive-metastore-client

Installing hive-metastore-client

Before you install

Low install friction with a single runtime dependency on thrift. The package is actively maintained with recent commits, though the latest release was over 4 years ago; the repository remains active and not archived.

License in practice

License treatment is unclear—the metadata lists 'Copyright' without an SPDX identifier. Before adopting this package in a commercial or open-source project, verify the actual license terms in the repository to confirm compatibility with your use case.

Quickstart

from hive_metastore_client.builders import DatabaseBuilder
from hive_metastore_client import HiveMetastoreClient

database = DatabaseBuilder(name='new_db').build()
with HiveMetastoreClient(HIVE_HOST, HIVE_PORT) as hive_metastore_client:
    hive_metastore_client.create_database(database)

Requires Python 3.7 or later and a running Hive Metastore server accessible at the specified host and port.

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode despite recent commits.
  • The actual license terms and SPDX classification, given the unclear license treatment in metadata.

Package facts

License Copyright (unclear)
Python support supports the current Python release (>=3.7, <4)
Install friction low — pure-Python wheel
Runtime dependencies 1 — thrift
Maintenance actively maintained — 1,817 days since the last release
Last repo commit
First released
Downloads 320,087/month — #7,639 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hive_metastore_client-1.0.9-py3-none-any.whl

Keywords: hive, hive-metastore, hive-client, hive-metastore-client, metastore

Tags

hive metastore clienthive ddl commands pythonthrift hive connectionhive database managementmetastore python clienthive table operationshive schema management
hivemetastoredata-engineering

More Database packages

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

redis

Python client library for connecting to and…

permissive · top 1,000 on PyPI

ydb

YDB Python SDK is the official client library…

permissive · top 1,000 on PyPI

snowflake-connector-python

Connects Python applications to Snowflake data…

permissive · top 1,000 on PyPI

sqlparse

sqlparse tokenizes SQL text into a tree of…

permissive · top 1,000 on PyPI

dbt-adapters

Provides base adapter protocols and shared…

permissive · top 1,000 on PyPI

hmsclient

A Python client for connecting to and querying…

permissive · top 5,000 on PyPI

pymetastore

pymetastore is a Python client for the Hive…

permissive · top 15,000 on PyPI

pure-transport

Provides a Thrift transport for PyHive…

permissive · top 15,000 on PyPI

google-cloud-dataproc-metastore

A Python client library for managing Dataproc…

permissive · top 1,000 on PyPI

apache-airflow-providers-apache-hive

Integrates Apache Hive with Apache Airflow,…

permissive · top 15,000 on PyPI

qds-sdk

A Python SDK for authenticating with and…

permissive · top 15,000 on PyPI

google-cloud-bigquery-biglake

Python client library for accessing BigLake…

permissive · top 5,000 on PyPI

impyla

impyla is a Python DB API 2.0-compliant client…

permissive · top 5,000 on PyPI

databricks-dbapi

Provides a DBAPI 2.0 connection interface and…

permissive · top 15,000 on PyPI

thrift-sasl

Implements SASL authentication transports for…

permissive · top 5,000 on PyPI