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.1.tar.gz
(133.8 kB
view details)
Built Distribution
pymetastore-0.4.1-py3-none-any.whl
(132.3 kB
view details)
File details
Details for the file pymetastore-0.4.1.tar.gz
.
File metadata
- Download URL: pymetastore-0.4.1.tar.gz
- Upload date:
- Size: 133.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43549e7096a807ea5f1580349c536a9b6bcc6c243d7fa7859a2ed9761261e540 |
|
MD5 | abaef2b424ead9a8fd68e8908497e283 |
|
BLAKE2b-256 | 7a554400aaff684747a4c73d583bbb463f61ba7170bdec681fa2ccd30c6f8df3 |
File details
Details for the file pymetastore-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: pymetastore-0.4.1-py3-none-any.whl
- Upload date:
- Size: 132.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2e88c0c492be18400910c300cb5ef1722fec1b7628f97a9bb2b889c82ad09a |
|
MD5 | d30b38ef14f9ac79cdda13784b86a362 |
|
BLAKE2b-256 | 8bea3cb87d4d8a60e2aa216dc6262ee677a30d8c35a98f49ae40c43fe9cb2492 |