question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] remove ujson dependency (it is dead)

See original GitHub issue

FastAPI is using ujson which has not been actively developed for about 3 years by now. Here is a relevant issue. It’s starting to be problematic to actually compile ujson on newer platforms.

Possible alternative maybe orjson.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

14reactions
dmontagucommented, Dec 30, 2019

I would be in favor of recommending orjson instead of ujson.

I recall the creator of orjson reaching about this many months ago and there was some confusion due to slow responses, and also some issues on the pydantic side, but I think many/most of the barriers to usage have since been removed. If orjson seems to be taking over as the go-to high-performance json library, I think it would make sense to use that for development and recommend it.

To the extent that there is any difference in json encoding/decoding between json and orjson (or ujson and orjson), it would probably be best to document it.

I’d be willing to review a PR making this change (including updates to the docs). (I’d leave the ultimate decision about merging to @tiangolo though.)

3reactions
ahtikcommented, Nov 26, 2020

@ahmadazizi, orjson wheels are now available also for Windows Python 3.9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conda Build and Finding Conflicts - python - Stack Overflow
When I use conda build with a meta.yaml file similar to what is shown in python 3.9 the build fails due to dependency...
Read more >
udata - Python Package Health Analysis | Snyk
A security vulnerability was detected in an indirect dependency that is added to your project when the latest version of udata is installed....
Read more >
e42b3e385822fc1b08807a585d...
... mutter: initial add 3.34.1 pinpoint: remove dead project gnome-keyring: ... x11 to required distro feature projucer: add x11 to required distro features...
Read more >
What's New - Oracle Linux Yum Server
libsolv-0.7.20-4.el8_7 - Package dependency solver (Update) ... rust-rand0.6-0.6.5-9.el9 - Random number generators and other randomness functionality (New) ...
Read more >
micropython-ChangeLog.txt
resource_stream() function is also removed, replaced by the pure Python version in micropython-lib. The search order for importing frozen Python modules is now ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found