It currently looks to be impossible to implement your own argument parser when using Robyn, as just importing the robyn
module creates its own ArgumentParser
. I do not think that simply importing a module should have this behavior, and that you should have to pass a flag to the Robyn
constructor in order for it to create the ArgumentParser
instance. You should also be able to create your own Config
object containing all the values like processes
, workers
, etc when initializing Robyn
, so that if you have your own args or other way of getting these values, then you can pass them through. I'm currently having to do this in the following way:
app = Robyn(__file__, config=argparse.Namespace(**{
"processes": 1,
"workers": 1,
"dev": False,
"create": False,
"docs": False,
"open_browser": False,
"version": False,
"compile_rust_path": None,
"create_rust_file": None,
"log_level": "INFO",
}))
So a better way of doing this would be desirable.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too