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

Uploaded Source

Built Distribution

phantasmpy-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phantasmpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 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.0.tar.gz
Algorithm Hash digest
SHA256 186ddcc5c9faeef2026450fc47862d828c91cc6d66a9bb7c0c7d1204e0cb36e3
MD5 561dbcb94027a8ad2313912ec26f6b7c
BLAKE2b-256 5fd335cb3f69987982ec081bd04ebc137cb046db8b881eea69f33f6f6ca38d6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phantasmpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52905bd862348b7aab8f44c83ed86ada414e1eceb1af05b26eb84d8132015098
MD5 70306d1ce0930c315eb6c95eef800f0b
BLAKE2b-256 858a4c6b8d11ba4b613fe7468136d4c1a38d12dc3ab875d80fcb440c46d9d7f3

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