---
type: "raw_signal"
id: "three-commands-record-learn-gen-then-import-the-e5811f"
slug: "three-commands-record-learn-gen-then-import-the-e5811f"
title: "Three commands: record, learn, gen , then import the generated module."
description: "## Mimic generates Python clients from captured app traffic"
retrieval_nugget: "## Mimic generates Python clients from captured app traffic"
observed_at: "2026-10-12"
record_date: "2026-10-12"
date_kind: "observed_at"
why_it_matters: "Source: https://github.com/littledivy/mimic"
novelty: "notable"
verification_level: "source-linked"
signal_type: "release"
source_platform: "github.com"
topics: []
entities: ["Mimic","mitmproxy","Python"]
related_patterns: []
source_url: "https://github.com/littledivy/mimic"
source_urls: ["https://github.com/littledivy/mimic"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "signal:three-commands-record-learn-gen-then-import-the-e5811f"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/signals/three-commands-record-learn-gen-then-import-the-e5811f/","markdown":"https://newruntime.com/signals/three-commands-record-learn-gen-then-import-the-e5811f.md","json":"https://newruntime.com/signals/three-commands-record-learn-gen-then-import-the-e5811f.json"}
---

# Three commands: record, learn, gen , then import the generated module.

## Retrieval answer

## Mimic generates Python clients from captured app traffic

## Mimic generates Python clients from captured app traffic

The Mimic repository describes a workflow for turning an app's captured network traffic into a Python client. Its CLI sequence is `mimic record` to capture traffic, `mimic learn` to inspect observed endpoints, and `mimic gen` to generate a module that can then be imported and called from Python.

The README says capture can use mitmproxy for iOS, or supplied cURL and HAR traffic for web applications. It also documents limits: certificate pinning can prevent capture, while DPoP or sender-constrained tokens can prevent replay. The project advises using it only with one's own accounts and data and respecting app terms. Its documentation does not establish compatibility with every app or API.

Source: https://github.com/littledivy/mimic

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- collection: [Raw Signals](https://newruntime.com/signals.json): Open every source-linked raw signal.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
