Importing nameko.cli.run to execute run()


#1

From @gpkc on Fri Jun 01 2018 18:54:03 GMT+0000 (UTC)

Is it ok to use nameko.cli.run.run() from my code directly? I want to give nameko some configurations programmatically, using dynaconf, but I do not like the idea of copying and pasting (or “adapting”) the contents of a run function in my program.
Is nameko.cli.run.run() safe to import, or it is not guaranteed to maintain the interface?


Copied from original issue: https://github.com/nameko/nameko/issues/549


#2

From @mattbennett on Sun Jun 03 2018 08:58:34 GMT+0000 (UTC)

We don’t have any kind of formal definition of the “public” APIs, but it should be safe.

The fundamental signature of some services to run, and the config to use when doing so, is not going to change. In the future it might grow some more keyword arguments like backdoor_port, but they’d be backwards compatible.