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: add supports for write structured data - NamedTuple, Data Classes #330

Merged
merged 9 commits into from
Oct 12, 2021

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Sep 21, 2021

Closes #289

Proposed Changes

  1. Added supports for write NamedTuple type
  2. Added supports for write Data Classes type
  3. Added example how to write structured data

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • pytest tests completes successfully
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

@bednar bednar changed the title feat: add supports for write NamedTuple feat: add supports for write structured data - NamedTuple, dataclass Sep 21, 2021
@bednar bednar changed the title feat: add supports for write structured data - NamedTuple, dataclass feat: add supports for write structured data - NamedTuple, Data Classes Sep 21, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2021

Codecov Report

Merging #330 (f8af0a8) into master (74d89a7) will decrease coverage by 0.90%.
The diff coverage is 89.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
- Coverage   92.54%   91.64%   -0.91%     
==========================================
  Files          27       27              
  Lines        2226     2237      +11     
==========================================
- Hits         2060     2050      -10     
- Misses        166      187      +21     
Impacted Files Coverage Δ
influxdb_client/client/write_api.py 92.07% <76.47%> (-7.00%) ⬇️
influxdb_client/client/write/point.py 97.27% <100.00%> (+0.24%) ⬆️
influxdb_client/rest.py 80.45% <0.00%> (-3.76%) ⬇️
influxdb_client/configuration.py 82.75% <0.00%> (-1.12%) ⬇️
influxdb_client/api_client.py 68.56% <0.00%> (-0.36%) ⬇️
influxdb_client/client/flux_csv_parser.py 97.43% <0.00%> (-0.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74d89a7...f8af0a8. Read the comment docs.

@bednar bednar requested a review from rhajek September 21, 2021 12:36
@bednar bednar marked this pull request as ready for review September 21, 2021 12:36
Copy link
Contributor

@rhajek rhajek left a comment

Choose a reason for hiding this comment

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

LGTM

@bednar bednar merged commit 76bdb62 into master Oct 12, 2021
@bednar bednar deleted the feat/structured-data branch October 12, 2021 08:25
@bednar bednar added this to the 1.22.0 milestone Oct 12, 2021
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.

SeriesHelper equivalent
3 participants