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 TOML #73

Open
garlontas opened this issue Sep 15, 2023 · 0 comments
Open

Data loader for TOML #73

garlontas opened this issue Sep 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@garlontas
Copy link
Member

garlontas commented Sep 15, 2023

TOML 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 TOML. 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 TOML below:

[[employees.employee]]
name = "John Doe"
position = "Software Engineer"
salary = 80_000
children = 2

[[employees.employee]]
name = "Alice Smith"
position = "Network Administrator"
salary = 75_000
children = 1

[[employees.employee]]
name = "Bob Johnson"
experience = "Database"
wage = 82_000
car = "Audi"

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

You can view the issue for the XML loader here: #72

@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
@garlontas garlontas removed good first issue Good for newcomers hacktoberfest For Hacktoberfest participants labels Oct 3, 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
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant