A Python client to interact with Phantasm's receiver server.
Project description
This client library allows you to interact with Phantasm's receiver server from your Python codebase. It provides a simple and easy-to-use interface complete with type hints and documentation. Here's a quick example to get you started adding an approval workflow to your function:
from phantasmpy import Phantasm
# Replace with your own function and parameters.
parameters = {...}
def schedule_meeting(...):
pass
phantasm = Phantasm()
response = phantasm.get_approval(
name="schedule_meeting",
parameters=parameters
)
if response.approved:
# Do this only if you trust the approvers.
schedule_meeting(**response.parameters)
else:
fallback()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phantasmpy-0.1.0a1.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file phantasmpy-0.1.0a1.tar.gz
.
File metadata
- Download URL: phantasmpy-0.1.0a1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495bba772bdca7602edf07f7e20997f087b916cba2fb1748557409ee99e47ded |
|
MD5 | 0fae81bfb890c59fe9928d0e3d16e1c6 |
|
BLAKE2b-256 | 666b3444a9e30b891cede39b2b3a4bddbd0ab7858433eedb663be8fa7f72adf2 |
File details
Details for the file phantasmpy-0.1.0a1-py3-none-any.whl
.
File metadata
- Download URL: phantasmpy-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f17c4fd8a7ed9cad02cc836f1a4f53d3220081bf251501ac6bcf81c1ea54ad |
|
MD5 | 1fec10737bd21802a1f77e42bda2e248 |
|
BLAKE2b-256 | 3fb4eee2fafb2c88958bca07a9ac67d1ec845fc4a6d8d0fa3cdb63ff7a931024 |