Skip to content
OuterSpace Apizr: a space explorer in an orange suit in front of a yellow spacecraft

Understand Python work and share what matters

Inspect scripts and notebooks without running them. Record and compare trusted experiments when you need evidence. Make selected existing functions available through REST or MCP, directly or from a reviewed experiment.

Your calculation stays in Python. You choose the public functions and execution boundary; Apizr generates the interface and retains its documented evidence. MCP (Model Context Protocol) lets tool clients discover and call those functions.

Apizr 0.4.5 is available. Python 3.11–3.14 · Open source, GPL-3.0-or-later. Begin with a useful local result; no Docker or AI account is needed for the first REST/MCP calls.

Choose your next step

Start here

Choose a path, install the right environment and inspect code or make a first call.

Examples

Download complete files for six goals, with requests, results and useful failures.

User guide

Work with your script or notebook: inspect, optionally run/compare, then share.

Developer guide

Prepare public functions, compile through Python, call services and validate in CI.

Operations guide

Prepare permissions and runtimes, verify services and hand over delivery evidence.

Architecture guide

Follow the components, compilation, execution and delivery boundaries with diagrams.

Reference

Find exact commands, APIs, formats and compatibility details.

See Install Apizr for package availability and optional profiles, or the current release record for published evidence. Historical releases retain their original context.

From Python code to REST and MCP

Bring existing Python expertise into your applications and AI workflows. See how Apizr turns a route optimizer into callable interfaces.

English narration · English captions

Read the transcript

Put your business logic to work. For an operations team, time on the road matters. Your Python code already plans better routes. Apizr helps make that expertise available to the people and systems that need it.

Keep the expertise you already have. Here, a specialist has prepared a route optimizer in a notebook. The next step is to connect it to the dispatch application, using the same calculation.

Understand what you can expose. First, inspect the notebook with Apizr. It identifies the functions and reports which can generate an interface. Your team chooses the capability to make available.

Connect your operational applications. Select the route optimizer and generate REST. Apizr creates the application and its API contract. The dispatch system now has an interface it can call.

Generated code your team can inspect. These are the generated files. Your developers can inspect and run them. The adapter connects incoming requests to your existing function, keeping the business calculation in one place.

Put the generated API to work. Start the generated application and send a list of stops. The response contains a proposed route and its driving estimate. This is what the dispatch interface will use.

See the operational impact. Now the result becomes visible. On this eight-stop example, the estimated driving time drops from about one hundred and one minutes to forty eight.

Adapt when the workload changes. For a different twelve-stop tour, call the same API again. The route changes, with a fifty four percent improvement over this starting order. These estimates do not include live traffic.

Make the same capability available to AI. Next, use Apizr to generate an MCP server from the same function. An assistant can use the existing calculation as a tool, rather than estimate the route itself.

Turn a business request into an action. Ask Ollama to add the Pantheon while keeping the existing stops. Our local interface passes the generated tool definition to the model, then forwards its chosen call through MCP.

The same logic serves another channel. The tool returns a thirteen-stop tour. The map updates from that result. The application and the assistant now use the same underlying business logic.

Existing expertise. New applications. Inspect your Python. Choose what to expose. Generate REST and MCP interfaces with Apizr. Bring existing expertise into your applications and AI workflows.

Choose what becomes public

Apizr scans code without executing it and tells you which functions it can turn into an interface. You choose which ones become public. Their private helpers can be included without becoming endpoints or tools.

The generated bundle contains the server, its API or tool definitions and the source it needs. Start with REST endpoints or MCP tools, then use your own repository.

Decide how calls execute

The Quickstart runs trusted functions inside the generated server. For fresh workers, timeouts or container execution, continue with execution policies. Running a generated server executes your Python code; static analysis does not make unfamiliar code safe to run.

Tools using Apizr

  • Trunx — a private registry for software packages and container images. Trunx uses Apizr to publish REST and MCP services within its deployment approval workflow.

Explore the MCP ecosystem

Find Apizr's analysis plugin on Glama and the official MCP Registry. It helps an assistant explore your project. To let an assistant call your own functions, follow the MCP guide.

Watch the tutorials throughout these guides or visit Alien6 Studio on YouTube.

Want to improve Apizr? The contributor guide covers development setup, tests and pull requests.