Skip to content

Commit

Permalink
updated to the latest mmif-python, updated documentation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
keighrim committed Jul 29, 2024
1 parent 9c5e1bd commit 5ed5876
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 21 deletions.
1 change: 1 addition & 0 deletions clams/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
False
]


class ClamsApp(ABC):
"""
An abstract class to define API's for ClamsApps. A CLAMS app should inherit
Expand Down
4 changes: 3 additions & 1 deletion clams/mmif_utils/rewind.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""
This module provides a CLI to rewind a MMIF from a CLAMS pipeline.
"""
import argparse
import sys
import textwrap
from pathlib import Path as P

import mmif

Expand Down
3 changes: 3 additions & 0 deletions clams/mmif_utils/source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
This module provides a class for creating a "source" MMIF JSON object.
"""
import argparse
import itertools
import json
Expand Down
5 changes: 2 additions & 3 deletions documentation/autodoc/clams.app.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
clams.app package
===================
==================

Module contents
---------------
Core package providing classes for representing CLAMS apps.

.. automodule:: clams.app
:members:
Expand Down
3 changes: 1 addition & 2 deletions documentation/autodoc/clams.appmetadata.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
clams.appmetadata package
=========================

Module contents
---------------
Package providing classes for representing metadata of CLAMS apps.

.. autoclass:: clams.appmetadata.AppMetadata
:members:
Expand Down
16 changes: 16 additions & 0 deletions documentation/autodoc/clams.mmif_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
clams.mmif_utils package
========================

Package providing utility functions for working with MMIF data.

``rewind`` module
-----------------

.. automodule:: clams.mmif_utils.rewind
:members:

``source`` module
-----------------

.. automodule:: clams.mmif_utils.source
:members:
3 changes: 1 addition & 2 deletions documentation/autodoc/clams.restify.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
clams.restify package
=====================

Module contents
---------------
Package providing wrapper class for running a CLAMS app as a HTTP app.

.. automodule:: clams.restify
:members:
Expand Down
10 changes: 0 additions & 10 deletions documentation/autodoc/clams.source.rst

This file was deleted.

4 changes: 2 additions & 2 deletions documentation/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ API documentation
.. toctree::
:maxdepth: 4

autodoc/clams.restify
autodoc/clams.app
autodoc/clams.source
autodoc/clams.appmetadata
autodoc/clams.restify
autodoc/clams.mmif_utils
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mmif-python==1.0.18
mmif-python==1.0.19

Flask>=2
Flask-RESTful>=0.3.9
Expand Down

0 comments on commit 5ed5876

Please sign in to comment.