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.2.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file phantasmpy-0.1.2.tar.gz
.
File metadata
- Download URL: phantasmpy-0.1.2.tar.gz
- Upload date:
- Size: 4.9 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 | 494c9cd5658c5f41d9e741264121047bdcbdd0f34bfacb5a096ecb53265d151f |
|
MD5 | 93d90b6282c3f28690921fa64ac45c44 |
|
BLAKE2b-256 | 9a07045e503ac265638253aefad17b115d17600e23d66ce632e3b808b8aec581 |
File details
Details for the file phantasmpy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: phantasmpy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.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 | 1ba6c3c4a21c5a3dd76659f47fd768bef0974f0623966fc0bfa4ca947f81d5eb |
|
MD5 | 36f95bebac3d09cb8ed3c5391b88a816 |
|
BLAKE2b-256 | 330d65944a635e6d24cde50996cce585ff00829b6b8d7f542cca166c3f1e0717 |