Cybersailor Python SDK
Project description
Cybersailor Python SDK
Cybersailor is a Python SDK for real-time data processing with Carthooks integration.
Version 0.1.11 - Single Threaded SQS Mode
Major Changes
- Single Threaded Architecture: Removed multi-threading support for simplified execution
- SQS-Only Mode: Only supports SQS-based subscriptions (polling mode removed)
- Simplified API: Cleaner, more predictable behavior with single-threaded execution
Features
- Real-time data processing via Amazon SQS
- Automatic monitoring task renewal
- Thread-safe DNS caching
- HTTP/2 support with connection pooling
- IPv6 support (configurable)
Installation
pip install cybersailor
Usage
from cybersailor import Sailor
def handler(ctx, message):
print(f"Received: {message.item_id}")
return True
sailor = Sailor(token="your_token")
sailor.subscribe(
handler=handler,
app_id=123456,
collection_id=789012,
sqs_queue_url="https://sqs.region.amazonaws.com/account/queue-name"
)
sailor.run()
Breaking Changes from 0.1.x
sqs_queue_urlparameter is now required forsubscribe()- Polling mode has been removed
- No longer uses background threads for SQS listening and renewal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cybersailor-0.1.11.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cybersailor-0.1.11.tar.gz.
File metadata
- Download URL: cybersailor-0.1.11.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb882df54176aae0be608e1c78b415d5a8969e5b06e6a612f57954b367df4e62
|
|
| MD5 |
039ab439ab6c1fe8db8d1498f1591d8b
|
|
| BLAKE2b-256 |
0298a3db6be157188e9d72a4e5b7aaa63d94b0497a4acb3b5acd087f7a8ccdb0
|
File details
Details for the file cybersailor-0.1.11-py3-none-any.whl.
File metadata
- Download URL: cybersailor-0.1.11-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8ab5c3d7b27ed2efa07db85713f8adb7fb17431c4df07de639fd203075b895
|
|
| MD5 |
37475a349b62a4ca78e2ed5faef31b8a
|
|
| BLAKE2b-256 |
c1b2ce77844351720cf3afb129905c79d96601f36c72d979e15f4ea9cb53b74b
|