Skip to main content

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

Metadata

Release files for atproto_jetstream 0.3.0

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

Source distribution (sdist)

Source distribution for atproto_jetstream 0.3.0
File Size Uploaded Provenance
atproto_jetstream-0.3.0.tar.gz 41.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for atproto_jetstream 0.3.0
File Interpreter ABI Platform
atproto_jetstream-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 84.1 kB

Release files / atproto_jetstream-0.3.0.tar.gz

Download URL atproto_jetstream-0.3.0.tar.gz
Size 41.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fcae3b5c2c4784845da9ea10ac8c5a2746d032c5a644f64408e79b703914a70c
BLAKE2b-256 checksum
How to use checksums
c38394f276d96a77135599aee165d6f20c12d1e2df090f9e1b164f5e49663597
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / atproto_jetstream-0.3.0-py3-none-any.whl

Download URL atproto_jetstream-0.3.0-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1586d21ec9ed9a7dfe4195fb742d54b97869dc19d44e8aa0a17add29b859d09
BLAKE2b-256 checksum
How to use checksums
95a261841bafa96d6d27f90712c3f8c99ac4fcdc7aa6be42820980507c9c1b81
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for atproto_jetstream 0.3.0

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