diff --git a/README.md b/README.md index 41d0f56..e3ab658 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ results: - export: true # false by default ``` -To export the data, send a GET request (or navigate) to [http://localhost:8080/export](http://localhost:8080/export). To export password-protected data, send the password as described above. The data will be downloaded in the format specified in the configuration file. +To export the data, send a GET request (or navigate) to [http://localhost:8080/export](http://localhost:8080/export). To export password-protected data, send the password as described above. The data is downloaded as a CSV file (`data.csv`), whichever storage format (`csv`, `json`, `sqlite` or `xml`) you use. Exporting is not available for the `image` format. ### Data exploration succulent includes an optional web dashboard for monitoring the collected data in a browser. To enable it, define the following setting in the `configuration.yml` file in the root directory: diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 672be1f..96607f9 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -139,7 +139,7 @@ To export the data, enable the export option in the configuration file: results: - export: true # false by default -To export the data, send a GET request (or navigate) to `http://localhost:8080/export `_. To export password-protected data, send the password as described above. The data will be downloaded in the format specified in the configuration file. +To export the data, send a GET request (or navigate) to `http://localhost:8080/export `_. To export password-protected data, send the password as described above. The data is downloaded as a CSV file (``data.csv``), whichever storage format (``csv``, ``json``, ``sqlite`` or ``xml``) you use. Exporting is not available for the ``image`` format. Data exploration ~~~~~~~~~~~~~~~~ diff --git a/succulent/__init__.py b/succulent/__init__.py index 663a8db..c8f81cc 100644 --- a/succulent/__init__.py +++ b/succulent/__init__.py @@ -1,6 +1,12 @@ from succulent.configuration import Configuration +from succulent.processing import Processing +from succulent.explore import Explorer +from succulent.api import SucculentAPI __all__ = [ - 'Configuration'] + 'Configuration', + 'Explorer', + 'Processing', + 'SucculentAPI'] __version__ = '0.5.1' diff --git a/tests/test_succulent.py b/tests/test_succulent.py index d05112d..b5d5c56 100644 --- a/tests/test_succulent.py +++ b/tests/test_succulent.py @@ -817,6 +817,16 @@ def test_version_matches_pyproject(self): self.assertIsNotNone(match) self.assertEqual(__version__, match.group(1)) + def test_public_api(self): + import succulent + from succulent.api import SucculentAPI as FromModule + + self.assertEqual(sorted(succulent.__all__), + ['Configuration', 'Explorer', 'Processing', 'SucculentAPI']) + for name in succulent.__all__: + self.assertTrue(hasattr(succulent, name), name) + self.assertIs(succulent.SucculentAPI, FromModule) + class TestConfiguration(unittest.TestCase): """