Skip to main content

Fustor HTTP Sender - Transport layer for Agent to Fusion communication

Project description

fustor-sender-http

HTTP Sender for Fustor Agent - implements the transport layer for Agent to Fusion communication.

Overview

This package provides an HTTP-based implementation of the Sender transport abstraction. It uses the Fusion SDK client to communicate with Fusion's REST API.

Installation

pip install fustor-sender-http

Usage

from fustor_sender_http import HTTPSender

sender = HTTPSender(
    sender_id="my-sender",
    endpoint="http://fusion.example.com:8000",
    credential={"api_key": "your-api-key"}
)

# Create session
await sender.connect()
session = await sender.create_session("my-task-id")

# Send events
await sender.send_events(events, source_type="message")

# Heartbeat
await sender.heartbeat()

# Cleanup
await sender.close()

Entry Points

This package registers itself as:

  • fustor.senders:http - New sender registry
  • fustor_agent.drivers.senders:fusion - Legacy sender registry (backward compat)

Migration from fustor-sender-fusion

The fustor-sender-fusion package is deprecated. To migrate:

  1. Replace from fustor_sender_fusion import FusionDriver with from fustor_sender_http import HTTPSender
  2. Update configuration to use sender instead of sender terminology
  3. The HTTPSender class implements the new Sender interface but maintains API compatibility

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

fustor_sender_http-0.8.13.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

fustor_sender_http-0.8.13-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file fustor_sender_http-0.8.13.tar.gz.

File metadata

  • Download URL: fustor_sender_http-0.8.13.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fustor_sender_http-0.8.13.tar.gz
Algorithm Hash digest
SHA256 47810ee33bd2f2b7665db9fee5031cbb66c6121abbce7ed718c03c2a5a1d82d0
MD5 3eac2561bb6e9403b47c2b2d6e862e9a
BLAKE2b-256 737410b9476e1f9b1f01f323fcf7a504a4e84040d4817cc58e028f8326615250

See more details on using hashes here.

File details

Details for the file fustor_sender_http-0.8.13-py3-none-any.whl.

File metadata

File hashes

Hashes for fustor_sender_http-0.8.13-py3-none-any.whl
Algorithm Hash digest
SHA256 e8314efb5386dce41077bd78a25e2a6d159b889abc14d1450071187efbefbea7
MD5 edba540e7c686b6b0e103c94f6d1e2eb
BLAKE2b-256 f5a06424b48e2361f1b2e67d50e32be6f118f5fa1c8241bddddfe9f37e360c65

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