I'd recommend pybind11 for c/c++ <--> python bridge. Though you have to compile your wheel for every minor python version separately.
cibuildwheel (https://cibuildwheel.readthedocs.io/en/stable/) makes this fairly straightforward.
this type is impossible in Python
#include <json>
std::json myjson("{\"someArray\": [1,2,3,4,{\"a\": \"b\"}]}");
std::cout << (std::string)myjson["someArray"][4]["a"];
and the result is we have 50 different rogue JSON libraries instead of an STL solution. Until the STL folks wake up, boost::split can deal with the CSV.When I was a kid, if you wanted to watch an NBC show, you had to watch it on an NBC network. What is the difference?
At least nowadays you can just pay, watch, and cancel at your leisure with the click of a few buttons.
Only caveat with async python. Might be tricky when using 'sync' libraries. It's not always straightforward and you'll find yourself wondering why your server is blocked from time to time. It's not a problem of FastAPI, but you need to be aware that if you do a blocking call (function is not prefixed with 'async') to a db that it blocks the event loop.
Deleted Comment