Skip to main content

AutoDiscovery Modal

Package for using AutoDiscovery on Modal

Setup

The following environment variables must be set to use Modal

export MODAL_TOKEN_ID=
export MODAL_TOKEN_SECRET=
export MODAL_IMAGE_BUILDER_VERSION= # Only required for ephemeral sandbox runs

Sandbox Executor

Use the Sandbox backend when you need per-run dataset mounts and strong isolation for untrusted code.

from autodiscovery_modal import ModalSandboxIPythonBackend
from code_execution import IPythonExecutor

backend = ModalSandboxIPythonBackend.for_run_dataset(
    app_name="asta-autodiscovery",
    user_id="user-123",
    run_id="forecasting-2026-01-06T120102Z",
    bucket="myapp-datasets",
    key_prefix="users/user-123/runs/forecasting-2026-01-06T120102Z/dataset/",
    read_only=True,
)

executor = IPythonExecutor(backend)
result = executor.run_cell("print('hello from sandbox')")
print(result["stdout"])

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asta_autodiscovery_modal-0.2.2.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

asta_autodiscovery_modal-0.2.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file asta_autodiscovery_modal-0.2.2.tar.gz.

File metadata

  • Download URL: asta_autodiscovery_modal-0.2.2.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for asta_autodiscovery_modal-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f541bc59c70fed64d24eab9bfa47b08523da7e9ed87d6b1ff1120f082c44e69d
MD5 f684006d52366a2857c14b3b006466e5
BLAKE2b-256 4fd33f710841f9572700631cde70ab8fdb05310dce11ffd7836a1d67c6aa3f63

See more details on using hashes here.

Provenance

The following attestation bundles were made for asta_autodiscovery_modal-0.2.2.tar.gz:

Publisher: publish-to-pypi.yml on allenai/asta-autodiscovery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file asta_autodiscovery_modal-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for asta_autodiscovery_modal-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d5653036d9e39fd9b3c31a9b03138ad02c22dbd91a0290027541aaa37d8009
MD5 f0b3c069756254dca1a6ba36e9872a4d
BLAKE2b-256 7d577aaf01307ab1769f9fb035cfa3387f3ce438a27a89c64e79fe0662796309

See more details on using hashes here.

Provenance

The following attestation bundles were made for asta_autodiscovery_modal-0.2.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on allenai/asta-autodiscovery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

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