requests-scala
Play
requests-scala | Play | |
---|---|---|
4 | 31 | |
697 | 12,511 | |
0.3% | 0.2% | |
4.5 | 9.7 | |
about 1 month ago | 3 days ago | |
Scala | Scala | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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.
requests-scala
-
Scala opensource projects
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
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
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
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?
Play
- Play Framework 2.9.0 Release Candidate
-
Reflex – Web apps in pure Python
My major complain here is that, as far as being a web framework there is precious little information here about the framework. How does this framework scale with multiple requests? What concurrency strategy is it using (threads, processes, actors, etc?). Is this opinionated (it doesn't seem so but it also doesn't say it isn't either). How does this work with popular libraries x,y,z. The full docs have a little bit more information, but not a ton. But mostly there are some cute toy examples and "built in python" and thats about it.
Lets compare this with for example play https://www.playframework.com/ I know from this that it built on Akka, its stateless, aims for predictable resource consumption, has non-blocking io, etc. There is a ton of really important information on what does this web framework actually do that is really important when you are making a choice of a framework.
I have no idea how good this framework is, but besides a few toy examples, I can't see anything that makes me thing "wow this is great I need to use this".
-
Play (1) Linux manual page
A web application framework for Java/Scala: https://www.playframework.com/
- Scala opensource projects
- Play Framework for Java and Scala
-
What is scala's modern Web API framework?
Scala 3 migration isn't as simple as migrating other apps, you can track the work at https://github.com/playframework/playframework/issues/11260
-
How does web developement process compare to java web developement ?
And there are frameworks you can use to make development easier, like Play. And Java has plenty of choices for dependency injection frameworks.
-
what library/framework should I use for backend development?
However do note, Play should be perfectly usable as well, and it's still maintained by the community: https://github.com/playframework/playframework/issues/11649
-
Why I selected Elixir and Phoenix as my main stack
In university I learned a bit of Java, so maybe I could use it professionally I guess?. There were many options to choose from. DropWizard, Spark, Play Framework. But the more documented one in the internet I found was Springboot, besides there were some courses in spanish and some friends that knew something about Springboot, so I give it a chance.
-
Right way to use AWS & Scala
For a backend web server I use Play - https://www.playframework.com/ which I find to be the easiest one as a backend web server. For learning/using spark I found this course from coursera to be very useful. https://www.coursera.org/learn/scala-spark-big-data
What are some alternatives?
Akka HTTP - The Streaming-first HTTP server/module of Akka
Spring Boot - Spring Boot
Finch.io - Scala combinator library for building Finagle HTTP services
Scalatra - Tiny Scala high-performance, async web framework, inspired by Sinatra
jefe - Manages installation, updating, downloading, launching, error reporting, and more for your application.
Quarkus - Quarkus: Supersonic Subatomic Java.
Http4s - A minimal, idiomatic Scala interface for HTTP
Finatra - Fast, testable, Scala services built on TwitterServer and Finagle
Spray - A suite of scala libraries for building and consuming RESTful web services on top of Akka: lightweight, asynchronous, non-blocking, actor-based, testable
Lift - Lift Framework
sttp - The Scala HTTP client you always wanted!