Skip to main content

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.6.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IMMP-0.9.2.tar.gz (128.7 kB view details)

Uploaded Source

Built Distribution

IMMP-0.9.2-py3-none-any.whl (152.4 kB view details)

Uploaded Python 3

File details

Details for the file IMMP-0.9.2.tar.gz.

File metadata

  • Download URL: IMMP-0.9.2.tar.gz
  • Upload date:
  • Size: 128.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for IMMP-0.9.2.tar.gz
Algorithm Hash digest
SHA256 7315d7f4c1b7e5f621bd98af256db541fbb8bf309f44589188b2d70125e0d25b
MD5 a32e7ab82f9858b8e5943e59d56325b6
BLAKE2b-256 79b0ac8fa7ea8d023143b2b105d0a8bc26169a98442b0c8c9aabd3e38773ad33

See more details on using hashes here.

File details

Details for the file IMMP-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: IMMP-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 152.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for IMMP-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b6c3b01d55041b668f0e0245e679a1e91500802dcd5b97147915e1fce747a7
MD5 242a72a771f735b18f4bc3866843b8f5
BLAKE2b-256 05b7d4e8667e844544b261e582c6f2c085e6ca6b77f74b218227de011fce23fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page