I want to provide automatic string formatting in an API such that:
my_api(\"path/to/{self.category}/{self.name}\", ...)
can be replaced wit
You can do "path/to/{self.category}/{self.name}".format(self=self). You could thus work with those kwargs in __getattr__.
"path/to/{self.category}/{self.name}".format(self=self)
__getattr__