Skip to content

chore: export main classes from the package; fix export docs - #84

Merged
firefly-cpp merged 1 commit into
mainfrom
chore/init-export-docs
Nov 20, 2026
Merged

firefly-cpp merged 1 commit into
mainfrom
chore/init-export-docs

Conversation

@firefly-cpp

Copy link
Copy Markdown
Owner

Package exports

succulent/__init__.py only exported Configuration. It now also exports SucculentAPI, Processing and Explorer, so this works:

from succulent import SucculentAPI

The existing from succulent.api import SucculentAPI (used in the README and examples) still works and returns the same class. A new test checks __all__ and that both imports give the same class.

Note: import succulent now also imports Flask and pandas (through succulent.api), not only PyYAML.

Export docs

README and getting started said /export downloads the data "in the format specified in the configuration file". In fact, /export always returns CSV (data.csv), whatever the storage format, and is not available for the image format. The description now says so.

Tests

Full suite: 84 passed. ruff check passes.


Generated by Claude Code

- Export SucculentAPI, Processing and Explorer (besides Configuration)
  from the succulent package, so `from succulent import SucculentAPI`
  works; the existing `from succulent.api import SucculentAPI` still
  works and returns the same class
- Fix the /export description in README and getting started: the data
  is always downloaded as CSV (data.csv), whatever the storage format,
  and exporting is not available for the image format
- Add a test for the public API

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCvw8haRnmyrVKrLkz5Yf8
@firefly-cpp
firefly-cpp merged commit 7014450 into main Nov 20, 2026
16 checks passed
@firefly-cpp
firefly-cpp deleted the chore/init-export-docs branch November 20, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants