zon icon indicating copy to clipboard operation
zon copied to clipboard

Great idea!

Open mattveraldi opened this issue 1 year ago • 1 comments

I was looking exactly for this, but apparently no one did it before. Thanks.

Is there a plan for test coverage and documentation?

mattveraldi avatar Mar 29 '24 18:03 mattveraldi

I was looking exactly for this, but apparently no one did it before. Thanks.

Is there a plan for test coverage and documentation?

Hi.

I haven't been able to take time off college for this but yes, there are plans for test coverage and documentation. I wanted to change a bit how zon is written to better mirror zod's API so somethings will change.

There are some tests already, just need to generate coverage for those. Documentation will be added in time.

If you want to contribute to those features you are more thank welcome :))

Naapperas avatar Mar 30 '24 17:03 Naapperas

@mattveraldi while not merged with the default branch, I have added test coverage to zon. You can go to https://coveralls.io/github/Naapperas/zon and see the coverage information. This info will appear on the README once #8 is merged. Regarding documentation, readthedocs wouldn't let me create a project called zon, will investigate further.

Naapperas avatar Jun 20 '24 11:06 Naapperas

@Naapperas How does this project differ from more popular validators like Pydantic or msgspec?

winstxnhdw avatar Oct 23 '24 15:10 winstxnhdw

@Naapperas How does this project differ from more popular validators like Pydantic or msgspec?

The most important difference between these projects is that zon was started as a hobby side-project :)

I have been asked that a lot regarding Pydantic and what I always say is that zon more closely follows zod's API (the initial goal of the project actually). Other than that, there is less code involved so it might be more lightweight.

I did not know about msgspec so I took a look. zon has the "advantage" of being written in pure Python.

Basically Pydantic and msgspec are more powerful than zon so if you need that kind of control definitely use those libraries. zon as a library was just meant to be a lightweight port of zod to Python.

Naapperas avatar Oct 29 '24 10:10 Naapperas