All Projects → robertmrk → aiosfstream

robertmrk / aiosfstream

Licence: MIT license
Salesforce Streaming API client for asyncio

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to aiosfstream

Restbed
Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
Stars: ✭ 1,551 (+3271.74%)
Mutual labels:  comet, push
canvas-starter-kit
A template for developing on the Salesforce Canvas platform in Javascript.
Stars: ✭ 23 (-50%)
Mutual labels:  salesforce
homebridge-http-rgb-push
Homebridge plugin to control a web/http-based RGB device.
Stars: ✭ 16 (-65.22%)
Mutual labels:  push
texei-sfdx-plugin
Texeï's plugin for sfdx
Stars: ✭ 99 (+115.22%)
Mutual labels:  salesforce
sfdx-git-packager
Generates a "delta" metadata package based on the difference between two git refs (branches/commits)
Stars: ✭ 93 (+102.17%)
Mutual labels:  salesforce
epns
📱 Erlang Push Notifications. APNS(Apple Push Notifications) and FCM(Firebase Cloud Messaging) Push Notifications
Stars: ✭ 13 (-71.74%)
Mutual labels:  push
aiohttp-sentry
An aiohttp server middleware for reporting failed requests to Sentry
Stars: ✭ 35 (-23.91%)
Mutual labels:  aiohttp
aiosocksy
SOCKS proxy client for aiohttp 3.x
Stars: ✭ 31 (-32.61%)
Mutual labels:  aiohttp
ApexCallouts
A lightweight Apex library for making HTTP callouts. Works with remote site settings and named credentials.
Stars: ✭ 32 (-30.43%)
Mutual labels:  salesforce
aiohttp-login
Registration and authorization (including social) for aiohttp apps.
Stars: ✭ 53 (+15.22%)
Mutual labels:  aiohttp
cettia-java-server
A full-featured real-time web application framework for Java
Stars: ✭ 40 (-13.04%)
Mutual labels:  comet
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (-4.35%)
Mutual labels:  push
pushd
An open source distributed pubsub/IM server
Stars: ✭ 30 (-34.78%)
Mutual labels:  push
CometJS
Desktop Development built up on, Javascript, HTML, CSS, Chromium and Firefox.
Stars: ✭ 12 (-73.91%)
Mutual labels:  comet
R.apex
Functional utility library for Apex
Stars: ✭ 80 (+73.91%)
Mutual labels:  salesforce
aiohttp-client-cache
An async persistent cache for aiohttp requests
Stars: ✭ 63 (+36.96%)
Mutual labels:  aiohttp
fast
fast.com cli speedtest
Stars: ✭ 46 (+0%)
Mutual labels:  aiohttp
dazzler
Python UI/Web Framework
Stars: ✭ 17 (-63.04%)
Mutual labels:  aiohttp
cirrina
cirrina is an opinionated asynchronous web framework based on aiohttp
Stars: ✭ 32 (-30.43%)
Mutual labels:  aiohttp
comet-server
CppComet - easy to use and fast in work.
Stars: ✭ 57 (+23.91%)
Mutual labels:  comet

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/

Install

pip install aiosfstream

Requirements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].