Skip to content

Add trafaret library#1022

Closed
Deepwalker wants to merge 1 commit intovinta:masterfrom
Deepwalker:trafaret
Closed

Add trafaret library#1022
Deepwalker wants to merge 1 commit intovinta:masterfrom
Deepwalker:trafaret

Conversation

@Deepwalker
Copy link

What is this Python project?

Trafaret is a validation + conversion library. The main distinct feature of Trafaret is composability.
From base Trafaret transformers and simple functions you can construct transformer of any complexity. And dict validation is not corner stone of this library.

What's the difference between this Python project and similar ones?

There is no actually similar projects or I don't know about. Trafaret is simple and yet powerful, because of monads inside, sorry. It does not count dict as a only thing that is need care about, offer strong API first and some sugar on top of strong foundation.

To combine two trafarets you just do trafaret1 & trafaret2, or even trafaret1 | trafaret2. And any single argument function can be treated as trafaret if it raises trafaret.DataError or return value.

@Deepwalker
Copy link
Author

What I need to do to merge this?

@eirenik0
Copy link

Finally, trafaret library will be at this list :)

@vinta vinta force-pushed the master branch 2 times, most recently from 23abd09 to 40cd98b Compare June 6, 2019 19:55
@stale
Copy link

stale bot commented Oct 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 30, 2019
@stale stale bot closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants