Comments (9)
I don't see a link nor mention to typedload in that website, even in the benchmark section.
in docs/comparisons.md
there are comparisons with other similar libraries.
Are you willing to make a PR there?
from typedload.
I don't see a link nor mention to typedload in that website, even in the benchmark section.
In fact, i've discover your library only recently, and the benchmark section is tied to pydantic's one for the moment (it's a fork, bias included, with the only addition of apischema implementation).
For the moment, it has no comparison section, except a very detailed one about pydantic. A more general section isn't currently planned, and if the mention of apischema in typedload documentation is tied to its mention in the other side, I understand and quite agree with that.
in
docs/comparisons.md
there are comparisons with other similar libraries.Are you willing to make a PR there?
Being the author of the mentioned library, I don't think to be the right guy to do that, that's why I used an issue and not a PR, but I could, depending on the first part of my response.
from typedload.
It would be good if your examples were fully functioning code I could just copy and paste.
from typedload.
Yet, every of the 100 examples present in the documentation are normally valid and executing properly; they can be found in the the examples
directory of the repository (and they are included as-is in the documentation with markdown extension). As stated in the documentation:
This example and further ones are using pytest stuff because they are in fact run as tests in the library CI
Even if they are automatically wrapped to be executed by pytest, they still work as-is.
I've just executed the following lines to prove it:
python3.9 -m venv venv # example are written using latest python release
venv/bin/pip install apischema
venv/bin/pip install pytest # pytest.raised is used in the example, as they are wrapped in the CI
venv/bin/pip install graphql-core # this dependency is necessary when executing graphql examples
venv/bin/pip install sqlalchemy pydantic attrs # these additional dependencies are required for complex examples of the document Examples section
find examples/ -name "*.py" -exec venv/bin/python3.9 {} \; # you can replace examples/ by your path to the example folder of apischema repository
And every test passes without error (two tests will log a stack trace, but t's part of the tests); at least, that's true on macOS (and it should be the case on Ubuntu as the CI is run on it), but I admit I haven't tested on Debian.
That's being said, I assume the documentation is not clear enough about the requirements to run the examples, I will solve this issue thanks to you.
Moreover, if some of the dependencies are optional to execute most of the examples, the documentation has been wanting to be up-to-date with the latest Python release, so Python 3.9 specificities (especially PEP 585, as it is noticeable from the README example) are used. However, all tests are executed with the four minor Python versions from 3.6 to 3.9, but also with pypy3. To make this possible without modifying the examples code, all tests are prefixed (automatically in the CI) with the content of scripts/test_wrapper.py
. You can use this prefix to execute the examples in an old Python version.
If, despite these precisions, you're still encountering issue in running the examples, I would be grateful for giving me some precisions about it, if you are interested in its resolution.
from typedload.
With the latest release of apischema, you can now use pip install apischema[examples]
and execute examples as explained here.
from typedload.
Seems that @wyfo did not do the requested changes to his website.
from typedload.
Seems that @wyfo did not do the requested changes to his website.
Indeed, I did not wanted to add other libraries to benchmark before having my own benchmark.
But now, apischema has its own benchmark, and typedload has been added to it!
from typedload.
Well, seems I can't escape now :)
Meanwhile now there is an actual performance testsuite so it shouldn't be as hard to implement… and I should maybe publish the results on the website rather than relying on interested people to run it themselves.
from typedload.
Mention added in a0792d7
from typedload.
Related Issues (20)
- Support typing.NewType
- doc package fixe HOT 1
- Lack of type safety due to `**kwargs` HOT 1
- Suggestion: Automatically handle types that provide a from_dict and to_dict method HOT 10
- Inherited fields not serialized HOT 1
- handle from __future__ import annotations / ForwardRefs better HOT 8
- typedload.dataloader.is_union(int | str) == False HOT 1
- `typing.NotRequired[]` not supported HOT 5
- support decimal and fraction HOT 4
- Dictionary produced by dump() missing field its value is the default value HOT 1
- use typing extensions to support types on older py versions HOT 1
- crash
- Look into dataclass transform HOT 1
- Package not available in conda channels. HOT 2
- See whatever the hell this deprecation means
- compare to msgspec
- Possible to disable error on type which cannot be dealt with? HOT 2
- Why not cattrs HOT 1
- License compatibility with MPL-2 HOT 6
- type definition out of date compared to the documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typedload.