ncode / otto

S3 Clone on top of cyclone

Home Page:martinez.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Otto - S3 Clone on top of cyclone

  • supporting fs and riak backends for object storage

Requirements:

Usage:

Configuringa otto:

$ vim otto.cfg
[otto]
Port = 4000
#ObjectStorage = storage.FsObjectStorage
ObjectStorage = storage.RiakObjectStorage
#tmp_directory = /tmp/otto

Running otto:

$ twistd -ny otto.tac

Write:

$ curl --request PUT "http://localhost:4000/otto/"
$ curl --data-binary "@otto.py" --request PUT --header "Content-Type: text/plain" "http://localhost:4000/otto/otto.py"

Read:

$ curl "http://localhost:4000/otto/"
$ curl "http://localhost:4000/otto/otto.py"

Delete:

$ curl --request DELETE "http://localhost:4000/otto/otto.py"
$ curl --request DELETE "http://localhost:4000/otto/"

Project Status: Almost testing

Base on https://github.com/gleicon/3s and http://github.com/facebook/tornado/raw/master/tornado/s3server.py

About

S3 Clone on top of cyclone

martinez.io


Languages

Language:Python 81.7%Language:Shell 12.2%Language:PHP 3.3%Language:Makefile 2.8%