472,328 Members | 1,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Re: writing dll in python?

nishalrs wrote:
Hello All,

My main motivation is to build a collection of useful mathematical
models (that I have developed over the years) to design ultrasonic
sensors. This should be some sort of a library that should be able to
be used for desktop/web application development, to run in variety of
operating systems.
Interesting new applications of Python are welcome. Googling "Python
package (or module) ultrasonic sensor" did not turn up anything relevant
that I saw.
I am more than convinced after looking at python.org website, it is
the right tool for the job. I intend to learn python, but I am not
really sure, where to begin.
Start with the Python tutorial, perhaps parts of the reference manual,
and definitely peruse the first chapters in the library manual on
built-in functions and classes.

You will almost certainly want to use numpy (numpy.org) for numerical
calculation and possibly existing modules in scipy (scipy.org) or elsewhere.
Should I write all the functions as simple python scripts? Or is there
some facility for creating a .dll like library, that could be more
suitable for what in intend to develop?
A module is a 'script' that is intended to be imported by other Python
code. In your Python installation directory, /Libs has numerous *.py
examples. A 'package' is a collection of modules in a directory that
includes only called __init__.py (if I remember correctly). Don't worry
about details yet. When you have something worth distributing, you can
get help here or on other lists, such as the one for numpy/scipy.

When you are ready, you can announce it here and elsewhere and register
it at the Python Package Index (pypi.python.org/pypi).

Terry Jan Reedy

Sep 29 '08 #1
1 1888
Terry Reedy wrote:
....
Start with the Python tutorial, perhaps parts of the reference manual,
and definitely peruse the first chapters in the library manual on
built-in functions and classes.
Check out
http://wiki.python.org/moin/BeginnersGuide
to see a range of ways to learn Python, most very good (what works for
you vaires by student).
You will almost certainly want to use numpy (numpy.org) for numerical
calculation and possibly existing modules in scipy (scipy.org) or
elsewhere.
Although it is likely someyhing like numpy will be necessary, don't make
the mistake of thinking Python cannot handle calculation itself easily.
Where you'll need to leave python is in array and matrix calculations,
there the numpy code will get you near custom C/fortran code speeds.
>--Scott David Daniels
Sc***********@Acm.Org
Sep 30 '08 #2

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

Similar topics

18
by: Tad Marko | last post by:
Howdy! I'm trying to get my head around Python and I've come to realize that there are a lot of idioms in Python that are a bit different than in...
3
by: localpricemaps | last post by:
i am having a problem writing a tuple to a text file. my code is below. what i end up getting is a text file that looks like this burger, 7up...
16
by: Claudio Grondi | last post by:
I have a 250 Gbyte file (occupies the whole hard drive space) and want to change only eight bytes in this file at a given offset of appr. 200 Gbyte...
6
by: Mizipzor | last post by:
Hi, this is my first mail to the list (and any list for that matter) so any pointers on errors from my part would be appreciated. Im more used to...
42
by: psbasha | last post by:
Hi, Is it necessary in Python to close the File after reading or writing the data to file?.While refering to Python material ,I saw some where...
2
by: Yury | last post by:
I am new to python and programming generally, but someday it is time to start :) I am writing a python module in C and have a question about...
1
by: spohle | last post by:
hi, i use a lot the enumerate in my scripts and got really interested in possibly writing my own enumerate as an extension, for which i would...
2
by: Matej Cepl | last post by:
Is there somewhere support for the extension of email module, which would support writing to (and creating new) mbox folders (with all bells and...
3
by: koutoo | last post by:
I have a code that writes to 2 seperate files. I keep getting a "list index out of range" error. The strange part is that when checking the files...
3
by: Levi Campbell | last post by:
Hi, I'm trying to write a program for a friend of mine who uses windows but I use GNU/Linux. I know you can use mingw and link to the python dll,...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

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.