perceval-zulip
Perceval backend for Zulip.
Requirements
- Python >= 3.10
You will also need some other libraries for running the tool, you can find the whole list of dependencies in pyproject.toml file.
Prerequisites
Poetry
We use Poetry for managing the project. You can install it following these steps.
Installation
1. PyPI
Perceval Zulip backend can be installed using pip
It is advised to use a virtual environment
(.venv) $ pip install perceval-zulip
2. Getting the source code
Clone the repository
$ git clone https://github.com/vchrombie/grimoirelab-perceval-zulip perceval-zulip
$ cd perceval-zulip
Install the required dependencies (this will also create a virtual environment)
$ poetry install
Activate the virtual environment
$ poetry shell
Usage
Note: You need the email and the api_token (API key) from the server. You can use the user email and API key
for authentication or create a bot and use the bot email and API key.
Reference: About bots (Zulip Help Center).
(.venv) $ perceval zulip --help
[2021-09-20 15:57:22,523] - Sir Perceval is on his quest.
usage: perceval [-h] [--category CATEGORY] [--tag TAG] [--filter-classified] -t API_TOKEN
[--archive-path ARCHIVE_PATH] [--no-archive] [--fetch-archive]
[--archived-since ARCHIVED_SINCE] [--no-ssl-verify] [-o OUTFILE]
[--json-line] -e EMAIL
url stream
positional arguments:
url Zulip chat URL
stream Zulip chat stream name
optional arguments:
-h, --help show this help message and exit
authentication arguments:
-t API_TOKEN, --api-token API_TOKEN
backend authentication token / API key
zulip arguments:
-e EMAIL, --email EMAIL
Zulip bot/user email
Fetch messages from the importlib stream of the Python Zulip Server with the
bot email bot@zulipchat.com and API key xxxx
(.venv) $ perceval zulip https://python.zulipchat.com importlib -e bot@zulipchat.com -t xxxx
[2021-09-20 15:59:24,593] - Sir Perceval is on his quest.
{
...
Contributing
This project follows the contributing guidelines of the GrimoireLab.
Acknowledgment
The backend was initially developed by @vchrombie.
Adhering to the guidelines, the work is started in this external repository. But, this can be merged (chaoss/grimoirelab-perceval/#/667) into the Perceval repository in the future.
License
Licensed under GNU General Public License (GPL), version 3 or later.
Metadata
Release files for perceval-zulip 0.4.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 | |
|---|---|---|---|
| perceval_zulip-0.4.0.tar.gz | 21.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| perceval_zulip-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.5 kB
Release files / perceval_zulip-0.4.0.tar.gz
| Download URL | perceval_zulip-0.4.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71eeefe996dc753111edccfad8ea9d7c6dc56139b16d71937a393cb38c6c16a4
|
|
BLAKE2b-256 checksum How to use checksums |
68b429799cde3aa805933733e6254a693da8871c5aac02832ef9305a843377d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/6.11.0-1018-azure
|
Release files / perceval_zulip-0.4.0-py3-none-any.whl
| Download URL | perceval_zulip-0.4.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fce487b4d1adf01acc59e30109a476370273261e9ed43e1064aad9b2f70c0023
|
|
BLAKE2b-256 checksum How to use checksums |
4967641e14bc5448b3d7d252645cb482918d82ba45e882c7e576122ebbbd2e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/6.11.0-1018-azure
|