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

Uploaded Source

Built Distribution

phantasmpy-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for phantasmpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 494c9cd5658c5f41d9e741264121047bdcbdd0f34bfacb5a096ecb53265d151f
MD5 93d90b6282c3f28690921fa64ac45c44
BLAKE2b-256 9a07045e503ac265638253aefad17b115d17600e23d66ce632e3b808b8aec581

See more details on using hashes here.

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

Hashes for phantasmpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba6c3c4a21c5a3dd76659f47fd768bef0974f0623966fc0bfa4ca947f81d5eb
MD5 36f95bebac3d09cb8ed3c5391b88a816
BLAKE2b-256 330d65944a635e6d24cde50996cce585ff00829b6b8d7f542cca166c3f1e0717

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