Skip to main content

No project description provided

Project description

About

Phable provides a simple way to retrieve and process JSON formatted Project Haystack 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:

$ pip install phable

Quick start

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

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!

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

phable-0.1.7.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

phable-0.1.7-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page