python cubes

Online Analytical Processing Framework for Python

Cubes is a light-weight Python framework and set of tools for development of reporting and analytical applications, Online Analytical Processing (OLAP), multidimensional analysis and browsing of aggregated data.

Cubes-document:http://pythonhosted.org/cubes
Cubes-github:http://github.com/Stiivi/cubes

windows下的cubes环境准备

  1. 安装python

2.安装setuptools

cmd 命令行执行

python ez_setup.py
exe安装 * 主页:http://pypi.python.org/pypi/setuptools/0.6c11 * 下载:https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe 3.安装pip * 主页:http://pypi.python.org/pypi/pip * 安装:http://www.pip-installer.org/en/latest/installing.html * 下载:http://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz 解压 cmd进入 命令行执行
python setup.py install

添加环境变量

%PY_HOME%Scripts

使用:
进入命令行,输入 “pip install package”,package为安装包名称。
比如:pip install sqlalchemy werkzeug jinja2
pip install cubes

其他命令:

pip search
pip help

$ pip install SomePackage
$ pip search “query”
1
$ pip install –upgrade SomePackage
2
$ pip install –upgrade SomePackage==version
补充:

包安装后的py文件路径(Linux):/usr/local/lib/python2.7/dist-packages

(Windows)C:python27libsite-packager

每个安装包都包含两个目录,一个目录是egg.info,另外一个是包的代码;其中,egg.info的解释如下

评论