GithubHelp home page GithubHelp logo

kamaal44 / hpfeeds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpfeeds/hpfeeds

0.0 1.0 0.0 1023 KB

Honeynet Project generic authenticated datafeed protocol

Home Page: https://github.com/hpfeeds/hpfeeds

License: GNU General Public License v3.0

Python 99.69% Dockerfile 0.31%

hpfeeds's Introduction

hpfeeds

PyPI Codecov Read the Docs

About

hpfeeds is a lightweight authenticated publish-subscribe protocol. It has a simple wire-format so that everyone is able to subscribe to the feeds with their favorite language in almost no time. Different feeds are separated by channels and support arbitrary binary payloads. This means that the channel users decide the structure of data. It is common to pass JSON over hpfeeds.

This project aims to deliver a modern python 3 compatible broker written on top of asyncio as well as a python 3 compatible client.

Installation

The core client does not have any dependencies. You can install it with with pip.

pip install hpfeeds

You can run a command line tail of a hpfeeds channel with the command line:

hpfeeds subscribe --host localhost -p 10000 -i myident -s mysecret -c mychannel

You can also publish a single event too:

hpfeeds publish --host localhost -p 10000 -i myident -s mysecret -c mychannel '{"event": "ping"}'

You can install the broker dependencies with pip too:

pip install hpfeeds[broker]

You can also run a broker with Docker:

docker run -p "0.0.0.0:20000:20000" -p "0.0.0.0:9431:9431" hpfeeds/hpfeeds-broker:latest

It will store access keys in an sqlite database in /app/var. The sqlite client installed in the container for managing access. You should make sure /app/var is a volume. Your clients can connect to port 20000, and prometheus can connect on port 9431.

More detailed documentation is available at https://python.hpfeeds.org.

hpfeeds's People

Contributors

arthurclune avatar bg6cq avatar botherder avatar buffer avatar chenjj avatar crondaemon avatar dependabot[bot] avatar glaslos avatar jaegeral avatar jatrost avatar jc2k avatar johnnykv avatar katkad avatar kevthehermit avatar malphx avatar maniactwister avatar mzweilin avatar rep avatar tillmannw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.