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.tar.gz (19.1 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-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shadowob_sdk-1.1.3.tar.gz
  • Upload date:
  • Size: 19.1 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.tar.gz
Algorithm Hash digest
SHA256 f4f726552f87a16adb553f24a474cbcb6895421ff73a7a02cff9f0d1db8382ce
MD5 346cc95dd7b9c219d791c2c20dd52301
BLAKE2b-256 c0339cc78e682b014bef20916870d3d9cc098420fcb13443c2c79cdddde73bbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shadowob_sdk-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for shadowob_sdk-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb81ba221a04fad7b59a43640cca594049aafe107f6db545079374321427bf42
MD5 30d3b2d5ac332284908fbb56b68360e7
BLAKE2b-256 208dd8e416031b2deaea4db4b11a63d8486944f67af6a9e0b4ddfdec6e46de59

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