Perceval backend for Zulip.
Project description
perceval-zulip
Perceval backend for Zulip.
Requirements
- Python >= 3.8
- python3-requests >= 2.7
- grimoirelab-toolkit >= 0.3, <1.1
- perceval >= 1.0.2, <1.1
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.
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
Built Distribution
File details
Details for the file perceval_zulip-0.3.0.tar.gz
.
File metadata
- Download URL: perceval_zulip-0.3.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3adc16ff4f86f6b80cf98ea598207016c0168ecd746f23af3e494512a8ff704 |
|
MD5 | ab970f74f5beadf0cbbfbda90e74fda4 |
|
BLAKE2b-256 | 9032375701511bde564b7e926533c218abc4b77dd4a888e0f3419d930d22d7da |
File details
Details for the file perceval_zulip-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: perceval_zulip-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230861f2f1bc41c517676f8cc4abab02c34d3dabc28aae11426b2c894f67d6cf |
|
MD5 | b4d509e9472a898605416a7f8a1d7c49 |
|
BLAKE2b-256 | c65de7aa72cea2aacdec4002fe63486f43fa25b5894b69169fe8d0a279b4920e |