Skip to main content

ascii-box-sdk

Box is now Boat. This package is the last release of the box SDK line. It keeps working against the frozen /api/box/v1 endpoints until their sunset (see the Sunset response header), but gets no new features. Migrate to the boat SDK: https://docs.boat.dev/migrating-from-box

Use Box from your application code.

Install

pip install ascii-box-sdk

Flow

  1. Create an API key in the Box dashboard.
  2. Create or resume a Box.
  3. Prompt the Box.
  4. Read events until the work is done.
  5. Open desktop access when you need browser or GUI visibility.
  6. Stop, resume, fork, or delete the Box according to your retention policy.

Notes

  • Put cleanup in finally: stop/archive or delete Boxes you create for tests.
  • Treat API key secrets, Box secrets, SSH keys, and desktop stream URLs as sensitive.
  • updateSecrets / update_secrets replaces the entire secret setup. Read the current setup first and send every env var and secret file that should remain.
  • rotateApiKey / rotate_api_key rotates the raw secret in place. Store the returned secret immediately; it is shown once.
  • Repository selection is idempotent. Selecting an already-selected repository updates its base branch.

Example

import os
import time

from ascii_box_sdk import ApiClient, Configuration
from ascii_box_sdk.api.box_api import BoxApi
from ascii_box_sdk.models.create_box_request import CreateBoxRequest
from ascii_box_sdk.models.prompt_request import PromptRequest
from ascii_box_sdk.models.update_box_request import UpdateBoxRequest

config = Configuration(
    host=os.getenv("BOX_BASE_URL", "https://ascii.dev/api/box/v1"),
    access_token=os.environ["BOX_API_KEY"],
)

box_id = None
with ApiClient(config) as client:
    box = BoxApi(client)

    try:
        created = box.create(CreateBoxRequest(ttl_seconds=1800))
        box_id = created.box.id

        box.update(box_id, UpdateBoxRequest(name="sdk-demo"))

        while box.get(box_id).box.state not in {"ready", "idle"}:
            time.sleep(2)

        box.prompt(
            box_id,
            PromptRequest(
                provider="codex",
                prompt="Inspect the repository and summarize the test command.",
            ),
        )

        events = box.events(box_id)
        print(events.events)
    finally:
        if box_id:
            box.stop(box_id)

License

This SDK is MIT licensed. Box, the Box API, the Box CLI, and the Box product are proprietary.

Metadata

Release files for ascii-box-sdk 0.0.37

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascii-box-sdk 0.0.37
File Size Uploaded Provenance Actions
ascii_box_sdk-0.0.37.tar.gz 124.5 kB With provenance Details for ascii_box_sdk-0.0.37.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ascii-box-sdk 0.0.37
File Interpreter ABI Platform Actions
ascii_box_sdk-0.0.37-py3-none-any.whl Python 3 none any Details for ascii_box_sdk-0.0.37-py3-none-any.whl

Total release size: 392.3 kB

Release files / ascii_box_sdk-0.0.37.tar.gz

Download URL ascii_box_sdk-0.0.37.tar.gz
Size 124.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c16d52bca5feb35e411770e8355c81db24bad739bc8cc8c39468c5f294537574
BLAKE2b-256 checksum
How to use checksums
3a7254be770b1d6f1b13949b5ee371f749e1263bd9148afd6560beea87b11a6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / ascii_box_sdk-0.0.37-py3-none-any.whl

Download URL ascii_box_sdk-0.0.37-py3-none-any.whl
Size 267.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a683ba883b4b45b774cebbd200a73f0d59068d32988b83a501fa041c92aaad6e
BLAKE2b-256 checksum
How to use checksums
14ddfd43626a0af4891873276fe2181bdaa4b5ce4e50f43d5c771c8b67fe919a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for ascii-box-sdk 0.0.37

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ascii_box_sdk-0.0.37.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page