Skip to main content

Receive Jetstream events from the AT Protocol

Project description

atproto_jetstream

Small, typed, and async package to receive Jetstream events from the AT Protocol.

install

Using your package manager, install the atproto_jetstream dependency.

  • pip install atproto_jetstream
  • uv add atproto_jetstream

usage

from asyncio import run
from atproto_jetstream import Jetstream, JetstreamOptions


async def main():
    options = JetstreamOptions("wss://jetstream1.us-east.bsky.network/subscribe")
    async with Jetstream(options) as stream:
        async for event in stream:
            match event.kind:
                case "account":
                    print(event.account)
                case "identity":
                    print(event.identity)
                case "commit":
                    print(event.commit)


if __name__ == "__main__":
    run(main())

development

You need to download the zstd_dictionary file from the Jetstream repository. A Make recipe is provided to do so:

make atproto_jetstream/zstd_dictionary

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

atproto_jetstream-0.3.0.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

atproto_jetstream-0.3.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file atproto_jetstream-0.3.0.tar.gz.

File metadata

  • Download URL: atproto_jetstream-0.3.0.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for atproto_jetstream-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fcae3b5c2c4784845da9ea10ac8c5a2746d032c5a644f64408e79b703914a70c
MD5 1836b527d7533b84e7b03b3638fabb5c
BLAKE2b-256 c38394f276d96a77135599aee165d6f20c12d1e2df090f9e1b164f5e49663597

See more details on using hashes here.

File details

Details for the file atproto_jetstream-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: atproto_jetstream-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for atproto_jetstream-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1586d21ec9ed9a7dfe4195fb742d54b97869dc19d44e8aa0a17add29b859d09
MD5 95f1e5ff4a7666a0bd6a4cd96ec233bc
BLAKE2b-256 95a261841bafa96d6d27f90712c3f8c99ac4fcdc7aa6be42820980507c9c1b81

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