Skip to main content

aiosfstream

PyPI package Documentation Status Build status Coverage MIT license

aiosfstream is a Salesforce Streaming API client for asyncio. It can be used to receive push notifications about changes on Salesforce objects or notifications of general events sent through the Streaming API.

For detailed guidance on how to work with PushTopics or how to create Generic Streaming Channels please consult the Streaming API documentation. For working with Platform Events or Change Data Capture events check out the linked documentation.

Features

Usage

import asyncio

from aiosfstream import SalesforceStreamingClient


async def stream_events():
    # connect to Streaming API
    async with SalesforceStreamingClient(
            consumer_key="<consumer key>",
            consumer_secret="<consumer secret>",
            username="<username>",
            password="<password>") as client:

        # subscribe to topics
        await client.subscribe("/topic/one")
        await client.subscribe("/topic/two")

        # listen for incoming messages
        async for message in client:
            topic = message["channel"]
            data = message["data"]
            print(f"{topic}: {data}")

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(stream_events())

Documentation

http://aiosfstream.readthedocs.io/

Changelog

0.5.0 (2019-03-08)

  • Add support for Change Data Capture events

  • Fix some typos in the documentation

0.4.0 (2019-01-06)

  • Add type hints

  • Configurable replay storage behavior

0.3.0 (2018-11-07)

  • Add support for sandbox orgs

0.2.5 (2018-11-06)

  • Add missing changelog entries

0.2.4 (2018-11-06)

  • Fix platform event message creation date extraction issue

0.2.3 (2018-09-19)

  • Fix asynchronous iterator bug in python 3.7

0.2.2 (2018-06-15)

  • Update aiocometd dependency to 0.3.1

0.2.1 (2018-05-25)

  • Fix replay issues on mass record delete operations

  • Improve the documentation of the Client.publish method

0.2.0 (2018-05-05)

  • Enable the usage of third party JSON libraries

  • Expose authentication results as public attributes in Authenticator classes

0.1.0 (2018-04-26)

Metadata

Release files for aiosfstream-ng 0.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiosfstream-ng 0.7.5
File Size Uploaded Provenance Actions
aiosfstream-ng-0.7.5.tar.gz 64.4 kB Without provenance Details for aiosfstream-ng-0.7.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiosfstream-ng 0.7.5
File Interpreter ABI Platform Actions
aiosfstream_ng-0.7.5-py3-none-any.whl Python 3 none any Details for aiosfstream_ng-0.7.5-py3-none-any.whl

Total release size: 80.9 kB

Release files / aiosfstream-ng-0.7.5.tar.gz

Download URL aiosfstream-ng-0.7.5.tar.gz
Size 64.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b89983d99cce992c65771023ece8c7a6dc0e6938eab38ee8b3ace2fae974866f
BLAKE2b-256 checksum
How to use checksums
b4dddcf5a16177648410a1a8c7b29453c83569bf46b1ed9902ca03068d80c831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / aiosfstream_ng-0.7.5-py3-none-any.whl

Download URL aiosfstream_ng-0.7.5-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c9cfe6762609da2cbbbe8de1b86738aab3898055b5dc5c01d4efcfad719fedc
BLAKE2b-256 checksum
How to use checksums
83bec92c69bfe3d20cd16686f4fbb96bee76e3633d7adfc7b0f238fdc85ea452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for aiosfstream-ng 0.7.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page