Pyd is a library for the D programming language that wraps the raw Python/C API with a cleaner, simpler interface. It makes exposing raw D functions and classes to Python almost trivially simple. It bears certain similarities to Boost.Python, and indeed Boost.Python is a major influence on Pyd.
Questions tagged [pyd]
91 questions
30
votes
4 answers
Python C extension: Use extension PYD or DLL?
I have a Python extension written in C and I wonder if I should use the file extension DLL or PYD under Windows. (And what would I use in Linux?)
Are there any differences (besides the filename)?
I found an unofficial article. Is this the secret of…

gecco
- 17,969
- 11
- 51
- 68
24
votes
2 answers
Is it possible to decompile a .dll/.pyd file to extract Python Source Code?
Are there any ways to decompile a dll and/or a .pyd file in order to extract source code written in Python?
Thanks in advance

Youssef Imam
- 243
- 1
- 2
- 4
22
votes
2 answers
How hard to reverse engineer .pyd files?
After reading How do I protect Python code? , I decided to try a really simple extension module on Windows. I compiled my own extension module on Linux before, but this is the first time I compiled it on Windows. I was expecting to get a .dll file,…

yasar
- 13,158
- 28
- 95
- 160
18
votes
3 answers
How to import a .pyd file as a python module?
I am using PyCharm. I have a python script in the following location:
C:\Users\XYZ\PycharmProjects\Project1\playground.py
playground.py only has a line of code as shown below:
import PyTbl
In the Project1 folder there's another…

chengcj
- 888
- 2
- 8
- 22
10
votes
1 answer
Include *.pyd files in Python Packages
I have a python module module.pyd that works pretty fine once it is put manually onto the site-packages of python installation folder.
The problem starts when I upload my solution to a cloud enviroment, the buildpack requests that I pass every…

Lucas Vieira de Oliveira
- 101
- 1
- 1
- 3
10
votes
4 answers
Including PYDs/DLLs in py2exe builds
One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the…

TheObserver
- 2,973
- 7
- 33
- 41
7
votes
1 answer
Decompiling a .pyd that contains frozen python objects
I am trying to figure out the best way to decompile a python .pyd file. Everywhere I look I am coming up with dead ends. There seems to be no program to do this, except for 'Antifreeze' by Aaron Portnoy and Ali Rizvi-Santiago as demonstrated in 2008…

gunshotproductions
- 71
- 1
- 3
6
votes
2 answers
Using Python setuptools to put Cython-compiled pyd files in their original folders?
I'm trying to build the setup.py package for my Python 3.4 app which contains a Cython module. My plan is to have a setup.py file which requires Cython and compiles the .pyx file with the idea that typically I would just run that on Win32 (x86 &…

Brian Madden
- 951
- 1
- 8
- 21
5
votes
1 answer
Discover missing module using command-line ("DLL load failed" error)
On Windows, when we try to import a .pyd file, and a DLL that the .pyd depends on cannot be found, we get this traceback:
Traceback (most recent call last):
...
ImportError: DLL load failed: The specified module could not be found.
When this…

Bruno Oliveira
- 13,694
- 5
- 43
- 41
5
votes
3 answers
*.pyd file fails to load, but DependancyWalker comes up clean, and ProcMon shows it loaded
I am trying to load a *.pyd with Python, but I receive the well known "Import Error: DLL load failed: the specified procedure can not be found." error.
I have already done the following:
1.) Investigated the *.pyd with Dependency Walker. GPSVC.DLL…

Transformer2
- 93
- 1
- 2
- 5
5
votes
0 answers
How do I import a module with a pyd in Python?
Alright, so, what I'm trying to do is import a module in folders packed inside of a .pyd file. Here is something that would work for me:
from apple import __init__
With apple being the .pyd in the same directory as the Python script, and __init__…

billyands55
- 93
- 2
- 7
5
votes
2 answers
Calling d code from an interactive shell
I need an interactive environment where i can call d functions on the fly using a good scripting language with decent scientific plotting libraries (e.g. python).
Is there any way to call d functions from a shell (Ipython or similar)? I looked in to…

John_C
- 788
- 5
- 17
4
votes
2 answers
Python and SWIG - Multiple modules in a single .pyd (.so)
I am writing a C++ extension for Python using SWIG. From what I understand of Python and SWIG, each module must have its own .pyd file. For example, if I have a module named 'mymodule', there should be a corresponding '_mymodule.pyd' file.
In my…

MasterMind
- 379
- 2
- 17
4
votes
1 answer
Python find out contents of compiled module?
So have this Python .pyd module (C++), so I can't just open it in a text editor to find out what it contains. So how can I? I just want to know the function names inside it.

razrr
- 41
- 1
- 2
4
votes
2 answers
Using .PYD file in C#?
I am developing a program using C#, but I just figured out that what I am going to program is very very difficult in C# yet easy in Python. So what I want to do is make a .PYD file and use it in C# program, but I don't know how. I've been searching…

cylee
- 550
- 6
- 21