Giter VIP home page Giter VIP logo

dat-python's Introduction

DAT Python API

What is Dat?

Dat is a open data project designed to make data more accessible:

  • Track incremental changes made in datasets
  • Designed to work with big data
  • streaming feature to provide faster access to datasets

Read the docs to learn more about Dat.

Instructions

  1. Clone Dat-Python repo git clone https://github.com/pkafei/Dat-Python

  2. Create a dat using using dat init and to listen to your dat run dat listen

  3. Import Dat from datPython import Dat and set dat to the connection that you are listening to dat = Dat('http://localhost:6462')

DAT GET

The GET API allows user to access dat data store and its attributes.

DAT Info

dat.info() returns info about dat instance

{"dat":"Hello","version":"6.8.4","changes":702,"name":"bionode","rows":701,"approximateSize":{"rows":"136.76 kB"}}

DAT Diff

dat.diff() returns the rows that have been changed

{"change":1,"key":"schema","from":0,"to":1,"subset":"internal"}
{"change":2,"key":"ci1fj4cqd00004buy9jabbyz0","from":0,"to":1}
{"change":3,"key":"ci1fj4cqf00014buyoa2m4ad2","from":0,"to":1}
{"change":4,"key":"ci1fj4cqg00024buyfkbap6h2","from":0,"to":1}
{"change":5,"key":"ci1fj4cqg00034buysgolrtcr","from":0,"to":1}
{"change":6,"key":"ci1fj4cqg00044buyn9w7cc2n","from":0,"to":1}
{"change":7,"key":"ci1fj4cqi00054buyzmivu7j7","from":0,"to":1}
{"change":8,"key":"ci1fj4cqj00064buyvwbnvn3k","from":0,"to":1}

DAT Rows

dat.rows() returns the dat data store

DAT Csv

dat.csv() returns data store in csv format

DAT Dic

dat.dict returns data store in dictionary format

Future Goals:

BSD Licensed

Copyright (c) 2014 Portia Burton and contributors All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

dat-python's People

Contributors

pkafei 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.