Zulip Loader
The Zulip Loader is a Python script that allows you to load data from Zulip streams using a Zulip bot's API token. It fetches messages from specified streams or all streams if none are specified, and returns a list of documents with the stream content.
Prerequisites
Create a Zulip bot and obtain its API token. Follow the instructions in the Zulip documentation to create a bot and get the API key (token).
Set the ZULIP_TOKEN environment variable to your Zulip bot's API token:
export ZULIP_TOKEN="your-zulip-bot-api-token"
Installation
You can install the Zulip Reader via pip:
pip install llama-index-readers-zulip
Usage
Use the ZulipReader class to load data from Zulip streams:
from zulip_loader import ZulipReader
# Initialize the ZulipReader with the bot's email and Zulip domain
reader = ZulipReader(
zulip_email="your-bot-email@your-zulip-domain.zulipchat.com",
zulip_domain="your-zulip-domain.zulipchat.com",
)
# Load data from all streams
data = reader.load_data(reader.get_all_streams())
# Load data from specific streams
stream_names = ["stream1", "stream2"]
data = reader.load_data(stream_names)
# This will return a list of documents containing the content of the specified streams.
For more customization, you can pass the reverse_chronological parameter to the load_data() method to indicate the order of messages in the output.
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.
Metadata
Release files for llama-index-readers-zulip 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llama_index_readers_zulip-0.6.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_zulip-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / llama_index_readers_zulip-0.6.0.tar.gz
| Download URL | llama_index_readers_zulip-0.6.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bac156f3a617d52f2bd70cd0f24e1517a983c02913c4ce869185e8303ad7ad2
|
|
BLAKE2b-256 checksum How to use checksums |
372b5df5f3c24ec7c8bd07fe23c3d9cb7d11e090812678ab539900b1e077d4f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_readers_zulip-0.6.0-py3-none-any.whl
| Download URL | llama_index_readers_zulip-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01f8d5b5d859d77d25b952c51db3a048fbc347a7593ef61dd94800531d77fa4b
|
|
BLAKE2b-256 checksum How to use checksums |
69db7dec59605a6f150313bd2a856ea2324b0948df984d473717e4ff4e7b0d36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-readers-zulip 0.6.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.