Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FR: Variant without Rust dependencies #1275

hjfreyer started this conversation in General
Discussion options

Hey there!

I'm in the market for a python jsonschema implementation to use in a large OSS project with strict requirements to vendor-in all source and build from scratch. This package seems far better in terms of API and implementation than other options in this space, and I was getting ready to start using it when I discovered the cargo dependency.

Unfortunately, invoking cargo in our build is a non-starter. However, looking through the code, it seems like the rpds dependency is fairly isolated. In theory a pure python implementation of HashTrie{Set,Map} would do the job? I imagine performance would suffer, but it would make the library available to more customers.

If this isn't a thing you want to support, I understand. I just wanted to let you know you'd gain a customer if you do!

Thanks

You must be logged in to vote

Replies: 1 comment

Comment options

Hi there. Thanks for the issue.

A pure python fallback is on the ever-long TODO list but fairly low priority at the minute honestly, especially given that the packaging ecosystem doesn't yet have a good way to express eager dependencies (essentially all CPython users should get the rust dep unless they opt out, and there's no way to express that yet). Of course on the off chance you're using PyPy (which is the main reason to reintroduce the pure python dep) then you would be good (as my intention is to default to that on PyPy). But yeah that's why this hasn't been a priority yet (along with me having 1000 other things to work on for better or worse).

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1270 on July 01, 2024 18:08.

AltStyle によって変換されたページ (->オリジナル) /