I've implemented some simplest Python functions and very simple "class" macro (which doesn't and wouldn't support inheritance). [https://github.com/Yardanico/nimpylib](https://github.com/Yardanico/nimpylib) \- check example2.nim for classes.
Yeah, code isn't the best - this is mainly due to the nature of Python (dynamic-typing), for example: "range(5)" \- here 5 is a position where range stops "range(1, 5)" \- 1 here is a position where range starts Simplest example of class macro usage: import pylib type HelloWorld = ref object name: string class HelloWorld(object): def init(self, name): self.name = name def greet(self): print("Hello,", self.name, sep = "\n") let c = newHelloWorld("Daniil") c.greet()