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 run IMMP via Python as a module:

$ python -m 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.6.1.tar.gz (107.6 kB view details)

Uploaded Source

Built Distribution

IMMP-0.6.1-py3-none-any.whl (134.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: IMMP-0.6.1.tar.gz
  • Upload date:
  • Size: 107.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for IMMP-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b26f500ce9f0b6f7612ba65a91627918708d33eb155358dd522a026f5bbd1e21
MD5 ebd59954ab28b01551794cf176b1937a
BLAKE2b-256 dd7914d70b5b6845ad2d3af48bbd7b4f11f70ce567912ec142df813a5cef2baa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: IMMP-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 134.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for IMMP-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45055bc84c9d205f5841c1570ec966926c036a33ffde9a35c3f6ea18630e3ef0
MD5 09301082b222d01cb9e53567463d72a4
BLAKE2b-256 76f935b9dcd789b9e26d44eccea4f61da166f206d61720511a3501d7ab54dd29

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