jacebrowning / jacebrowning/datafiles

Integration with schema validation libraries

Open
#249 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
213
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
5

Description

Hi,

I discovered this project 2 days ago and I thing it's pretty cool.
However, I still yet haven't found how to properly integrate it with dataclasses using Schemas libraries.
I am using marshmallow-dataclass but we could also think about people using Pythdantic dataclasses.

For example, how to properly:
- load-data from files, deserialize using marshmallow Shema().load()
- write data to file coming from marshmallow Shema().dump(,...)

I think that combining your library with such libraries would make the whole thing amazing.

Any idea on how to do this well?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points; start by locating the dataclass file-loading and file-writing paths. Compare those flows with marshmallow-dataclass Schema.load and Schema.dump, then define the supported integration and tests covering deserialization and serialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.