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

Data loader for XML #72

Closed
garlontas opened this issue Sep 15, 2023 · 1 comment
Closed

Data loader for XML #72

garlontas opened this issue Sep 15, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest For Hacktoberfest participants

Comments

@garlontas
Copy link
Member

garlontas commented Sep 15, 2023

XML data loader

Currently, we have a data loader for CSV files. It works by converting each data set (each row) to a namedtuple.

We need sth similar for XML. Note that type conversion should be done as efficient as possible (see issue #63 for more information).

The loader should also handle non-consistent data, such as the XML below:

<employees>
    <employee>
        <name>John Doe</name>
        <position>Software Engineer</position>
        <salary>80000</salary>
        <children>2</children>
    </employee>
    <employee>
        <name>Alice Smith</name>
        <position>Network Administrator</position>
        <salary>75000</salary>
        <children>1</children>
    </employee>
    <employee>
        <name>Bob Johnson</name>
        <experience>Database</experience>
        <wage>82000</wage>
        <car>Audi</car>
    </employee>
</employees>

Here, a LazyFileIterable containing three differently structured namedtuples should be created.

You can view the implementation for CSV here.

You can view the issue for the JSON loader here: #70

You can view the issue for the YAML loader here: #71

@garlontas garlontas added the enhancement New feature or request label Sep 15, 2023
@garlontas garlontas added good first issue Good for newcomers hacktoberfest For Hacktoberfest participants labels Sep 15, 2023
@Preetraj2002

This comment was marked as outdated.

garlontas added a commit that referenced this issue Dec 30, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Pystreamapi development board Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest For Hacktoberfest participants
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants