Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use boto3, and stream file content without holding in memory #198

Merged
merged 2 commits into from
May 7, 2024

Conversation

lchen-2101
Copy link
Collaborator

closes #187

Copy link

github-actions bot commented May 7, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/sbl_filing_api
  config.py
  src/sbl_filing_api/routers
  filing.py
  src/sbl_filing_api/services
  file_handler.py
  submission_processor.py
Project Total  

This report was generated by python-coverage-comment-action

@@ -334,8 +338,12 @@ async def get_latest_submission_report(request: Request, lei: str, period_code:
async def get_submission_report(request: Request, response: Response, lei: str, period_code: str, id: int):
sub = await repo.get_submission(request.state.db_session, id)
if sub:
file_data = await submission_processor.get_from_storage(
file_data = submission_processor.get_from_storage(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be decoding to UTF-8 here?

Copy link
Contributor

@jcadam14 jcadam14 left a comment

Choose a reason for hiding this comment

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

looks good

@jcadam14 jcadam14 merged commit cf1ac0f into main May 7, 2024
3 checks passed
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.

Remove all fsspec and s3fs usage
2 participants