A modular processing platform for instant messages.
Project description
A modular processing platform for instant messages.
Requirements
This project uses the latest and greatest Python features (that is, native asyncio syntax and asynchronous generators), and therefore requires at least Python 3.7.
Additional modules are required for most plugs and hooks – consult the docs for each module you want to use to check its own requirements, or use the included requirements list to install all possible dependencies for built-in modules.
Terminology
- Network
An external service that provides message-based communication.
- Message
A unit of data, which can include text, images, attachments, authorship, and so on.
- User
An individual or service which can author messages on a network.
- Plug
A handler for all communication with an external network, transforming the network’s content to message objects and back again.
- Channel
A single room in an external network – a source of messages, and often a container of users.
- Group
A collection of plugs and channels.
- Hook
A worker that processes a stream of incoming messages, in whichever way it sees fit.
Basic usage
Prepare a config file in a format of your choosing, e.g. in YAML:
plugs:
demo:
path: demo.DemoPlug
config:
api-key: xyzzy
channels:
foo:
plug: demo
source: 12345
bar:
plug: demo
source: 98765
hooks:
test:
path: test.TestHook
config:
channels: [foo, bar]
args: [123, 456]
All labels under the top-level names are effectively free text, and are used to reference from other sections.
Then start the built-in runner:
$ immp config.yaml
Project details
Release history Release notifications | RSS feed
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 IMMP-0.12.0.tar.gz
.
File metadata
- Download URL: IMMP-0.12.0.tar.gz
- Upload date:
- Size: 148.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4650356a00731bcd89def0b63fc88ed9c00722e7fd08ed9a3894c7b4181ad2cd |
|
MD5 | ef84e68ddbc8981cab0dea396eeeb4a7 |
|
BLAKE2b-256 | b93847b396c080f13dbd1a1322fc3e43fd2f686718b5b5d9e546ce40d1609176 |
File details
Details for the file IMMP-0.12.0-py3-none-any.whl
.
File metadata
- Download URL: IMMP-0.12.0-py3-none-any.whl
- Upload date:
- Size: 172.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5fd55ce6a661fb778121eab139c626e9ea4ae8c04e3ad4cc229a0d26ed4fca7 |
|
MD5 | 66c88ab3862f8ae62a4875257943786e |
|
BLAKE2b-256 | 75589edc3e17ee27909d0d141b3fccaffb1ee1eeb27f9fef928ceb058a45db5f |