Calling python code from D

asdf via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 25 13:46:40 PST 2016


On Thursday, 25 February 2016 at 21:40:45 UTC, Wyatt wrote:
> I have a project I started in Python before I realised I really 
> don't enjoy Python.  It's been on the back-burner for a few 
> years and I'd like to start again in D, but there's a 
> particular python module (Mutagen) that I outright refuse to 
> reimplement.  What's the state of the art in calling Python 
> code from D?
>
> I have a hunch PyD fits somewhere in this equation, but the 
> documentation is pretty sparse, and what little I can find 
> about this area makes it seem like a fairly tedious manual 
> process.  Is there a less-painful and intensive way to truss 
> things up?  Something to generate a simple D wrapper from a 
> python module?
>
> -Wyatt

I haven't tried this myself but D is supposed to have excellent 
interface to C code. Perhaps you can go that route. 
http://stackoverflow.com/questions/145270/calling-c-c-from-python


More information about the Digitalmars-d-learn mailing list