Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A modular processing platform for instant messages.

License

NotificationsYou must be signed in to change notification settings

Terrance/IMMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A modular processing platform for instant messages.

Requirements

This project uses the latest and greatest Python features (that is, native asyncio syntax andasynchronous generators), and therefore requires at leastPython 3.7.

Additional modules are required for most plugs and hooks -- consult the docs for each module youwant to use to check its own requirements, or use the included requirements list to install allpossible 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 contentto 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.DemoPlugconfig:api-key:xyzzychannels:foo:plug:demosource:12345bar:plug:demosource:98765hooks:test:path:test.TestHookconfig:channels:[foo, bar]args:[123, 456]

All labels under the top-level names are effectively free text, and are used to reference fromother sections.

Then start the built-in runner:

$ immp config.yaml

[8]ページ先頭

©2009-2025 Movatter.jp