tap-aftership
raw JSON → 0.0.4 verified Mon Apr 27 auth: no python
A Singer tap for AfterShip, built with the Meltano Singer SDK. Version 0.0.4 extracts shipment tracking data from the AfterShip API. Actively maintained, with no recent releases.
pip install tap-aftership Common errors
error ModuleNotFoundError: No module named 'tap_aftership' ↓
cause Package not installed or wrong import path.
fix
pip install tap-aftership
error KeyError: 'api_key' ↓
cause Config missing required 'api_key' field.
fix
Provide api_key in config dict or config file.
Warnings
gotcha The tap requires an api_key, not an api_token. Ensure the key is for tracking API and not admin API. ↓
fix Use the API key from AfterShip Settings → API Keys.
gotcha The tap only runs on Python 3.7.1 to 3.10 (not 3.11+). ↓
fix Use Python 3.10 or earlier, or install via Meltano environment that enforces this constraint.
Imports
- TapAfterShip wrong
from tap_aftership import TapAfterShipcorrectfrom tap_aftership.tap import TapAfterShip
Quickstart
import os
from tap_aftership.tap import TapAfterShip
tap = TapAfterShip(
config={
"api_key": os.environ.get('TAP_AFTERSHIP_API_KEY', ''),
"start_date": "2024-01-01T00:00:00Z"
},
catalog=None,
state=None
)
tap.run_discovery()
print('Catalog discovered successfully')