Spray VS requests-scala

Compare Spray vs requests-scala and see what are their differences.

Spray

A suite of scala libraries for building and consuming RESTful web services on top of Akka: lightweight, asynchronous, non-blocking, actor-based, testable (by spray)

requests-scala

A Scala port of the popular Python Requests HTTP client: flexible, intuitive, and straightforward to use. (by lihaoyi)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Spray requests-scala
1 4
2,516 696
-0.2% 0.9%
0.0 4.5
about 7 years ago 23 days ago
Scala Scala
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

Spray

Posts with mentions or reviews of Spray. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-21.
  • Scala: A Love Story
    4 projects | dev.to | 21 Apr 2021
    I purchased the very entertaining book Seven Languages in Seven Weeks. Although I found Haskell fascinating and tempting, I knew it was unrealistic to introduce it in our company. Scala on the other hand looked like it could be the holy grail: All the characteristics I was looking for, no need to abandon the JVM and its cornucopia of tools and libraries, and the possibility for coexistence with Java and therefore incremental adoption. After implementing some simple programs to identify any immediate risks of committing to the language and its ecosystem, I started to introduce Scala in customer projects. Luckily, I was fortunate enough to work with open-minded, curious, and ambitious team members who were also experienced enough to appreciate the benefits of the language. We immediately applied our experience with functional programming, and embraced immutability. Libraries like Slick and Akka HTTP (we actually started out with its predecessor, Spray) made building database-backed REST services a breeze. And the resulting code was robust and highly maintainable. Scala's expressive type system and type inference made it easy to build a restrictive, consistent domain model without bloating the code. There was virtually no overhead. Any boilerplate could be easily abstracted out. In the end, the application code felt natural, concise and elegant. Programming was fun again.

requests-scala

Posts with mentions or reviews of requests-scala. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-06.
  • Scala opensource projects
    4 projects | /r/scala | 6 May 2023
    There's the Li Haoyi's ecosystem of tools and libraries that's fun to hack on, has a low entry-bar (with a design philosophy of using the least complex abstractions for the job), and has few libs like requests and cask that may appeal to those liking some python minimalism. That's not the fastest way to learn hardcore FP, that's not the worst either.
  • Scala Toolkit makes Scala powerful straight out of the box
    2 projects | /r/scala | 10 Nov 2022
    Another thing that caught my attention is the choice for HTTP client. If the authors wanted to go with the simplest thing, they could have picked requests-scala (from the com-lihaoyi family of libraries). If they wanted to go with full blown Scala FP, they could have chosen http4s client (Ember). Sttp awkwardly sits in the middle being neither.
  • Scala vs Java/C# code examples
    1 project | /r/scala | 10 Apr 2022
    Finally, to give you an example of how simple Scala can be when you get rid of all the fancy stuff, take a look at the examples in Li Haoyi's requests-scala library, a port of the excellent requests Python library. I challenge anyone to call that code complex.
  • Every time I sit down to use an HTTP client and JSON parser, I get really frustrated
    5 projects | /r/scala | 20 Feb 2022
    http4s (either with Blaze or Ember) is great, but you may need to think a bit about what you're doing. Maybe https://github.com/com-lihaoyi/requests-scala will be the best choice for your particular situation?

What are some alternatives?

When comparing Spray and requests-scala you can also consider the following projects:

Http4s - A minimal, idiomatic Scala interface for HTTP

Akka HTTP - The Streaming-first HTTP server/module of Akka

Finch.io - Scala combinator library for building Finagle HTTP services

jefe - Manages installation, updating, downloading, launching, error reporting, and more for your application.

Scalaxb - scalaxb is an XML data binding tool for Scala.

sttp - The Scala HTTP client you always wanted!

Dispatch - Scala wrapper for the Java AsyncHttpClient.

scalaj-http - Simple scala wrapper for HttpURLConnection. OAuth included.

scommons-api - Common REST API Scala/Scala.js components