Pluggable json loads/dumps
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 603
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
Description
An optional argument to treq.HTTPClient could allow a user to plug in an alternative JSON implementation, with the expectation that it has the basic dumps() and loads() functions.
If treq also accepts that such functions may return Deferred, it also opens the door to other interesting avenues such as deferring to a thread to avoid blocking the reactor with a huge piece of JSON.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the treq.HTTPClient entry point and trace how JSON encoding and decoding are currently selected. Define the optional implementation contract, including whether dumps() and loads() may return Deferred, and verify completion with tests covering synchronous and deferred behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100