Changes between Version 13 and Version 14 of S3/S3Report
- Timestamp:
- 04/19/12 22:57:14 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Report
v13 v14 1 = S3Cube = 1 2 [[TOC]] 2 3 = S3Cube =4 3 5 4 S3Cube is a REST method handler for data analysis. … … 14 13 15 14 Pyvttbl requires the following Python modules: 16 17 15 - numpy 18 16 - matplotlib 19 20 Python 2.7 is recommended for S3Cube, however it would work with Python 2.6.21 17 22 18 [=#url_methods] 23 19 == URL Methods == 24 20 25 S3Cube responds to the {{{ analyze}}} URL method, for ''all'' resources (generic method).21 S3Cube responds to the {{{report}}} URL method, for ''all'' resources (generic method). 26 22 27 23 The following parameters are accepted: … … 49 45 == Examples == 50 46 51 - http://localhost:8000/eden/org/organisation/ analyze?rows=country&cols=sector_id&fact=name52 - http://localhost:8000/eden/pr/person/ analyze?rows=age_group&cols=gender&fact=id&aggregate=count47 - http://localhost:8000/eden/org/organisation/report?rows=country&cols=sector_id&fact=name 48 - http://localhost:8000/eden/pr/person/report?rows=age_group&cols=gender&fact=id&aggregate=count 53 49 54 50 $-notation for references: 55 51 56 - http://localhost:8000/eden/org/office/ analyze?rows=location_id$parent&cols=type&fact=name52 - http://localhost:8000/eden/org/office/report?rows=location_id$parent&cols=type&fact=name 57 53 58 54 reduced parameter list: 59 55 60 - http://localhost:8000/eden/org/office/ analyze?rows=type&aggregate=count61 - http://localhost:8000/eden/org/organisation/ analyze?rows=sector_id56 - http://localhost:8000/eden/org/office/report?rows=type&aggregate=count 57 - http://localhost:8000/eden/org/organisation/report?rows=sector_id 62 58 63 59 == Report Options == … … 71 67 Here is an example of a `report_options` item: 72 68 {{{#!python 73 report_options =Storage(74 rows =report_fields,75 cols =report_fields,76 facts =report_fields,77 defaults =Storage(78 rows ="project_id",79 cols ="name",80 fact ="time_actual",81 aggregate ="sum",82 totals =True69 report_options = Storage( 70 rows = report_fields, 71 cols = report_fields, 72 facts = report_fields, 73 defaults = Storage( 74 rows = "project_id", 75 cols = "name", 76 fact = "time_actual", 77 aggregate = "sum", 78 totals = True 83 79 ) 84 80 }}}