Your request is nonsensical. pywin32 wraps the Windows API libraries.
Mac OS X is not Windows; it does not implement the Windows API. Thus,
there is nothing for pywin32 to wrap on a Mac. Square peg, round hole.
Cheers,
Chris
>On Fri, Aug 19, 2011 at 1:02 PM, johnny.venter <johnny...@zoho.com> wrote:
>>
>> Hello, I am looking for the Python Windows Extensions to see if they can be
>> installed on a Mac.THanks.
>
>Your request is nonsensical.
That's not completely true.
>pywin32 wraps the Windows API libraries.
>Mac OS X is not Windows; it does not implement the Windows API. Thus,
>there is nothing for pywin32 to wrap on a Mac.
Again: Not completely true.
One could run python under wine and get -- at least a part of -- the
Windows API.
>Square peg, round hole.
wine might be the tool that makes the square peg round.
Best regards,
Günther
You can certainly try to install them via easy_install, I supposed, but
it's doubtful they would do anything, as the Mac does not support win32
API calls any more than Windows supports Cocoa/Objective-C calls.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
I found dcerpc might be the way to go.
The concept doesn't have meaning on a non-Windows computer, so I am
going to take the liberty of assuming that you really want to query
them from a different computer - some kind of network query. If that's
not the case, can you clarify exactly what your setup is?
Chris Angelico
From my mac, I want to use python to access and read objects from a remote Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this?
Then the "use Python" part is relatively immaterial; what you need to
know is: What network protocol are you using to "access and read
objects"? Start by researching that; once you know the details (is it
even TCP/IP-based?), you can look into whether Python has facilities
for speaking that protocol.
ChrisA
A way to approach this problem is installing Python + windows extensions on the actual
windows machine(s) you want to query.
Then create some form of a server process that does the windows specific stuff locally,
and exposes an interface with the functions you want to provide to your remote
machine(s). Talk with the server process using some form of platform independent IPC,
for instance Pyro: http://pypi.python.org/pypi/Pyro4/
Be careful what methods you expose this way though (security issues!)
Irmen
Based on this, I need to find a module that implements the LDAP APIs. By default, it does not appear that Python can speak this language, I am using version 2.6.1. The module I found is Python-LDAP (http://www.python-ldap.org/).
Does anyone have experience using this?
---- On Sun, 21 Aug 2011 00:30:07 -0700 Chris Angelico wrote ----
LDAP is a protocol, not a language. You are right, LDAP isn't part of
the Python standard library. The python-ldap extensions works well with
Active Directory. I've used it to write an authentication and
authorisation layer for our application.
A word of warning: LDAP isn't trivial and AD has its quirks, too. It's
going to take you a while to understand its concepts.
Christian