ArcanaFramework / fileformats

a Python package for the specification, validation and manipulation of file formats and types
https://arcanaframework.github.io/fileformats/
Other
5 stars 0 forks source link

Add support for "field" types #6

Closed tclose closed 1 year ago

tclose commented 1 year ago

Adds base DataType class and support for Field types. While not strictly FileFormats, when working with data repositories you often need to work with each interchangeably so it makes sense to integrate them here in fileformats.field

codecov-commenter commented 1 year ago

Codecov Report

Base: 87.11% // Head: 84.31% // Decreases project coverage by -2.80% :warning:

Coverage data is based on head (7fad9d1) compared to base (bf78537). Patch coverage: 71.17% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6 +/- ## ========================================== - Coverage 87.11% 84.31% -2.80% ========================================== Files 22 23 +1 Lines 962 1141 +179 Branches 241 279 +38 ========================================== + Hits 838 962 +124 - Misses 83 133 +50 - Partials 41 46 +5 ``` | [Impacted Files](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework) | Coverage Δ | | |---|---|---| | [fileformats/core/converter.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9jb252ZXJ0ZXIucHk=) | `86.66% <ø> (-0.84%)` | :arrow_down: | | [fileformats/core/exceptions.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9leGNlcHRpb25zLnB5) | `100.00% <ø> (ø)` | | | [fileformats/core/mark.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9tYXJrLnB5) | `72.34% <ø> (-0.58%)` | :arrow_down: | | [fileformats/serialization/\_\_init\_\_.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvc2VyaWFsaXphdGlvbi9fX2luaXRfXy5weQ==) | `91.11% <ø> (-0.20%)` | :arrow_down: | | [fileformats/core/utils.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS91dGlscy5weQ==) | `70.70% <44.44%> (-7.26%)` | :arrow_down: | | [fileformats/generic/\_\_init\_\_.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvZ2VuZXJpYy9fX2luaXRfXy5weQ==) | `88.49% <57.14%> (-2.50%)` | :arrow_down: | | [fileformats/core/base.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9iYXNlLnB5) | `76.41% <64.78%> (-6.40%)` | :arrow_down: | | [fileformats/field/\_\_init\_\_.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvZmllbGQvX19pbml0X18ucHk=) | `83.33% <83.33%> (ø)` | | | [fileformats/archive/\_\_init\_\_.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvYXJjaGl2ZS9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | [fileformats/archive/converters.py](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvYXJjaGl2ZS9jb252ZXJ0ZXJzLnB5) | `83.78% <100.00%> (+0.45%)` | :arrow_up: | | ... and [3 more](https://codecov.io/gh/ArcanaFramework/fileformats/pull/6?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.