Skip to main content

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",
    )

Release files for pymetastore 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymetastore 0.4.2
File Size Uploaded
pymetastore-0.4.2.tar.gz 134.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymetastore 0.4.2
File Interpreter ABI Platform
pymetastore-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 266.7 kB

Release files / pymetastore-0.4.2.tar.gz

Download URL pymetastore-0.4.2.tar.gz
Size 134.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aac164f385446c4dcb8e32edbc369c7ec5107ba6aa16ccee0b1ad826f004552e
BLAKE2b-256 checksum
How to use checksums
2e400a7c04f9460235cc65d7f2a7bfa96fc3f80f7e3ca6755974a77b6c5d0c4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.1 CPython/3.12.3 Linux/6.11.0-1018-azure

Release files / pymetastore-0.4.2-py3-none-any.whl

Download URL pymetastore-0.4.2-py3-none-any.whl
Size 132.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77a08303da633e696e214947aff28842128abf54678fa3cc40a24dabb9114365
BLAKE2b-256 checksum
How to use checksums
7a2f310fa6b18f7ebb6f7949770d716d28f9018f699633c7cd6c6ffe3b925b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.1 CPython/3.12.3 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page