Skip to main content

A Python client to interact with Phantasm's receiver server.

Project description

GitHub Discord License

Phantasm

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


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.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

phantasmpy-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file phantasmpy-0.1.1.tar.gz.

File metadata

  • Download URL: phantasmpy-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 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

Hashes for phantasmpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba09c9db437fab01fec7661f93f1bed8c8615ab8ba09fdf932c307e528d1e13a
MD5 fb7f208e2979c71dcf0b700e021a860b
BLAKE2b-256 7ef1afb55e9321fd202ade36b99334a918520b2019c91f4dfdd34c9653466dd3

See more details on using hashes here.

File details

Details for the file phantasmpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: phantasmpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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

Hashes for phantasmpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab05fd920cf314764f1a048eced5b904caf868ad7dd8b3de077b124bd0e2ccec
MD5 947ee19471d46455d4ac50bc7de53d9a
BLAKE2b-256 f5e3d8cca068988e4806a687a96ac5431b09f18be137428803b0883191942c37

See more details on using hashes here.

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