feat: Click CLI wrapper for cantaloupe export #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Built a Click-based CLI wrapper (
python -m cantaloupe export) around the existing auth + download modules.New files
cantaloupe/__init__.py- package markercantaloupe/__main__.py- entry point forpython -m cantaloupecantaloupe/cli.py- Click CLI withexportandconfigurecommandscantaloupe/config.py- credential management for~/.cantaloupe.envtests/test_cli.py- 39 tests (config, formatting, CLI commands, auth integration)Modified files
src/auth.py-_get_credentials()now checks~/.cantaloupe.envas fallbacktests/test_auth.py- 4 updated tests to mock env file pathFeatures
python -m cantaloupe export --output ./exports/- download Excel--headless / --visible- Playwright debug flag (future fallback)--scheduled- non-interactive cron mode--email / --password- CLI credential overridespython -m cantaloupe configure- save credentials to~/.cantaloupe.envTests
86/86 pass (47 existing + 39 new)
Commit:
9c3d3ef(pushed to main)