skynet-provider-api (SPAPI)¶
SPAPI is a Python library that homogenizes Skynet interactions with ad
revenue and cost providers. Consumers (harvester, dealer, app-api) import
provider classes, call campaign() / report() facades, and receive
normalized structures for sync pipelines.
Supported providers¶
Revcontent, Taboola, Gemini, Zemanta, Outbrain, Primis, Facebook, Baidu,
Yahoo DSP, Vidazoo, Tonic, Pinterest, TikTok, DomainActive, Popin, Adskeeper,
Mgid, SmartNews, Bigo, and others under src/spapi/providers/.
Stack¶
| Layer | Technology |
|---|---|
| Runtime | Python 3.8 (library; pinned deps in requirements.txt) |
| Packaging | setuptools / src/spapi layout |
| HTTP | requests with retry + token refresh |
| Token storage | Redis cluster or local token file |
| Tests | pytest + coverage (requirements_dev.txt) |
| Legacy docs | Sphinx sources remain in docs/ (not built by portal) |
Documentation map¶
| Page | What it covers |
|---|---|
| Local development | Editable install, tests, no Docker |
| Architecture | Provider / Campaign / Report / Decorator layers |
| Implementing a provider | Checklist for new integrations |
| Provider classes | Abstract API surface |
| Taboola metadata cache | Redis-backed campaign enrichment |
| 3rd-party references | Vendor API doc links |
Task lineage¶
- AISD-131 — documentation portal at docs.skyneto.com
- AISD-145 — this MkDocs package
Build these docs locally¶
cd skynet-provider-api
python3 -m venv .venv_docs && source .venv_docs/bin/activate
pip install -r requirements-docs.txt
mkdocs build --strict
mkdocs serve
Quick usage¶
import spapi
tb = spapi.Taboola("client_id", "client_secret", "account_id")
tb.campaign(44565).get_campaign()
tb.report().get_cost_report(data_date="2021-01-01")
See the repository README.md for per-provider examples.