RadonMetrics/Documentation/source/Plugin_Metrics_Radon.RadonMetrics.CodeMetricsCalculator.html

changeset 14
5f206edea27e
child 43
53dbd4f4d6c2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RadonMetrics/Documentation/source/Plugin_Metrics_Radon.RadonMetrics.CodeMetricsCalculator.html	Sat Sep 19 20:00:54 2015 +0200
@@ -0,0 +1,201 @@
+<!DOCTYPE html>
+<html><head>
+<title>Plugin_Metrics_Radon.RadonMetrics.CodeMetricsCalculator</title>
+<meta charset="UTF-8">
+<style>
+body {
+    background: #EDECE6;
+    margin: 0em 1em 10em 1em;
+    color: black;
+}
+
+h1 { color: white; background: #85774A; }
+h2 { color: white; background: #85774A; }
+h3 { color: white; background: #9D936E; }
+h4 { color: white; background: #9D936E; }
+    
+a { color: #BA6D36; }
+
+</style>
+</head>
+<body><a NAME="top" ID="top"></a>
+<h1>Plugin_Metrics_Radon.RadonMetrics.CodeMetricsCalculator</h1>
+<p>
+Module implementing the raw code metrics service.
+</p>
+<h3>Global Attributes</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Classes</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Functions</h3>
+<table>
+<tr>
+<td><a href="#__raw2Dict">__raw2Dict</a></td>
+<td>Private function to convert an object holding raw analysis results into a dictionary.</td>
+</tr><tr>
+<td><a href="#__rawCodeMetrics">__rawCodeMetrics</a></td>
+<td>Private function to calculate the raw code metrics for one Python file.</td>
+</tr><tr>
+<td><a href="#batchRawCodeMetrics">batchRawCodeMetrics</a></td>
+<td>Module function to calculate the raw code metrics for a batch of files.</td>
+</tr><tr>
+<td><a href="#initBatchService">initBatchService</a></td>
+<td>Initialize the batch service and return the entry point.</td>
+</tr><tr>
+<td><a href="#initService">initService</a></td>
+<td>Initialize the service and return the entry point.</td>
+</tr><tr>
+<td><a href="#rawCodeMetrics">rawCodeMetrics</a></td>
+<td>Private function to calculate the raw code metrics of one file.</td>
+</tr><tr>
+<td><a href="#worker">worker</a></td>
+<td>Module function acting as the parallel worker for the raw code metrics calculation.</td>
+</tr>
+</table>
+<hr /><hr />
+<a NAME="__raw2Dict" ID="__raw2Dict"></a>
+<h2>__raw2Dict</h2>
+<b>__raw2Dict</b>(<i>obj</i>)
+<p>
+    Private function to convert an object holding raw analysis results into a
+    dictionary.
+</p><dl>
+<dt><i>obj</i> (radon.raw.Module)</dt>
+<dd>
+object as returned from analyze()
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+conversion result
+</dd>
+</dl><dl>
+<dt>Return Type:</dt>
+<dd>
+dict
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="__rawCodeMetrics" ID="__rawCodeMetrics"></a>
+<h2>__rawCodeMetrics</h2>
+<b>__rawCodeMetrics</b>(<i>file, text=""</i>)
+<p>
+    Private function to calculate the raw code metrics for one Python file.
+</p><dl>
+<dt><i>file</i> (str)</dt>
+<dd>
+source filename
+</dd><dt><i>text</i> (str)</dt>
+<dd>
+source text
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+tuple containing the result dictionary
+</dd>
+</dl><dl>
+<dt>Return Type:</dt>
+<dd>
+(tuple of dict)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="batchRawCodeMetrics" ID="batchRawCodeMetrics"></a>
+<h2>batchRawCodeMetrics</h2>
+<b>batchRawCodeMetrics</b>(<i>argumentsList, send, fx, cancelled</i>)
+<p>
+    Module function to calculate the raw code metrics for a batch of files.
+</p><dl>
+<dt><i>argumentsList</i> (list)</dt>
+<dd>
+list of arguments tuples as given for rawCodeMetrics
+</dd><dt><i>send</i> (function)</dt>
+<dd>
+reference to send function
+</dd><dt><i>fx</i> (str)</dt>
+<dd>
+registered service name
+</dd><dt><i>cancelled</i> (function)</dt>
+<dd>
+reference to function checking for a cancellation
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="initBatchService" ID="initBatchService"></a>
+<h2>initBatchService</h2>
+<b>initBatchService</b>(<i></i>)
+<p>
+    Initialize the batch service and return the entry point.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+the entry point for the background client (function)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="initService" ID="initService"></a>
+<h2>initService</h2>
+<b>initService</b>(<i></i>)
+<p>
+    Initialize the service and return the entry point.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+the entry point for the background client (function)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="rawCodeMetrics" ID="rawCodeMetrics"></a>
+<h2>rawCodeMetrics</h2>
+<b>rawCodeMetrics</b>(<i>file, text=""</i>)
+<p>
+    Private function to calculate the raw code metrics of one file.
+</p><dl>
+<dt><i>file</i> (str)</dt>
+<dd>
+source filename
+</dd><dt><i>text</i> (str)</dt>
+<dd>
+source text
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+tuple containing the result dictionary
+</dd>
+</dl><dl>
+<dt>Return Type:</dt>
+<dd>
+(tuple of dict)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="worker" ID="worker"></a>
+<h2>worker</h2>
+<b>worker</b>(<i>input, output</i>)
+<p>
+    Module function acting as the parallel worker for the raw code metrics
+    calculation.
+</p><dl>
+<dt><i>input</i> (multiprocessing.Queue)</dt>
+<dd>
+input queue
+</dd><dt><i>output</i> (multiprocessing.Queue)</dt>
+<dd>
+output queue
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial