Metadata-Version: 2.1
Name: pymetastore
Version: 0.4.1
Summary: A Python client for the Thrift interface to Hive Metastore
Keywords: data data catalog data discovery data engineering data governance data infrastructure data integration data pipelines hcatalog hive hive metastore metadata metastore thrift python recap
Author: Kostas Pardalis
Author-Email: Chris Riccomini <criccomini@apache.org>
License: MIT
Project-URL: Repository, https://github.com/recap-cloud/pymetastore
Requires-Python: >=3.8
Requires-Dist: thrift>=0.16.0
Description-Content-Type: text/markdown

# 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:

```bash
pip install pymetastore
```

## Quick Start

Here's a taste of using `pymetastore` to connect to Hive Metastore and interact with metadata:

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