Skip to main content

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_url parameter is now required for subscribe()
  • Polling mode has been removed
  • No longer uses background threads for SQS listening and renewal

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

cybersailor-0.1.15.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

cybersailor-0.1.15-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file cybersailor-0.1.15.tar.gz.

File metadata

  • Download URL: cybersailor-0.1.15.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for cybersailor-0.1.15.tar.gz
Algorithm Hash digest
SHA256 0941b243038ba09346b243425bfaf5e8f8e80f1f08346066f42a43ec0b627979
MD5 7eae3960350368ec586ecaf45501f8d8
BLAKE2b-256 6b39a68dc8639f09fabb20d0585063bb8e96806a0e757b98c2e1e3eb8b077da3

See more details on using hashes here.

File details

Details for the file cybersailor-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: cybersailor-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for cybersailor-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b98041c8af768e42e1eee61c46780e327ae64c7222ca520822b6fd715dfb96
MD5 f97d0f7d0f2c855debc59421491f9aa7
BLAKE2b-256 a6ab0c75857e78b4ce6312cf8f35a761388744db54f41a53b8e4b161732be89f

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