Metadata-Version: 2.0
Name: qri
Version: 0.0.4
Summary: qri python client
Home-page: https://github.com/qri-io/qri-python
Author: Thomas Osterbind
Author-email: tom@qri.io
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Requires-Dist: pandas (>=0.22.0)

qri-python
========================

.. code-block:: python
  """
   ██████╗ ██████╗ ██╗
  ██╔═══██╗██╔══██╗██║
  ██║   ██║██████╔╝██║
  ██║▄▄ ██║██╔══██╗██║
  ╚██████╔╝██║  ██║██║
   ╚══▀▀═╝ ╚═╝  ╚═╝╚═╝
  """

qri python client


Installation
-------------

.. code:: bash

  pip install qri


Usage
---------

.. code:: python

  import qri

  # List datasets on your qri node
  qri.list_ds()

  """
  >>> [u'movies', u'airports', ..., u'detroit_exposure_and_aerosol', ]
  """

  # Load a dataset by referencing its name
  movies = qri.load_ds("movies")

  #access metadata
  movies.title
  """
  >>> u'imdb-5000-movie-dataset'
  """

  movies.name
  """
  >>> u'movies'
  """

  movies.description
  """
  >>> u"This is a dataset of 5000 films sourced from the Internet Movie Databse (IMDB) with relevant information on the films' production (director, actors, etc) and critical reception (IMDB score, facebook likes etc) among other details"
  """

  #access data
  movies.df
  """ #returns pandas DataFrame containing the data

                   color       director_name  num_critic_for_reviews  duration  \
  0                Color       James Cameron                   723.0     178.0
  1                Color      Gore Verbinski                   302.0     169.0
  2                Color          Sam Mendes                   602.0     148.0
  3                Color   Christopher Nolan                   813.0     164.0
  4                  NaN         Doug Walker                     NaN       NaN
  5                Color      Andrew Stanton                   462.0     132.0
  6                Color           Sam Raimi                   392.0     156.0
  ...

  """

  # remove/delete a dataset
  qri.remove_ds("movies")




