hive-metastore-client
A client for connecting and running DDLs on Hive Metastore with Thrift protocol
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-clientuv
uv add hive-metastore-clientpoetry
poetry add hive-metastore-clientInstalling 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
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
hmsclientA Python client for connecting to and querying…
permissive · top 5,000 on PyPI
pymetastorepymetastore is a Python client for the Hive…
permissive · top 15,000 on PyPI
pure-transportProvides a Thrift transport for PyHive…
permissive · top 15,000 on PyPI
google-cloud-dataproc-metastoreA Python client library for managing Dataproc…
permissive · top 1,000 on PyPI
apache-airflow-providers-apache-hiveIntegrates Apache Hive with Apache Airflow,…
permissive · top 15,000 on PyPI
qds-sdkA Python SDK for authenticating with and…
permissive · top 15,000 on PyPI
google-cloud-bigquery-biglakePython client library for accessing BigLake…
permissive · top 5,000 on PyPI
impylaimpyla is a Python DB API 2.0-compliant client…
permissive · top 5,000 on PyPI
databricks-dbapiProvides a DBAPI 2.0 connection interface and…
permissive · top 15,000 on PyPI
thrift-saslImplements SASL authentication transports for…
permissive · top 5,000 on PyPI