Skip to content

SuperInstance/plato-adapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

plato-adapters

PLATO adapter implementations — connect PLATO rooms to external services and protocols.

Adapters are the I/O layer for PLATO rooms. A room holds knowledge tiles internally; adapters move data in (via read()) and out (via write()). They're loaded by plato-core via entry_points and auto-discovered at startup.

Adapter Interface

Every adapter implements two methods:

from plato_core.adapters import BaseAdapter

class MyAdapter(BaseAdapter):
    def read(self):
        """Pull data into the room as tiles."""
        ...

    def write(self, tiles):
        """Push tiles to an external system."""
        ...

Usage

from plato_core import Room

room = Room("my-room")
room.add_adapter("http-source", url="https://api.example.com/data")
room.add_adapter("webhook-sink", url="https://hooks.example.com/incoming")

Status

Adapter implementations are in development. This repo will contain concrete adapters (HTTP source/sink, file watch, database, etc.) as they're built.

Related

About

PLATO adapter implementations — connect PLATO rooms to external services and protocols.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors