-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: More on Python classes and how to get them. Rename to how-to.
- Loading branch information
Showing
17 changed files
with
171 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
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
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,10 @@ | ||
How To | ||
====== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
create-export.rst | ||
query.rst | ||
import.rst | ||
create-aggregates.rst |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Python API | ||
========== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
store.rst | ||
metric.rst | ||
observation_list.rst | ||
observation.rst | ||
|
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,24 @@ | ||
Metric | ||
====== | ||
|
||
Getting a metric | ||
---------------- | ||
|
||
Do not construct a metric directly. Instead, use one of these methods on a store. | ||
|
||
|
||
.. autofunction:: ocdsmetricsanalysis.library.Store.get_metric | ||
:noindex: | ||
|
||
|
||
.. autofunction:: ocdsmetricsanalysis.library.Store.get_metrics | ||
:noindex: | ||
|
||
|
||
|
||
Class reference | ||
--------------- | ||
|
||
.. autoclass:: ocdsmetricsanalysis.library.Metric | ||
:members: | ||
:undoc-members: |
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,24 @@ | ||
Observation | ||
=========== | ||
|
||
|
||
|
||
Getting an observation | ||
---------------------- | ||
|
||
Do not construct an Observation directly. Instead, use these methods on an observation list. | ||
|
||
|
||
.. autofunction:: ocdsmetricsanalysis.library.ObservationList.get_data | ||
:noindex: | ||
|
||
.. autofunction:: ocdsmetricsanalysis.library.ObservationList.get_data_by_dimension | ||
:noindex: | ||
|
||
|
||
Class reference | ||
--------------- | ||
|
||
.. autoclass:: ocdsmetricsanalysis.library.Observation | ||
:members: | ||
:undoc-members: |
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,20 @@ | ||
Observation List | ||
================ | ||
|
||
|
||
Getting an observation list | ||
--------------------------- | ||
|
||
Do not construct an Observation List directly. Instead, use this method on a metric. | ||
|
||
|
||
.. autofunction:: ocdsmetricsanalysis.library.Metric.get_observation_list | ||
:noindex: | ||
|
||
|
||
Class reference | ||
--------------- | ||
|
||
.. autoclass:: ocdsmetricsanalysis.library.ObservationList | ||
:members: | ||
:undoc-members: |
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,23 @@ | ||
Store | ||
===== | ||
|
||
|
||
Getting a store | ||
--------------- | ||
|
||
Create a new instance of the class. | ||
|
||
.. code-block:: python | ||
from ocdsmetricsanalysis.library import Store | ||
store = Store("temp-database.sqlite") | ||
See below for the parameters to pass. | ||
|
||
|
||
Class reference | ||
--------------- | ||
|
||
.. autoclass:: ocdsmetricsanalysis.library.Store | ||
:members: | ||
:undoc-members: |
This file was deleted.
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