-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document report metrics docs got removed (#121)
- Loading branch information
Showing
30 changed files
with
691 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Query for Document Report | ||
**************************** | ||
|
||
.. literalinclude:: ../examples/get-document-report.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
***************** | ||
Document Report Metrics | ||
Document Report | ||
***************** | ||
|
||
.. autoclass:: indico.queries.document_report.GetDocumentReport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Query for Document Report | ||
**************************** | ||
|
||
.. literalinclude:: ../examples/get-document-report.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ Examples | |
submission-ex | ||
user-metrics-ex | ||
workflow-metrics-ex | ||
document-report-ex |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" > | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title>Query for Document Report — Indico Python Client 3.1.0 documentation</title> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="_static/css/indicotheme.css" type="text/css" /> | ||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="_static/css/indicotheme.css" type="text/css" /> | ||
|
||
|
||
|
||
<link rel="shortcut icon" href="_static/favicon.png"/> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!--[if lt IE 9]> | ||
<script src="_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
|
||
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> | ||
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> | ||
<script src="_static/jquery.js"></script> | ||
<script src="_static/underscore.js"></script> | ||
<script src="_static/doctools.js"></script> | ||
|
||
<script type="text/javascript" src="_static/js/theme.js"></script> | ||
|
||
|
||
<link rel="index" title="Index" href="genindex.html" /> | ||
<link rel="search" title="Search" href="search.html" /> | ||
<link rel="next" title="IndicoConfig" href="config.html" /> | ||
<link rel="prev" title="Fetching Workflow Metrics" href="workflow-metrics-ex.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
|
||
|
||
<div class="wy-grid-for-nav"> | ||
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" style="background: linear-gradient(to right top,#2c4658,#2f5f76,#2b7992,#2094ad,#04b1c6)" > | ||
|
||
|
||
|
||
<a href="index.html" class="icon icon-home"> Indico Python Client | ||
|
||
|
||
|
||
|
||
<img src="_static/logo-white.png" class="logo" alt="Logo"/> | ||
|
||
</a> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<ul class="current"> | ||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Getting Started</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="concepts.html">Key Concepts and Terminology</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="docextract-intro.html">OCR With DocumentExtraction</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="docextract_settings.html">DocumentExtraction Settings</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="model_predictions.html">Generating Model Predictions</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="workflow-intro.html">Workflows</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="review-intro.html">Review</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="auto-review.html">Auto Review</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="object-detection.html">Object Detection</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="migration.html">Migrating Client Library Scripts</a></li> | ||
<li class="toctree-l1 current"><a class="reference internal" href="examples.html">Examples</a><ul class="current"> | ||
<li class="toctree-l2"><a class="reference internal" href="graphql-ex.html">Simple GraphQL Query Example</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="train-predict-ex.html">Train a Classifier and Predict</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="singleocr-ex.html">OCR a Single File with DocumentExtraction</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="training-progress.html">Check Model Training Progress</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="workflow-ex.html">Run Files Through a Workflow</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="ocr-object-parse-ex.html">Parsing the OCR result at the document, page, and block levels</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="image-dataset-ex.html">Created a Dataset from Local Images</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="image-predictions-ex.html">Get Predictions from Image Model</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="submission-ex.html">Sending New Samples to a Workflow (aka Workflow Submission)</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="user-metrics-ex.html">Fetching User Metrics</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="workflow-metrics-ex.html">Fetching Workflow Metrics</a></li> | ||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Query for Document Report</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="config.html">IndicoConfig</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="client.html">IndicoClient</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="docextract.html">DocumentExtraction</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="datasets.html">Datasets</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="model_groups.html">Model Groups</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="jobs.html">Jobs and Job Status</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="submissions.html">Submissions</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="storage.html">Storage</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="workflow.html">Workflows</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="exports.html">Exports</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="filters.html">Filters</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="graphql_queries.html">Common GraphQL Queries</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="user_metrics.html">User Metrics</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="workflow-metrics.html">Workflow Metrics</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="document_report.html">Document Report Metrics</a></li> | ||
</ul> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="dataset-type.html">Dataset Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="jobs-type.html">Jobs Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="model-group-type.html">Model Group Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="model-type.html">Model Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="user-metrics-types.html">User Metrics Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="workflow-metrics-types.html">Workflow Metrics Types</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="document_report_types.html">Document Report Metrics Types</a></li> | ||
</ul> | ||
|
||
|
||
|
||
</div> | ||
|
||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> | ||
|
||
|
||
<nav class="wy-nav-top" aria-label="top navigation"> | ||
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="index.html">Indico Python Client</a> | ||
|
||
</nav> | ||
|
||
|
||
<div class="wy-nav-content"> | ||
|
||
<div class="rst-content"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="navigation" aria-label="breadcrumbs navigation"> | ||
|
||
<ul class="wy-breadcrumbs"> | ||
|
||
<li><a href="index.html" class="icon icon-home"></a> »</li> | ||
|
||
<li><a href="examples.html">Examples</a> »</li> | ||
|
||
<li>Query for Document Report</li> | ||
|
||
|
||
<li class="wy-breadcrumbs-aside"> | ||
|
||
|
||
<a href="_sources/document-report-ex.rst.txt" rel="nofollow"> View page source</a> | ||
|
||
|
||
</li> | ||
|
||
</ul> | ||
|
||
|
||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<div class="section" id="query-for-document-report"> | ||
<h1>Query for Document Report<a class="headerlink" href="#query-for-document-report" title="Permalink to this headline">¶</a></h1> | ||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span> | ||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span> | ||
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span> | ||
<span class="kn">from</span> <span class="nn">indico</span> <span class="kn">import</span> <span class="n">IndicoConfig</span><span class="p">,</span> <span class="n">IndicoClient</span> | ||
<span class="kn">from</span> <span class="nn">indico.queries.document_report</span> <span class="kn">import</span> <span class="n">GetDocumentReport</span> | ||
<span class="kn">from</span> <span class="nn">indico.types.document_report</span> <span class="kn">import</span> <span class="n">DocumentReport</span> | ||
<span class="kn">from</span> <span class="nn">indico.filters</span> <span class="kn">import</span> <span class="n">DocumentReportFilter</span> | ||
|
||
|
||
<span class="sd">"""Example 1: Document Report for a date range and page through the results"""</span> | ||
|
||
<span class="n">my_config</span> <span class="o">=</span> <span class="n">IndicoConfig</span><span class="p">(</span> | ||
<span class="n">host</span><span class="o">=</span><span class="s2">"app.indico.io"</span><span class="p">,</span> <span class="n">api_token_path</span><span class="o">=</span><span class="s2">"./path/to/indico_api_token.txt"</span> | ||
<span class="p">)</span> | ||
|
||
<span class="n">client</span> <span class="o">=</span> <span class="n">IndicoClient</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">my_config</span><span class="p">)</span> | ||
|
||
<span class="n">filter_opts</span> <span class="o">=</span> <span class="n">DocumentReportFilter</span><span class="p">(</span><span class="n">created_at_start_date</span><span class="o">=</span> <span class="n">datetime</span><span class="p">(</span><span class="mi">2021</span><span class="p">,</span><span class="mi">7</span><span class="p">,</span><span class="mi">1</span><span class="p">),</span> <span class="n">created_at_end_date</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">())</span> | ||
|
||
<span class="n">document_report</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">DocumentReport</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span> | ||
<span class="k">for</span> <span class="n">page</span> <span class="ow">in</span> <span class="n">client</span><span class="o">.</span><span class="n">paginate</span><span class="p">(</span><span class="n">GetDocumentReport</span><span class="p">(</span><span class="n">filters</span><span class="o">=</span><span class="n">filter_opts</span><span class="p">,</span> <span class="n">limit</span><span class="o">=</span><span class="mi">1000</span><span class="p">)):</span> | ||
<span class="n">document_report</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">page</span><span class="p">)</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
</div> | ||
<footer> | ||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> | ||
<a href="config.html" class="btn btn-neutral float-right" title="IndicoConfig" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> | ||
<a href="workflow-metrics-ex.html" class="btn btn-neutral float-left" title="Fetching Workflow Metrics" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> | ||
</div> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p> | ||
© Copyright 2020, Indico. | ||
|
||
</p> | ||
</div> | ||
|
||
|
||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
|
||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
|
||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
</footer> | ||
</div> | ||
</div> | ||
|
||
</section> | ||
|
||
</div> | ||
|
||
|
||
<script type="text/javascript"> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
Oops, something went wrong.