Python SDK
FoPost Python SDK for Python applications.
Python SDK
Coming Soon
The OwlStack Python SDK is currently in development. Sign up for updates at owlstack.app to be notified when it's available.
What to Expect
The Python SDK will provide a native Python client for the OwlStack API, designed for:
- Django, Flask, FastAPI applications
- Async/await support with
asyncio - Type hints throughout
- PyPI distribution (
pip install owlstack)
Preview
from owlstack import OwlStack, Platform
client = OwlStack(api_key=os.environ["OWLSTACK_API_KEY"])
result = client.publish(
content="Hello from Python!",
platforms=[Platform.TWITTER, Platform.LINKEDIN],
media=[{"type": "image", "path": "./photo.jpg"}],
hashtags=["python", "automation"],
)
for r in result:
print(f"{r.platform}: {r.url}")In the Meantime
You can use the OwlStack REST API directly from any Python application using requests or httpx.
import requests
response = requests.post(
"https://api.owlstack.app/v1/publish",
headers={"Authorization": f"Bearer {os.environ['OWLSTACK_API_KEY']}"},
json={
"content": "Hello from Python!",
"platforms": ["twitter", "linkedin"],
},
)