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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shadowob_sdk-0.3.4.tar.gz
Algorithm Hash digest
SHA256 6eec3df65bf11b0f3167a9fc04507dacd3bb5ba0ebe8312d1744cce4fcf4b0a9
MD5 627aa1887bcefb85e08f8ebf84120e01
BLAKE2b-256 ba0ede4d3d4fa8812a5c0b13a6aaca0cd1e840770a627acfa27c35d6ed4464db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shadowob_sdk-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13a47eddd53b8f2a1d9c81f6753e9094968d6c2c1fa2d715c8eaee52e9f8a46d
MD5 7e06395cc4e014667ad8122758409a90
BLAKE2b-256 580cd8eadfbd0d663f50042e70c60db214a661456147ca5db110ea4b1493fe52

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