trafaret icon indicating copy to clipboard operation
trafaret copied to clipboard

Ultimate transformation library that supports validation, contexts and aiohttp.

Results 25 trafaret issues
Sort by recently updated
recently updated
newest added

When importing trafaret from a type-checked codebase, it often generates type check failures (mypy) due to missing explicit `__rshift__()` method declaration and `-> NoReturn` for the `Trafaret._failure()` method. I'm currently...

```python import trafaret as trf @trf.guard(a=trf.Int) def foo(*, a=1): pass foo() # GuardError: {'a': DataError('is required')} ``` problem related to `defaults` property from `FullArgSpec` class ```python def foo(*, a=1): pass...

help wanted

Hi, thanks for the useful package! Is there any technical reason behind `Set` support absence? Or I'm a very first person who actually needs it? If it's missed because no...

Hi, Would it be possible to generate a JSON schema (https://json-schema.org/) from the trafaret definition? This would be really useful because the schema can be used in the IDE (vscode...

When using a default value such as: `t.Key("integration", default=None, trafaret=t.Regexp(r"\w+"))` This will result in an error, as it checks the default argument against the trafaret object. It seems sensible to...

An email with a `.` immediately following the `@` will produce a UnicodeError: `UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)` To reproduce: ``` import trafaret...

I couldn't find an example of this in the documentation, so is this the expected way to run a function to validate a value? ``` def check_if_user_exists(username): if username ==...

The latest releases on PyPI havent been tagged in git / added to GitHub Releases. The last tag is v1.2.0, while PyPI has 2.0.2. Also the sdists on PyPI do...