HTTP.jl
FromFile.jl
Our great sponsors
HTTP.jl | FromFile.jl | |
---|---|---|
7 | 6 | |
623 | 131 | |
1.3% | - | |
7.7 | 1.5 | |
7 days ago | about 1 year ago | |
Julia | Julia | |
GNU General Public License v3.0 or later | 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.
HTTP.jl
-
Machine learning with Julia - Solve Titanic competition on Kaggle and deploy trained AI model as a web service
The req.url field contains the URL of the received request, the req.method field contains request method, like GET or POST, the req.body field contains the POST body of the request in binary format. HTTP request object contains much other information. All this you can find in HTTP.jl documentation. Our web application will only check the request method. If the received request is a POST request, it will parse req.body to JSON object and send the data from this object to the isSurvived function to make a prediction and return it to the client browser. For all other request types, it will just return the content of the index.html file, to display the web interface. This is how the whole source of titanic.jl web service looks:
-
How can I use Julia to search on the web automatically?
If you want to just get the html of a website whose url you already have you can make requests from the http.jl package. https://juliaweb.github.io/HTTP.jl/stable/
-
Automate the boring stuff with Julia?
HTTP.jl and Gumbo.jl for web-scraping
- PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)
-
Recommendations on how to start web scraping with julia for price updates? (if possible)
I haven't seen that tutorial, but I agree that HTTP.jl, Gumbo.jl, and Cascadia.jl are the way. I used them to export public wishlists from bookdepository, which has no API nor a built in exporting tool.
-
Why not Julia?
I find some of the library documentation hard to understand. Compare http.jl with python's requests, for example. Something as core as HTTP requests should have clear docs with tonnes of examples. Part of this is also a personal dislike of documenter.jl styling. Idk why the contrast is so low – would prefer a standard readthedocs theme.
- Julia 1.6: what has changed since Julia 1.0?
FromFile.jl
-
A Programming language ideal for Scientific Sustainability and Reproducibility?
On include-- you might like FromFile.jl as an alternative.
- Modules in Julia
-
How to import an own module from the current directory?
For this and other oddities with Julia's include/import system (and especially as you're coming from Python), I'd recommend FromFile as a readable way to approach things.
-
Why not Julia?
You might like FromFile.jl.
-
Problems with nested `include`s and solutions?
However, if you prefer a Python-like experience, checkout FromFile.jl
-
Julia 1.6: what has changed since Julia 1.0?
I'm not using modules. I usually start with one file with a demo or similarly named function that is called if the file is called as an entry point (like if __name__ == '__main__', except Julia makes it even worse).
I tend to refactor code out of there to separate files, and then somehow import it. An ugly way is include, and I've tried Revise.jl with includet.
But I think the least ugly approach is the @from macro from here: https://github.com/Roger-luo/FromFile.jl Judging from some opinion in bug trackers, this is probably gonna get totally shunned by core devs and they'll keep on bikeshedding about the import stuff forever.
With this setup I have about 400 lines of code in three files. It compiles for 15 seconds. After every single change, and actually without any changes too.
I think performance wise this should be equivalent to using modules, but saving some pointless ceremony.
What are some alternatives?
geni-performance-benchmark
julia - The Julia Programming Language
DaemonMode.jl - Client-Daemon workflow to run faster scripts in Julia
JET.jl - An experimental code analyzer for Julia. No need for additional type annotations.
DataFramesMeta.jl - Metaprogramming tools for DataFrames
BinaryBuilder.jl - Binary Dependency Builder for Julia
SymbolicRegression.jl - Distributed High-Performance Symbolic Regression in Julia
PackageCompiler.jl - Compile your Julia Package
TwoBasedIndexing.jl - Two-based indexing