okapi
loadtxt
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.
okapi
-
Looking for a Rust API with automatic documentation and good validation?
It's inspired by others in the space that you might check out: paperclip, okapi, and others.
-
Web frameworks with integrated Open API?
okapi: supports rocket
-
Type-safe OpenAPI server for Rust?
okapi looks decent as well. Has codegen for Rocket: https://github.com/GREsau/okapi
- What libraries do you miss from other languages?
-
Rust and OpenAPI
I have used it the other way around. I created the Rust code and using that to generate the documentation. https://github.com/GREsau/okapi this worked very good. Here is the generated documentation: https://docs.dfstoryteller.com/rapidoc/ This uses the Rust Doc comments to populate the documentation.
-
Replacing FastAPI with Rust: Part 2 - Research
Oh Rocket, you playful muse. I've watched you ascend from my early Rust days; yet each time I reach for you my heart sinks more. This research project of mine led me to okapi, an extension for OpenAPI documentation. And yet, I have to pass once again. While most of the Rust ecosystem blazes toward async, you inch toward it too slowly. Perhaps next time I search for a web framework our paths will align, but until then, I must follow a different orbit.
loadtxt
-
What libraries do you miss from other languages?
It really depends on what part of Numpy you're using. You can easily leave Numpy's text parsing in the dust. And if you're doing element-wise operations on arrays, you can easily see 2-3x improvement with just numba.
-
Experience with heap bloat
Amdahl's Law will catch up with you really fast as you add threads with this strategy, but it's simple and is amenable to formats where you may have a delimiter in the middle of a record. For situations where you need maximum scaling and don't have the possibility of delimiters scattered into records, you can use the strategy I used to implement a faster numpy.loadtxt: https://github.com/saethlin/loadtxt/blob/master/src/inner.rs#L84 The general idea is that you divide the file among thread boundaries by splitting it on byte boundaries, then seeking from that byte offset to the end of the next record. This gets you non-interleaved sections so there's no duplicate parsing.
What are some alternatives?
vouch-proxy - an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
SaintCoinach - A .NET library written in C# for extracting game assets and reading game assets from Final Fantasy XIV: A Realm Reborn.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
polars - Dataframes powered by a multithreaded, vectorized query engine, written in Rust
poem - A full-featured and easy-to-use web framework with the Rust programming language.
tera - A template engine for Rust based on Jinja2/Django
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
plotters - A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
not-yet-awesome-rust - A curated list of Rust code and resources that do NOT exist yet, but would be beneficial to the Rust community.
typed-html - Type checked JSX for Rust
cloudscraper - A Python module to bypass Cloudflare's anti-bot page.
thirtyfour - Selenium WebDriver client for Rust, for automated testing of websites