Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Exposing object model in Python?

Thread Tools

Re: Exposing object model in Python?

Graham Fawcett
Posts: n/a
"MK" <(E-Mail Removed)> wrote in message news:<bdffi1$skho2$(E-Mail Removed)>...
> Hi all,
> What would be the best way to expose the object model
> of a Python application?

There's no best way, and there are many very good ones to choose from.
I think the best-fit solution depends much on the specifics of your
problem. Perhaps you could clarify the nature of the application, the
environment in which you intend to deploy it, the intended audience
for the app, and some common use-cases in which you would wish to
write scripts against your model.

> If I package my app with py2exe, can I ship Python
> intepreter and access py2exe-cised app through Python
> scripts then?

The .exe created by py2exe *is* a Python interpreter. The tail-end of
the file is ZIP data containing the .pyc files of your application.
Practically speaking, the files in the tail-end are intended only for
the direct access of the interpreter in the head. So I don't think
py2exe is what you're looking for, unless you intend to run a
py2exe-based server of some kind which your scripts will connect to.

-- Graham
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exposing a reduced interface from object returned in dereferencediterator Stone Free C++ 0 08-20-2009 06:51 PM
Storing and Exposing a Complex Object Property In Viewstate daokfella ASP .Net 1 08-08-2008 08:26 PM
Return object without exposing it to delete Michael Pradel C++ 22 01-31-2007 08:27 PM
Convert Java Model to Java Model without XML Java 1 10-06-2006 09:00 PM
Re: Exposing object model in Python? MK Python 8 07-01-2003 04:05 AM