🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

eric-api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eric-api

A Server side events based messaging microservice implementation

1.3.0
Maintainers
1

A ready-to-use SSE messaging microservice implementation. Intended for internal use only (all is public here by the moment).

Backend documentation https://laxertu.github.io/eric/docs.html
REST services rely on FastApi + Uvicorn

Features:

  • channel subscription
  • broadcasting
  • message deliver to one client
  • SSE compliant streaming

Installation:

pip install eric-api

With docker (example)

docker build -t eric-api-image .

Start webserver

uvicorn eric_api:app

With docker (example)

docker container start eric-api

Redis persistence support

Activate it by creating a .eric-api.env with the following:

QUEUES_FACTORY=redis

API documentation is available at http://127.0.0.1:8000/docs by default

See correspondant uvicorn configuration https://www.uvicorn.org/deployment/#running-from-the-command-line

Bug Tracker: https://github.com/laxertu/eric-api/issues

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts