473,386 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating a DLL file from Python Code


Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.

The closest to solution I think I came was with this site:
http://www.py2exe.org/index.cgi/Py2e...esComDllServer
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about how to creat a dll file from Python?
It is possible under any conditions?

thank in advance

macedo

Mar 9 '07 #1
2 2450
ma**********@gmail.com a écrit :
Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.

The closest to solution I think I came was with this site:
http://www.py2exe.org/index.cgi/Py2e...esComDllServer
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about how to creat a dll file from Python?
It is possible under any conditions?
For inter-languages intagration maybe you can use some distributed
objects protocol like CORBA (see OmniORBpy), or - as you wrote about a
DLL - COM/DCOM (see pywin32). Or write a simple TCP or UDP layer to
communicate with your existing classes.
Note: all that need some work in the Python side to be able to work
using a client/server model.
Note2: as long as your interface dont change, you can make modifications
in both sides without problem.

A+

Laurent.
Mar 9 '07 #2
ici
On Mar 9, 2:08 pm, macedo.si...@gmail.com wrote:
Hi,

I would like to request your attention for this very specific issue:

I have several classes in Python, and now I want simply re-use it, in
other language.

The closest to solution I think I came was with this site:http://www.py2exe.org/index.cgi/Py2e...esComDllServer
but I not able to solve questions related with TLB files and
__init__.py files.

So, could anyone give a tip about how to creat a dll file from Python?
It is possible under any conditions?

thank in advance

macedo
Best way: http://www.python.org/doc/ext/embedding.html , than use your
modules as py files or string constants.

Mar 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Fuzzyman | last post by:
Pythons internal 'pointers' system is certainly causing me a few headaches..... When I want to copy the contents of a variable I find it impossible to know whether I've copied the contents *or*...
30
by: Sean R. Lynch | last post by:
I've been playing around with Zope's RestrictedPython, and I think I'm on the way to making the modifications necessary to create a capabilities-based restricted execution system. The idea is to...
4
by: Edvard Majakari | last post by:
Greetings, fellow Pythonistas! I'm about to create three modules. As an avid TDD fan I'd like to create typical 'use-cases' for each of these modules. One of them is rather large, and I wondered...
2
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
10
by: draghuram | last post by:
Hi, Is there any special support for sparse file handling in python? My initial search didn't bring up much (not a thorough search). I wrote the following pice of code: options.size =...
3
by: jd | last post by:
I'd like to create a program that takes files with "jsp-like" markup and processes the embedded code (which would be python) to produce the output file. There would be two kinds of sections in the...
5
by: krishnakant Mane | last post by:
hello, I have one strange requirement, I need to create html files through python and add some data from the database. it is a GUI based application developed in WX python. and the reports need...
7
by: DanielJohnson | last post by:
I have a small project which has around 10 .py files and I run this project using command line arguments. I have to distribute this project to somebody. I was wondering how can I make an...
3
by: Anish Chapagain | last post by:
Hi.. What will be the best approach for creating wrapper in python language for the API programmed in C. I came across SWIG, but am having problem as the generated .pyd file is not displaying any...
0
by: Timothy Grant | last post by:
On Mon, Aug 11, 2008 at 10:05 AM, <anartz@anartz.cjb.netwrote: It looks to me like you are opening the url, but never retrieving the content of the url. I think you may have better luck...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.