Skip to main content

Shadow SDK — Python client for Shadow server REST API and Socket.IO real-time events

Project description

Shadow Python SDK

Python client for the Shadow server REST API and Socket.IO real-time events.

Installation

pip install shadowob-sdk

Quick Start

from shadowob_sdk import ShadowClient, ShadowSocket

# REST API
client = ShadowClient("https://shadowob.com", token="your-jwt-token")
me = client.get_me()
print(f"Logged in as {me['username']}")

# Send a message
msg = client.send_message("channel-id", "Hello from Python!")
print(f"Sent message: {msg['id']}")

# Real-time events
socket = ShadowSocket("https://shadowob.com", token="your-jwt-token")
socket.on("message:new", lambda msg: print(f"New message: {msg['content']}"))
socket.connect()
socket.join_channel("channel-id")
socket.wait()  # Block until disconnected

API Reference

See the full documentation for complete API reference.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shadowob_sdk-1.1.3.dev261.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shadowob_sdk-1.1.3.dev261-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file shadowob_sdk-1.1.3.dev261.tar.gz.

File metadata

  • Download URL: shadowob_sdk-1.1.3.dev261.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for shadowob_sdk-1.1.3.dev261.tar.gz
Algorithm Hash digest
SHA256 963461977560b7fa6f79934412e737d0994ac4da0da2450eadeda8280d2a3f94
MD5 6fdaad15b0316a69cb88a674827d7658
BLAKE2b-256 d34c531373ac0f1eb54b7bb84a0382774bbb5986504d0e7ae99dd9f7dcebb3ab

See more details on using hashes here.

File details

Details for the file shadowob_sdk-1.1.3.dev261-py3-none-any.whl.

File metadata

File hashes

Hashes for shadowob_sdk-1.1.3.dev261-py3-none-any.whl
Algorithm Hash digest
SHA256 b9166b674564d77efaf22cc9507b9ebfb7ec42e1551be0a9b58e2f482da3588d
MD5 6e0926cd7caaad805d1f5d93542c5621
BLAKE2b-256 7f5deb6a412b24b9ffa9669e9794240f3a416802db4b00f957bc159c6c1414ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page