joncutrer / pydweetserver

Dweet.io API Compliant REST Web Server written in Python/Flask/MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pydweetserver

Dweet.io API Compliant REST Web Server written in Python/Flask/MongoDB

Status: working but pending some refactoring

Prerequisites

  • Python 3.6
  • pip install pipenv
  • MongoDB Server running on localhost

Installation

This python project uses pipenv so after cloning the repo you will need to install dependencies.

git clone https://github.com/joncutrer/pydweetserver.git
cd pydweetserver
pipenv install

How to use it

By default the REST API webserver starts on port 5000

Start the server...

pipenv run python pydweetserver/app.py

Open http://localhost:5000/ to insure its runnning

Dweet something

http://localhost:5000/dweet/for/mything?foo=bar&temp=40&humidity=30

Fetch the latest Dweet

http://localhost:5000/get/latest/dweet/for/mything

Browse all your Dweets

There is a simple UI that will let you see you dweeted things

http://localhost:5000/see

The project aims to be API compatible with dweet.io, See: https://dweet.io/play/

About

Dweet.io API Compliant REST Web Server written in Python/Flask/MongoDB

License:MIT License


Languages

Language:Python 100.0%