Metadata-Version: 2.1
Name: phable
Version: 0.1.7
Summary: 
License: MIT
Author: Rick Jennings
Author-email: rjennings055@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pandas (>=2.0.0,<3.0.0)
Description-Content-Type: text/markdown

About
-----
Phable provides a simple way to retrieve and process JSON formatted [Project Haystack](https://project-haystack.org/) data from a flat file or Haystack server using modern Python.

The initial focus of this project is to make it easy to work with a Jupyter Notebook connected to a Haystack server.

Installation
------------
Phable requires Python 3.11 or higher.  During the early stages of this project we will likely have several Python package dependencies, such as Pandas.  In the future we hope to remove these dependencies from Phable.

Download Phable from Pypi:

```console
$ pip install phable
```

Quick start
-----------
The below example shows how to obtain an auth token from a Haystack server.

```python
from phable.phable import Phable

# define these settings specific for your use case
# Reminder:  Probably secure your login credentials!!!
uri = "http://localhost:8080/api/demo"
username = "su"
password = "su"

# open a session, execute a query, and simply close
# session with the context manager
with Phable(uri, username, password) as ph:
    about_grid = ph.about()

print(f"Here are details about the Haystack Server:\n{about_grid}")
```

**More examples coming soon!**

