AppWire SDK
Build and push Taps to AppWire — reverse-engineered mobile app API wrappers for workflow automation.
A Tap wraps a mobile app's internal API into reusable actions. Each action maps to an HTTP endpoint with headers, params, and response mappings.
Install
pip install appwire
Quick Start
from appwire import Tap
tap = Tap(
name="TikTok Profile Scraper",
app="TikTok",
version="1.0.0",
description="Fetch profile data from TikTok's internal API",
)
@tap.action(
name="Get Profile",
method="GET",
endpoint="https://api.tiktok.com/api/user/detail",
)
def get_profile(username: str):
return {
"params": {"uniqueId": username},
"headers": {
"User-Agent": "TikTok/26.1.3",
},
}
CLI
appwire login # Authenticate
appwire init my-tap # Scaffold a new Tap project
appwire validate # Validate before pushing
appwire push # Push to AppWire
appwire list # List your published Taps
Tap Manifest
Every Tap has a tap.yaml manifest:
name: "TikTok Profile Scraper"
description: "Fetch profile data from TikTok"
version: "1.0.0"
app: "TikTok"
icon: "./icon.png"
entry: "main.py"
Credentials
Reference user credentials with {{credential:name}} placeholders:
tap = Tap(
name="My Tap",
app="MyApp",
version="1.0.0",
credentials=[
{"name": "session_id", "label": "Session ID", "required": True},
],
)
@tap.action(name="Get Data", method="GET", endpoint="/api/data")
def get_data():
return {
"headers": {
"Cookie": "sid={{credential:session_id}}",
},
}
Response Mapping
Extract fields from API responses using JSONPath:
@tap.action(
name="Get Profile",
method="GET",
endpoint="/api/user/detail",
response_mapping={
"username": "$.userInfo.user.uniqueId",
"followers": "$.userInfo.stats.followerCount",
},
)
def get_profile(username: str):
return {"params": {"uniqueId": username}}
License
MIT
Metadata
Release files for appwire 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| appwire-0.1.5.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| appwire-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / appwire-0.1.5.tar.gz
| Download URL | appwire-0.1.5.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89622f596a943c13f54f5ffe1390963aea3eab8da35879c2c8c72aa5f98f2d7d
|
|
BLAKE2b-256 checksum How to use checksums |
2bcd3ea9158768e9cb97211e576c53b03f4ae1ce674cb95d7bcfce1484f484a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / appwire-0.1.5-py3-none-any.whl
| Download URL | appwire-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f072a02dddd7b4330366206409aff6532f09712e4b7a08543bbcbfefb49ad776
|
|
BLAKE2b-256 checksum How to use checksums |
83c28f81c60ec5c7e547e04cc25d3e19528c422d6e99e76f770125788f0dd4c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|