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

csv output #59

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

csv output #59

wants to merge 8 commits into from

Conversation

fexfl
Copy link
Collaborator

@fexfl fexfl commented Mar 3, 2025

Implemented output of all processed emails as csv

  • Inout now contains the dicts of all emails in the directory instead of just the last email that was processed
  • The text extraction and HTML clean-up are now peformed in the method process_emails() instead of calling the methods manually
  • get_email_content() returns an iterator over the list of email dicts
  • pseudonymize() method now takes a single email dict as argument and appends the pseudonymized content to the dict
  • the list of dicts can then be saved as csv using the Inout method write_csv()
  • Adjusted demo notebook accordingly to demonstrate csv output

@fexfl fexfl requested a review from iulusoy March 3, 2025 11:24
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 89.47368% with 8 lines in your changes missing coverage. Please review.

Project coverage is 95.50%. Comparing base (ae89a3c) to head (79dea5a).

Files with missing lines Patch % Lines
mailcom/parse.py 36.36% 7 Missing ⚠️
mailcom/inout.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   94.58%   95.50%   +0.92%     
==========================================
  Files           4        4              
  Lines         406      445      +39     
==========================================
+ Hits          384      425      +41     
+ Misses         22       20       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fexfl
Copy link
Collaborator Author

fexfl commented Mar 3, 2025

This addresses #41.

Copy link

sonarqubecloud bot commented Mar 3, 2025

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.

1 participant