Giter Site home page Giter Site logo

fastcast's Introduction

FASTCAST

FastCast is a simple broadcast messaging protocol we had to develop for Orisi. Right now it supports a single-server hub, but it should be possible to extend it into a distributed architecture, and to include a proof-of-work or proof-of-burn spam prevention.

FastCast is built as a simple web REST server based on Django Rest Framework. Here you can read how it compares to BitMessage.

You can explore API following e.g. those urls:

The default FASTCAST server is hub.orisi.org. You can install your own using this repo if you like.

Implementations

Bash

Posting new message

echo test > test.json

curl -X POST -S -H 'Accept: application/json' /  -F "source=s12332432" / -F "destination=s12332432" -F "channel=s12332432" -F "signature=signature" -F "body" 127.0.0.1:8000/last/

Getting messages from last 10 minutes

curl -X GET http://hub.orisi.org/last/?format=json

Python

Posting new message

import requests
url = 'http://54.77.58.8/'

payload = {

            "source": "1",
            "destination": "1",
            "channel": "1",
            "signature": "1",
            "body": "1",


}



r = requests.post(url, data=payload)

print r.text

Get messages from last 10 minutes

import requests
url = 'http://hub.orisi.org/last?format=json'
r = requests.get(url)

Get body

import requests

...

url = 'http://hub.orisi.org/storage' + message.body
r = requests.get(url)

fastcast's People

Contributors

83tb avatar kolinko avatar gricha avatar

Watchers

James Cloos avatar  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.