Commit 486fcab6 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

First open-source commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+8 −0
Original line number Diff line number Diff line
.DS_STORE
build
dist
*egg-info
*.pyc

# Proto
kinetic/kinetic_pb2.py

LICENSE/LGPL2.1.md

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.

LICENSE/LGPL2.1.txt

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.

README.md

0 → 100644
+37 −0
Original line number Diff line number Diff line
Introduction
========
This repository hosts the preliminary phase of the Kinetic Python Client source code. Improvements of this repo will be added in the near future to provide examples and documentation.

Initial Setup
=============

    git clone https://github.com/Seagate/kinetic-py.git
    
Running Tests
=============

    python test/

Installing from Source
======================

    sh compile_proto.sh
    python setup.py develop

Getting Started with Client API
========================

```python
from kinetic import Client
c = Client('localhost', 8123)
c.put('message','hello world')
print c.get('message').value
```
Should print out _hello_ _world_

License
-------

This project is licensed under GNU Lesser General Public License, version 2.1 
* [Markdown](LICENSE/LGPL2.1.md) version
* [Original](LICENSE/LGPL2.1.txt) version

compile_proto.sh

0 → 100755
+9 −0
Original line number Diff line number Diff line
#!/bin/sh

BASE_DIR=$(cd "$(dirname "$0")"; pwd)
PROTO_DIR=/tmp/kinetic-protocol
PROTO=https://raw.githubusercontent.com/Seagate/kinetic-protocol/9c6b4a180a70f8488c5d8ec8e8a6464c4ff63f84/kinetic.proto

mkdir $PROTO_DIR
wget $PROTO -O $PROTO_DIR/kinetic.proto
protoc -I $PROTO_DIR --python_out=$BASE_DIR/kinetic $PROTO_DIR/kinetic.proto