pycircuitbreaker
ht
pycircuitbreaker | ht | |
---|---|---|
1 | 39 | |
8 | 4,887 | |
- | - | |
0.0 | 8.9 | |
over 1 year ago | 7 days ago | |
Python | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pycircuitbreaker
-
Ask HN: Show me your Half Baked project
https://github.com/etimberg/pycircuitbreaker/
A python implementation of the circuit breaker pattern. Not a new concept, but I did innovate in how the breaker decides to open.
I realized that with a normal breaker, if you set the threshold to 5, but 4/5 requests failed (say due to a backend service being partially down) the breaker would never open. To solve this, you can set the breaker to use the net error count so that the breaker would behave as such:
Req Num | Req Status | Breaker Status
1 | Fail | Closed
2 | Fail | Closed
3 | Fail | Closed
4 | Fail | Closed
5 | Pass | Closed
6 | Fail | Open
ht
-
Curl is now a CVE Numbering Authority
No need to use curl, make HTTP requests great again with https://github.com/ducaale/xh
-
Why people in Google hate Go?
Except when you actually enjoy things being fast. For example, HTTPie easily adds 0.5-1s delay to every request because it's written in Python, especially on the first invocation. xh (https://github.com/ducaale/xh), on the other hand, starts immediately because it's written in Rust. I very much like this trend.
-
HTTPie Desktop: cross-platform API testing client for humans
HTTPie is great and was a big improvement for me over cURL.
However, I ended up switching to xh[1] as it's significantly faster and I prefer its output.
https://github.com/ducaale/xh
-
Tell HN: Postman just wiped all my stuff
No, but unless portability is a concern or you're massively familiar with curl, you might want to consider xh. It's much more intuitive.
https://github.com/ducaale/xh
-
🐚🦀Comandos shell reescritos em Rust
xh
- Insomnia REST client now requires an account
-
The curl-wget Venn diagram
wget on the other hand, automatically converts the ñ to UTF-8 hex and resolves the link perfectly.
I've searched the curl manpage and couldn't find a way to solve this. Please help.
I'm having to use `xh --curl` [1] to "fix" the links before I pass them to curl.
[1] https://github.com/ducaale/xh
-
Get better with Vim one tip at a time
Very nice, you should add xh to the User-Agents though.
-
I Could Rewrite Curl
While not a rewrite - one recent tool for making http requests which i quite enjoy is:
https://github.com/ducaale/xh
It's basically python httpie rewritten in rust. my only gripe is that i keep forgetting that it exists - and that "xh" is for http and "xhs" is for https.
So i frequently end up with curl anyway:)
- xh: Friendly and fast tool for sending HTTP requests (HTTPie in Rust)
What are some alternatives?
opencv_py
rustdesk - An open-source remote desktop, and alternative to TeamViewer.
hof - Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic.
httpie - 🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
htmlq - Like jq, but for HTML.
dupver - Deduplicating VCS for large binary files in Go
gitoxide - An idiomatic, lean, fast & safe pure Rust implementation of Git
hacn - A "monad" or DSL for creating React components using Fable and F# computation expressions
tty-share - Share your linux or osx terminal over the Internet.
pastty - Copy and paste across devices
thgtoa - The Hitchhiker’s Guide to Online Anonymity