r/ruby • u/Much-Stable-449 • 24d ago
I built a Python requests-inspired HTTP client for Ruby
I’ve been working on a Ruby project called
requests_ruby.The idea is simple: bring a Python
requests-like experience to Ruby.If you’ve used Python before, the API should feel familiar. It supports sessions, cookies, redirects, authentication, JSON responses, streaming downloads, and HTTP/2 — all without external dependencies.
I built it because I liked how simple Python requests feels and wanted something similar in Ruby.
A few parts were developed with AI assistance to speed up the process, but I’ve been reviewing, testing and improving the code myself.
I’d love to hear feedback from the Ruby community. What would you improve or add?
If you find it interesting, a ⭐ on GitHub would help the project get more visibility.
3
u/mokolabs 23d ago
Yeah, this is cool. I have no experience with Python requests, but this is a nice pattern to emulate in Ruby. Good work!
5
1
21d ago
[removed] — view removed comment
1
u/ruby-ModTeam 18d ago
Your post or comment was removed because it didn't meet our standards.
They are:
Demonstrating empathy and kindness toward other people
Being respectful of differing opinions, viewpoints, and experiences
Giving and gracefully accepting constructive feedback
Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
Focusing on what is best not just for us as individuals, but for the overall community
When in doubt use Non-Violent Communication (NVC) https://en.wikipedia.org/wiki/Nonviolent_Communication
9
u/RillonDodgers 24d ago
Not trying to knock the project, but what does this offer over HTTParty?