Skip to main content
https://secure.travis-ci.org/modilabs/bamboo.png?branch=master

bamboo is an application that systematizes realtime data analysis. bamboo provides an interface for merging, aggregating and adding algebraic calculations to dynamic datasets. Clients can interact with bamboo through a a REST web interface and through Python.

bamboo supports a simple querying language to build calculations (e.g. student teacher ratio) and aggregations (e.g. average number of students per district) from datasets. These are updated as new data is received.

bamboo is open source software released under the 3-clause BSD license, which is also known as the “Modified BSD License”.

Dependencies

  • python (tested on version 2.7)

  • mongodb

for numpy, pandas, and scipy (in requirements.pip):

on Arch Linux: # pacman -S blas lapack gcc-fortran

on Debian based: # apt-get install gfortran libatlas-base-dev

Using as a Python Libary

Installation

$ pip install bamboo-data

Python pip package for bamboo.

Usage

import bamboo as bm
from bamboo.lib.io import create_dataset_from_url

bf = bm.BambooFrame([{'date': '2012-12-21'}])
bff = bf.recognize_dates()
bff.to_json()

>>> '[{"date": {"$date": 1356048000000}}]'

# Turn asyncronous processing off
bm.set_async(False)

url = 'http://formhub.org/mberg/forms/good_eats/data.csv'
dataset = create_dataset_from_url(url)
dataset.schema

>>> {u'_gps_altitude': {u'cardinality': 14, u'label': u'_gps_altitude', ...

Installation

$ ./scripts/install.sh

Example Usage

On the remote server

running the example basic commands

$ ./scripts/commands.sh

using bamboo.JS

var dataset = new bamboo.Dataset({url: 'http://bitly.com/ZfzBwP'});
bamboo.dataset_exists('nonexistentdataset_id');
dataset.query_info();
...

using pybamboo

from pybamboo import PyBamboo
pybamboo = PyBamboo()
response = pybamboo.store_csv_file('http://formhub.org/mberg/forms/good_eats/data.csv')
dataset_id = response['id']
...

posting a dataset

$ curl -X POST -d "url=http://formhub.org/mberg/forms/good_eats/data.csv" http://bamboo.io/datasets

Documentation

Viewing Documentation

The latest docs are available at http://bamboo.io/

About

Join the bamboo-dev mailing list.

bamboo is an open source project. The project features, in chronological order, the combined efforts of

  • Peter Lubell-Doughtie

  • Mark Johnston

and other developers.

Projects using bamboo

  • formhub - Mobile Data Collection made easy

  • AFSIS - Africa Soil Information Service

Is your project using bamboo? Let us know!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bamboo-data-0.5.5.tar.gz (75.5 kB view details)

Uploaded Source

File details

Details for the file bamboo-data-0.5.5.tar.gz.

File metadata

  • Download URL: bamboo-data-0.5.5.tar.gz
  • Upload date:
  • Size: 75.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bamboo-data-0.5.5.tar.gz
Algorithm Hash digest
SHA256 eb30e57637459a4d9f961f96144a21cc950f85867476e0eb5a15a3219bd97dc5
MD5 d370b0bec0017252bc38e1a30098ceb1
BLAKE2b-256 d6e28e3ab02308809ce3a97001b75b7dc1eed5249483dc74b1713e74f36a8c6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page