Skip to content

feat(SDK): use writer instead of target_path for activity - #165

Merged
bmaydan merged 2 commits into
mainfrom
ben/billing-activity
Sep 18, 2026
Merged

bmaydan merged 2 commits into
mainfrom
ben/billing-activity

Conversation

@bmaydan

@bmaydan bmaydan commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replaced target_path with writer (any writable text stream) across BillingApi.get_session_activity, get_resource_activity, _get_activity_report, and the Organization wrappers.
  • Removed the temp-file round trip: _download_activity_csv now returns the CSV text directly, and _get_activity_report parses it in memory instead of writing to a temp file, converting, then deleting it.
  • Re-exported ActivityFileFormat from lightning_sdk/__init__.py and updated docs to use flat class names instead of fully-qualified paths.

https://www.loom.com/share/ff75977a541d422a88b18f8018130f49

@bmaydan
bmaydan force-pushed the ben/billing-activity branch from bbb5ddb to 39fbb3d Compare September 17, 2026 20:01
@bmaydan bmaydan changed the title feat(SDK): use writer instead of target_path for downloads feat(SDK): use writer instead of target_path for activity Sep 17, 2026

@k223kim k223kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@bmaydan
bmaydan enabled auto-merge (squash) September 18, 2026 12:28
@bmaydan
bmaydan merged commit af648ec into main Sep 18, 2026
25 checks passed
@bmaydan
bmaydan deleted the ben/billing-activity branch September 18, 2026 13:14
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.

3 participants