pyd

ImportError while importing a python file in a pyd

强颜欢笑 提交于 2019-12-04 05:00:39
问题 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__ of course being packed inside of the .pyd. This would work, however here is what I want to do, but doesn't work: from apple.seed.worm import WormManager Explanation: apple = pyd, seed = directory in the pyd, worm = directory in seed directory in

Including PYDs/DLLs in py2exe builds

亡梦爱人 提交于 2019-12-01 16:43:47
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 files (.py). I also need to include a .dll. How do I get py2exe to include both .pyd and .dll files? Tony Meyer .pyd's and .DLL's are different here, in that a .pyd ought to be automatically found by modulefinder and so included (as long as you have the appropriate "import" statement) without needing to do anything. If one is missed, you do the same

How hard to reverse engineer .pyd files?

元气小坏坏 提交于 2019-11-30 17:29:32
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, but instead, I got a .pyd file. Docs says they are kind of same, but it must have an init[insert-module-name]() function. Is it safe to assume, it is as hard to reverse engineer them as dll files. If not, what is their hardness to reverse engineer in a scale from .pyc file to .dll files? They are, as you already found out, equivalent to DLL files

How hard to reverse engineer .pyd files?

帅比萌擦擦* 提交于 2019-11-30 01:06:15
问题 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, but instead, I got a .pyd file. Docs says they are kind of same, but it must have an init[insert-module-name]() function. Is it safe to assume, it is as hard to reverse engineer them as dll files. If not, what is their hardness to reverse engineer

How can I import a .PYD module in IronPython?

我的梦境 提交于 2019-11-29 12:51:26
I'm trying to use a python package from IronPython. Everything works fine if I import regular python modules. But when I try to do the following: import win32ui I get: No module named win32ui I've hunted through the code in IronPython.Runtime.Importer and there's no mention of .pyd Anyone know a way around this? You can check out IronClad which is working to provide this support. It may or may not work w/ your PYD of choice. A .pyd file is a DLL. So unless IronPython (which is written in .net) can correctly load C DLLs written for CPython, you might be out of luck. Update In fact, according to

Python C extension: Use extension PYD or DLL?

狂风中的少年 提交于 2019-11-28 18:44:35
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 pyc? Why can't I find any official article on this topic? pyd files are just dll files ready for python importing. To distinguish them from normal dlls, I recommend .pyd not .dll in windows. Here is the official doc about this issue: http://docs.python.org/faq/windows.html#is-a-pyd-file-the-same-as-a-dll According to the Creating Your Own Project

How can I import a .PYD module in IronPython?

孤街醉人 提交于 2019-11-28 06:14:27
问题 I'm trying to use a python package from IronPython. Everything works fine if I import regular python modules. But when I try to do the following: import win32ui I get: No module named win32ui I've hunted through the code in IronPython.Runtime.Importer and there's no mention of .pyd Anyone know a way around this? 回答1: You can check out IronClad which is working to provide this support. It may or may not work w/ your PYD of choice. 回答2: A .pyd file is a DLL. So unless IronPython (which is

Python C extension: Use extension PYD or DLL?

白昼怎懂夜的黑 提交于 2019-11-27 20:17:37
问题 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 pyc? Why can't I find any official article on this topic? 回答1: pyd files are just dll files ready for python importing. To distinguish them from normal dlls, I recommend .pyd not .dll in windows. Here is the official doc about this issue: http:/

Is it possible to decompile a .dll/.pyd file to extract Python Source Code?

随声附和 提交于 2019-11-27 14:11:59
问题 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 回答1: I assume the .pyd/.dll files were created in Cython, not Python? Anyway, generally it's not possible, unless there's a decompiler designed specifically for the language the file was originally compiled from. And while I know about C, C++, Delphi, .NET and some other decompilers, I've yet to hear about Cython decompiler. Of course, what Cython does is convert your