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

40 metadata writer on sdmx ml #41

Merged
merged 10 commits into from
May 17, 2024
Merged

Conversation

javihern98
Copy link
Contributor

@javihern98 javihern98 commented May 15, 2024

This pull request adds for the first time the Writing on XML feature on pysdmx in Item and ItemScheme classes (and superclasses).

Summary:

  • Added writer function to introduce a specific dictionary (Message Content, to be implemented afterwards). This is divided in two modules, the public write module and the internal __writer_aux module, for better maintainability and reusability.
  • Added Header class with some default values (where minOccurs is 0 in SDMX-ML, we leave it as None)

Closes #40

…age Type and Action.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
…s to superclasses. Added auxiliary methods to writer_aux.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
…dded basic Header class.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
@javihern98 javihern98 requested a review from sosna May 15, 2024 11:20
@javihern98 javihern98 linked an issue May 15, 2024 that may be closed by this pull request
…o delete _to_XML methods and have the base package clean. Moved Header class to message.py.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/io/xml/sdmx_two_one/writer/__write_aux.py Outdated Show resolved Hide resolved
src/pysdmx/io/xml/sdmx_two_one/writer/__write_aux.py Outdated Show resolved Hide resolved
src/pysdmx/io/xml/sdmx_two_one/writer/metadata_writer.py Outdated Show resolved Hide resolved
src/pysdmx/io/xml/sdmx_two_one/writer/metadata_writer.py Outdated Show resolved Hide resolved
src/pysdmx/io/xml/sdmx_two_one/writer/metadata_writer.py Outdated Show resolved Hide resolved
javihern98 and others added 4 commits May 16, 2024 11:50
…ility). Changed file structure.

Changed test value on Header to boolean. Changed MessageType.Metadata to MessageType.Structure.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
…set_action as optional on Header.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
…h defaults.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
src/pysdmx/model/message.py Outdated Show resolved Hide resolved
@javihern98
Copy link
Contributor Author

Ready for final review @sosna @stratosn

Copy link
Collaborator

@sosna sosna left a comment

Choose a reason for hiding this comment

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

Thanks, @javihern98!

@javihern98 javihern98 merged commit b34657f into develop May 17, 2024
14 checks passed
@javihern98 javihern98 deleted the 40-metadata-writer-on-sdmx-ml branch May 17, 2024 15:45
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.

Metadata writer on SDMX-ML
2 participants