Skip to content
Fourohtwo

Use when an agent needs run python

api.oblique.markets/api/v1/paid/run-python

Use when an agent needs run python. Returns Runs a short Python program in an isolated sandbox and returns its output: exit code, stdout/stderr (64 KB each), duration, up to 3 artifact files in ./out/, and a receipt. Python 3.12 with the standard library plus numpy, pandas and requests; no network; 512 MB; up to 30 s. Input: code (32 KB), optional stdin, args and up to 4 input files. Free syntax c

BaseSolanaUnchecked
POSThttps://api.oblique.markets/api/v1/paid/run-python

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.oblique.markets/api/v1/paid/run-python", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"code":"Python 3 program source, at most 32 KB.…"}),
});
console.log(await res.json());

Example input

{
  "code": "Python 3 program source, at most 32 KB.…"
}

More from Oblique Markets