Skip to main content

Abstraction layer over Modal SDK for mngr: supports direct, testing, and remote modes

Project description

modal-proxy

Abstraction layer over the Modal SDK for mngr.

This library defines a ModalInterface ABC that captures every interaction mngr_modal has with Modal. Three implementations are planned:

  1. DirectModalInterface -- calls the Modal Python SDK directly (the current behavior, extracted from mngr_modal)
  2. TestingModalInterface -- fakes Modal behavior locally (volumes become directories, sandboxes become process groups) for integration testing without remote calls
  3. RemoteModalInterface -- proxies calls to a web server, enabling a managed service that translates user credentials into real Modal API calls

Usage

The ModalInterface is intended to be injected into ModalProviderInstance (in mngr_modal) rather than having mngr_modal call the Modal SDK directly.

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

modal_proxy-0.1.4.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modal_proxy-0.1.4-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page