Re: Where to keep local Python modules?

2021-07-24 Thread Chris Green
Cameron Simpson wrote: > > Almost everything I use comes either from pip or from my own modules. My > $PYTHONPATH on the Mac has this: > > /Users/cameron/lib/python:/Users/cameron/rc/python > > being, respectively, my personal modules and a place for third party > modules which do not com

Re: Where to keep local Python modules?

2021-07-23 Thread Cameron Simpson
On 23Jul2021 11:33, Chris Green wrote: >This isn't a question about how to set PYTHONPATH so that Python code >can find imported modules, it's about what is a sensible layout for >one's home directory - i.e. where to put Python modules. > >I'm running Linux

Re: Where to keep local Python modules?

2021-07-23 Thread Chris Green
gt; one's home directory - i.e. where to put Python modules. > > > > I'm running Linux and have a number of Python modules that are only > > used by my own code. My top level Python code is all in ~/bin. I'd > > prefer to separate the modules so that they do

Re: Where to keep local Python modules?

2021-07-23 Thread Paul Bryan
23 at 22:46 +0300, Roland Mueller via Python-list wrote: > Hello, > > pe 23. heinäk. 2021 klo 21.44 Chris Green (c...@isbd.net) kirjoitti: > > > This isn't a question about how to set PYTHONPATH so that Python > > code > > can find imported modules, it's about

Re: Where to keep local Python modules?

2021-07-23 Thread Roland Mueller via Python-list
Hello, pe 23. heinäk. 2021 klo 21.44 Chris Green (c...@isbd.net) kirjoitti: > This isn't a question about how to set PYTHONPATH so that Python code > can find imported modules, it's about what is a sensible layout for > one's home directory - i.e. where to put Python

Where to keep local Python modules?

2021-07-23 Thread Chris Green
This isn't a question about how to set PYTHONPATH so that Python code can find imported modules, it's about what is a sensible layout for one's home directory - i.e. where to put Python modules. I'm running Linux and have a number of Python modules that are only used by my own

Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Grant Edwards
On 2021-04-26, Stephen Tucker wrote: > I have old software written in GWBASIC that I use to plot diagrams on the > screen. Pygame is probably the closest thing to what you're describing. If you want to produce professional looking plots from data, then matplotlib or one of the Gnuplot wrappers (

Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Michael Torrie
On 4/26/21 12:38 AM, Stephen Tucker wrote: > Hi, > > I have old software written in GWBASIC that I use to plot diagrams on the > screen. > > In Windows 10, I have to resort to using the DOSBox emulator to run it. > > I would dearly like to re-write it in Python - ideally Python 2.7. > > What, i

Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Chris Angelico
On Mon, Apr 26, 2021 at 4:40 PM Stephen Tucker wrote: > > Hi, > > I have old software written in GWBASIC that I use to plot diagrams on the > screen. > > In Windows 10, I have to resort to using the DOSBox emulator to run it. > "The screen" isn't really a viable target in a modern world, so it de

Are there Python modules that allow a program to write to the screen?

2021-04-25 Thread Stephen Tucker
Hi, I have old software written in GWBASIC that I use to plot diagrams on the screen. In Windows 10, I have to resort to using the DOSBox emulator to run it. I would dearly like to re-write it in Python - ideally Python 2.7. What, if anything, is available? Stephen Tucker. -- https://mail.pyt

profile guided optimization of loadable python modules?

2018-07-04 Thread Neal Becker
Has anyone tried to optimize shared libraries (for loadable python modules) using gcc with profile guided optimization? Is it possible? Thanks, Neal -- https://mail.python.org/mailman/listinfo/python-list

Re: Python modules

2014-11-11 Thread Ben Finney
Will Acheson writes: > I have had a lot of trouble with executing relative imports with some > of my projects in python. > > Are there any best practices or methods besides '../../' type > hard-coding? The important point to learn with Python's import system, as contrasted with various other la

Re: Python modules

2014-11-11 Thread Will Acheson
On Sunday, November 9, 2014 11:51:41 PM UTC-5, Steve Hayes wrote: > I have a book on Python that advocates dividing programs into modules, and > importing them when needed. > > I have a question about this. > > I can understand doing that in a compiled language, where different modules > can be

Re: Python modules

2014-11-10 Thread Chris Angelico
On Tue, Nov 11, 2014 at 12:36 AM, Roy Smith wrote: > Yes, exactly. When you deploy your application someplace, you need to > include all the things it depends on. In the simple case of a few > python files (say, a main program and a few modules that you're > written), the easiest thing to do mig

Re: Python modules

2014-11-10 Thread Roy Smith
In article , Steve Hayes wrote: > I have a book on Python that advocates dividing programs into modules, and > importing them when needed. Yes, this is a good idea. Breaking your program down into modules, each of which does a small set of closely related things, makes it easier to manage.

Re: Python modules

2014-11-09 Thread Ben Finney
Steve Hayes writes: > So if I want to run it on another computer, where do I look for the > compiled executable program to copy? You generally don't do that (the compiled files tend to be specific to various aspects of the target platform). This is a way that i's important to remember that most

Re: Python modules

2014-11-09 Thread Steve Hayes
On Mon, 10 Nov 2014 16:12:07 +1100, Ben Finney wrote: >Steve Hayes writes: > >> I have a book on Python that advocates dividing programs into modules, >> and importing them when needed. > >Which book is this? (This is not essential to your question, but it >might help to gauge your broader learn

Re: Python modules

2014-11-09 Thread Ben Finney
Steve Hayes writes: > I have a book on Python that advocates dividing programs into modules, > and importing them when needed. Which book is this? (This is not essential to your question, but it might help to gauge your broader learning environment.) > I can understand doing that in a compiled

Re: Python modules

2014-11-09 Thread Deepfriedice
On 10/11/14 14:55, Steve Hayes wrote: I have a book on Python that advocates dividing programs into modules, and importing them when needed. I have a question about this. I can understand doing that in a compiled language, where different modules can be imported from all sorts of places when th

Python modules

2014-11-09 Thread Steve Hayes
I have a book on Python that advocates dividing programs into modules, and importing them when needed. I have a question about this. I can understand doing that in a compiled language, where different modules can be imported from all sorts of places when the program is compiled. But I understa

Re: Is it better to import python modules inside function or at the top? What are the pros and cons?

2014-01-11 Thread Ned Batchelder
On 1/11/14 8:28 PM, Sam wrote: I have python modules which are used only in specific functions and the functions are not called all the time. Is it better to import the function inside the function only or is it a better practice to always import all modules at the top of the script? If I

Re: Is it better to import python modules inside function or at the top? What are the pros and cons?

2014-01-11 Thread Chris Angelico
On Sun, Jan 12, 2014 at 12:28 PM, Sam wrote: > I have python modules which are used only in specific functions and the > functions are not called all the time. Is it better to import the function > inside the function only or is it a better practice to always import all > modules a

Is it better to import python modules inside function or at the top? What are the pros and cons?

2014-01-11 Thread Sam
I have python modules which are used only in specific functions and the functions are not called all the time. Is it better to import the function inside the function only or is it a better practice to always import all modules at the top of the script? If I import the module inside the

Re: PyWart: Python modules are not so "modular" after all!

2013-11-11 Thread Rick Johnson
On Monday, November 11, 2013 1:34:54 AM UTC-6, Steven D'Aprano wrote: > import sys > sys.modules["mymodule"] = any_object_you_like() Thanks for this great advice! I'm not particularly fond of injecting names and objects in this manner due to the "surprise factor", especially when the names are go

Re: PyWart: Python modules are not so "modular" after all!

2013-11-10 Thread Steven D'Aprano
On Sun, 10 Nov 2013 20:13:45 -0800, Rick Johnson wrote: > What good is ANY namespace when you cannot override it's fundamental > interface? And interfaces are the key to OOP! > > Is __setattr__/__getattr__ ringing a bell people? import sys sys.modules["mymodule"] = any_object_you_like()

PyWart: Python modules are not so "modular" after all!

2013-11-10 Thread Rick Johnson
The Pros of Python Modules: Python modules require no special syntax to create, nor do they induce extra indentation in your source code to maintain readability

Re: Windows Deployment Of Python Modules

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 6:23 PM, Adam Tauno Williams wrote: > David Robinow wrote: >>On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams >> wrote: >>> >>> Python itself is easy to deploy on Windows; just toss the MSI in >>your >>> local update server and away it goes. >>> >>> That's slick; LSU

Re: Windows Deployment Of Python Modules

2013-03-21 Thread Adam Tauno Williams
David Robinow wrote: >On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams > wrote: >> >> Python itself is easy to deploy on Windows; just toss the MSI in >your >> local update server and away it goes. >> >> That's slick; LSUS is awesome. >> >> >> But tha

Windows Deployment Of Python Modules

2013-03-21 Thread Adam Tauno Williams
Python itself is easy to deploy on Windows; just toss the MSI in your local update server and away it goes. That's slick; LSUS is awesome. But that gives you Python with no pip, easy_install, etc... And *that* is not packaged appropriately. Is there s

Re: Python modules

2013-01-14 Thread Grant Edwards
On 2013-01-14, Rick Johnson wrote: > Only a fool would do "from Tkinter import *"[2]. > [2] With the exception of command line testing, learning, or playing. I don't think those should be excepted. Habits acquired during learning/playing will be continue when doing real work, and "Example" code

Re: Python modules

2013-01-14 Thread Rick Johnson
On Monday, January 14, 2013 9:04:00 AM UTC-6, Chris Angelico wrote: > The performance cost of reimporting a module is very low; > in fact, trying to avoid it by adorning all your usage > with an extra dot-level will probably cost you a lot more, > since there'll be an extra lookup every time. Most

Re: Python modules

2013-01-14 Thread Dan Sommers
On Mon, 14 Jan 2013 15:54:27 +0100, zoom wrote: > Is there any "rules" regarding importing python modules within your own > module? I mean, how does this affects the performance of the program? "Even the initializers are optimized!" -- Mel, the real programmer Unless y

Re: Python modules

2013-01-14 Thread zoom
On 01/14/2013 04:01 PM, Dan Sommers wrote: On Mon, 14 Jan 2013 15:54:27 +0100, zoom wrote: Is there any "rules" regarding importing python modules within your own module? I mean, how does this affects the performance of the program? "Even the initializers are optimized!&qu

Re: Python modules

2013-01-14 Thread Chris Angelico
On Tue, Jan 15, 2013 at 1:54 AM, zoom wrote: > Is there any "rules" regarding importing python modules within your own > module? I mean, how does this affects the performance of the program? > > In short, when creating a module, is it worthwhile to be careful and import >

Python modules

2013-01-14 Thread zoom
Is there any "rules" regarding importing python modules within your own module? I mean, how does this affects the performance of the program? For example, I have my own module named "sound". At the top of the file sound.py I have: import scipy In the code I have: import sc

Re: noob can't install python modules/scripts

2012-12-29 Thread lostguru
On Saturday, December 29, 2012 9:33:59 AM UTC-5, Joel Goldstick wrote: > You should read the BeautifulSoup tutorial/documentation.  If I remember > correctly you do  > from bs4 import BeautifulSoup > > Look at this tutorial to get started: > http://www.crummy.com/software/BeautifulSoup/bs4/doc

Re: noob can't install python modules/scripts

2012-12-29 Thread Joel Goldstick
On Fri, Dec 28, 2012 at 11:40 PM, lostguru wrote: > On Friday, December 28, 2012 11:12:19 PM UTC-5, Steven D'Aprano wrote: > > "The website"? There's more than one website on the Internet. Which > > > > website are you referring to? What .py script did you download? How did > > > > you run it? De

Re: noob can't install python modules/scripts

2012-12-28 Thread lostguru
On Friday, December 28, 2012 11:12:19 PM UTC-5, Steven D'Aprano wrote: > "The website"? There's more than one website on the Internet. Which > > website are you referring to? What .py script did you download? How did > > you run it? Details are important! > sorry about that; I was using the se

Re: noob can't install python modules/scripts

2012-12-28 Thread Steven D'Aprano
On Fri, 28 Dec 2012 17:45:56 -0800, lostguru wrote: > using easy_install as an example, I downloaded the .py script the > website told me to use for 64-bit installations, and ran it; "The website"? There's more than one website on the Internet. Which website are you referring to? What .py scrip

Re: noob can't install python modules/scripts

2012-12-28 Thread lostguru
I guess I should add that the python installation is 64-bit as well thanks again! -- http://mail.python.org/mailman/listinfo/python-list

noob can't install python modules/scripts

2012-12-28 Thread lostguru
hi, I'm not that new to programming (java) but I'm a pathetic newbie when it comes to python. I just started learning today and I'm trying to install third-party modules/scripts (I don't know the difference at the moment) so that they'll work in python; namely, easy_install/pip/distribute and be

Re: Shipping python modules - best practices?

2012-10-27 Thread Demian Brecht
I should also mention that these are just my personal best practices that I've put together during my time working with/on OS projects. You'll almost never find two projects with identical packaging, so really at the end of the day, it's totally up to you and your particular project requirements

Re: Shipping python modules - best practices?

2012-10-27 Thread Demian Brecht
ocs and have the users using the project generate the static content themselves (usually done through a make target). On 2012-10-27, at 7:02 AM, rambius wrote: > Hello, > > I developed some moderate-sized python scripts that I would like to > distribute as python modules. I

Shipping python modules - best practices?

2012-10-27 Thread rambius
Hello, I developed some moderate-sized python scripts that I would like to distribute as python modules. I have never shipped modules before and I read http://docs.python.org/distutils/index.html. I was able to generate a source distribution, but I still have some questions. 1) My module

Re: new to Python - modules to leverage Perl scripts?

2012-05-07 Thread Cameron Simpson
On 07May2012 09:16, Peter Otten <__pete...@web.de> wrote: | Rogelio wrote: | > I've got quite a few Perl scripts that I would like to leverage, and | > I'd like to make some Python wrapper scripts for them. | > | > The Perl scripts shell into various network appliances, run certain | > commands, a

Re: new to Python - modules to leverage Perl scripts?

2012-05-07 Thread Peter Otten
Rogelio wrote: > I've got quite a few Perl scripts that I would like to leverage, and > I'd like to make some Python wrapper scripts for them. > > The Perl scripts shell into various network appliances, run certain > commands, and then output those commands into a file. > > I recently found out

new to Python - modules to leverage Perl scripts?

2012-05-06 Thread Rogelio
I've got quite a few Perl scripts that I would like to leverage, and I'd like to make some Python wrapper scripts for them. The Perl scripts shell into various network appliances, run certain commands, and then output those commands into a file. I recently found out about the subprocess modules (

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-22 Thread Ralph Heinkel
> > See "Compiling 64-bit extension modules on Windows" at > . It applies to > non-Cython extensions as well. > > MinGW-w64 also works, but you'll have to generate and use libpythonXX.a and > libmsvcr90.a link libraries. > > Christoph Th

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-22 Thread Stefan Behnel
Thomas Bach, 21.03.2012 20:03: > Ralph Heinkel writes: >> when processing our mass spectrometry data we are running against the >> 2GB memory limit on our 32 bit machines. So we are planning to move to >> 64bit. Downloading and installing the 64bit version of Python for >> Windows is trivial, but h

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread cjgohlke
On Wednesday, March 21, 2012 8:06:47 AM UTC-7, Ralph Heinkel wrote: > Hi, > > when processing our mass spectrometry data we are running against the > 2GB memory limit on our 32 bit machines. So we are planning to move to > 64bit. Downloading and installing the 64bit version of Python for > Windows

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Thomas Bach
Hi, Ralph Heinkel writes: > Hi, > > when processing our mass spectrometry data we are running against the > 2GB memory limit on our 32 bit machines. So we are planning to move to > 64bit. Downloading and installing the 64bit version of Python for > Windows is trivial, but how do we compile our o

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Terry Reedy
On 3/21/2012 11:06 AM, Ralph Heinkel wrote: when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is trivial, but how do we compile our

Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Ralph Heinkel
Hi, when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is trivial, but how do we compile our own C extension? Visual C ++ 2008 express

importing python modules from java

2012-02-25 Thread Jeffrey Hubbard
Hello, I have written a c++ library which embeds python functions as described in http://docs.python.org/extending/embedding.html. Everything works fine, I can import and use modules such as numpy by calling PyImport_ImportModule(...). Now I wrapped this c++ library for java using SWIG. However,

Re: Import python modules from sub-directories

2010-08-06 Thread Navkirat Singh
On 06-Aug-2010, at 1:13 PM, 夏震 wrote: > > >> Hi guys, >> >> I am new to python and would like to import certain classes in >> sub-directories of the >> working directory. I was wondering how will I be able to achieve this? >> >> Regards, >> Nav >> -- >> http://mail.python.org/mailman/listinf

Re: Import python modules from sub-directories

2010-08-06 Thread 夏震
> Hi guys, > > I am new to python and would like to import certain classes in > sub-directories of the > working directory. I was wondering how will I be able to achieve this? > > Regards, > Nav > -- > http://mail.python.org/mailman/listinfo/python-list > Please try "touch __init__.py" in sub-

Re: Import python modules from sub-directories

2010-08-05 Thread Ralf Schoenian
Navkirat Singh wrote: Hi guys, I am new to python and would like to import certain classes in sub-directories of the working directory. I was wondering how will I be able to achieve this? Regards, Nav Hi, put an empty file with the name __init__.py in your subdirectory. I call it sub1 here

Re: Import python modules from sub-directories

2010-08-05 Thread Navkirat Singh
On 06-Aug-2010, at 10:44 AM, Navkirat Singh wrote: > Hi guys, > > I am new to python and would like to import certain classes in > sub-directories of the working directory. I was wondering how will I be able > to achieve this? > > Regards, > Nav Thanks. I got it. I just put an empty __init_

Import python modules from sub-directories

2010-08-05 Thread Navkirat Singh
Hi guys, I am new to python and would like to import certain classes in sub-directories of the working directory. I was wondering how will I be able to achieve this? Regards, Nav -- http://mail.python.org/mailman/listinfo/python-list

Re: what are some good python modules?

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 5:02 PM, Robin wrote: > What are some good python modules that can be downloaded for any > purpose that is recomended? That's a rather vauge question Robin. There are tonnes of packages on PyPi (1). cheers James 1. http://pypi.python.org/ -- -- "Pro

Re: what are some good python modules?

2010-06-14 Thread Ben Finney
Robin writes: > What are some good python modules that can be downloaded for any > purpose that is recomended? You will want to start at the Python Package Index, http://pypi.python.org/>. For more specific advice, you'll need to tell us more about what your specific purpose i

what are some good python modules?

2010-06-14 Thread Robin
What are some good python modules that can be downloaded for any purpose that is recomended? -Robin -- http://mail.python.org/mailman/listinfo/python-list

On the installation of external Python modules

2010-05-27 Thread Wim R. Cardoen
Hello, In the past I installed different versions of python (using gcc) e.g. 2.5.4, 2.6.4 at the following places: /wim/pkg/python/2.5.4 /wim/pkg/python/2.6.4 I installed the numpy, scipy, matplotlib, dadi modules using the command: /wim/pkg/python/2.5.4/bin/python setup.py install --prefix=/wim

Re: distutils not finding all of my pure python modules

2010-01-24 Thread Gabriel Genellina
En Thu, 21 Jan 2010 12:41:20 -0300, Jeremy escribió: from distutils.core import setup purePythonModules = ['regex', 'gnuFile'] setup(name='PythonForSafeguards', version='0.9.1', description = 'Python code for MCNP and Safeguards analysis.', author = 'Jake the Snake', author_em

distutils not finding all of my pure python modules

2010-01-21 Thread Jeremy
I have a small set of Python packages/modules that I am putting together. I'm having trouble in that when I run python setup.py sdist I don't get all of my pure python modules. The setup.py script I use is: # = from distutils.core im

Re: Runtime load python modules from memory

2009-12-10 Thread Gabriel Genellina
En Thu, 10 Dec 2009 12:13:15 -0300, scream...@gmail.com escribió: Is it possible to load python module from memory? For example, I can read python .pyc file into memory, preprocess it ( decrypt :-) ), and then import it. Is it possible? Sure. Frozen modules are exactly that; see Tools/fre

Runtime load python modules from memory

2009-12-10 Thread scream...@gmail.com
Hello! Is it possible to load python module from memory? For example, I can read python .pyc file into memory, preprocess it ( decrypt :-) ), and then import it. Is it possible? -- http://mail.python.org/mailman/listinfo/python-list

Re: MUD Game Programmming - Python Modules in C++

2009-10-14 Thread Gabriel Genellina
En Wed, 14 Oct 2009 05:19:06 -0300, Ulrich Eckhardt escribió: Gabriel Genellina wrote: #ifdef _DEBUG #undef _DEBUG #include #define _DEBUG #else #include #endif [...to keep Python from linking against non-existant debug libraries.] No, don't do that. Just compile your application in relea

Re: MUD Game Programmming - Python Modules in C++

2009-10-14 Thread Ulrich Eckhardt
Gabriel Genellina wrote: >> #ifdef _DEBUG >> #undef _DEBUG >> #include >> #define _DEBUG >> #else >> #include >> #endif [...to keep Python from linking against non-existant debug libraries.] > > No, don't do that. Just compile your application in release mode. Why not, does it break anything?

Re: MUD Game Programmming - Python Modules in C++

2009-10-14 Thread Ulrich Eckhardt
Christopher Lloyd wrote: > I'm a relatively inexperienced programmer, and have been learning some > basic C++ and working through the demos in Ron Penton's "MUD Game > Programming" book. In it, Python modules are run from inside a C++ > program. [...] > If I

Re: MUD Game Programmming - Python Modules in C++

2009-10-14 Thread Ulrich Eckhardt
Irmen de Jong wrote: > [...] is there any reason why you would go the route of embedding python > in C++ ? Why not just stick to (pure) Python? Embedding C or C++ stuff > as extension modules in Python (if you really need to do this) is easier > than the other way around, in my experience. If you

Re: MUD Game Programmming - Python Modules in C++

2009-10-13 Thread Gabriel Genellina
En Tue, 13 Oct 2009 18:08:53 -0300, Christopher Lloyd escribió: #include #include #include "Python.h" int main() { std::cout << "Starting Python Demo Test" << std::endl; Py_Initialize();// initialize python std::string str; std::getline( std::cin, str );

Re: MUD Game Programmming - Python Modules in C++

2009-10-13 Thread Gabriel Genellina
En Tue, 13 Oct 2009 18:08:53 -0300, Christopher Lloyd escribió: #include #include #include "Python.h" int main() { std::cout << "Starting Python Demo Test" << std::endl; Py_Initialize();// initialize python std::string str; std::getline( std::cin, str );

Re: MUD Game Programmming - Python Modules in C++

2009-10-13 Thread Irmen de Jong
ng through the demos in Ron Penton's "MUD Game Programming" book. In it, Python modules are run from inside a C++ program. The problem that I'm having is making the Python part work. Take the following code: [...] Can't help you on your immediate problem, but is th

MUD Game Programmming - Python Modules in C++

2009-10-13 Thread Christopher Lloyd
n Penton's "MUD Game Programming" book. In it, Python modules are run from inside a C++ program. The problem that I'm having is making the Python part work. Take the following code: // This program shows you how to integrate Python in a very basic manner #include #include #

Re: SONAME for python modules is bad? (aka multiple module version)

2009-07-24 Thread Diez B. Roggisch
mathieu schrieb: As far as I know there has not been any consensus on how to install multiple version of a same module in python ? What are the recommended mechanism ? I use virtualenvs for everything. Especially on unixish OSes this usually works without problems. On windows, things are a bi

SONAME for python modules is bad? (aka multiple module version)

2009-07-24 Thread mathieu
As far as I know there has not been any consensus on how to install multiple version of a same module in python ? What are the recommended mechanism ? I could not find any documentation on the subject. Does anyone sees any issue with using standard SONAME mechanism when installing a python module

Are there any python modules available to extract form field names and form data from a non-flatten pdf file?

2009-04-17 Thread monogeo
I tried pyPdf, it doesn't extract form field names and form data from a non-flatten pdf file, thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Listing all python modules robustly

2009-03-31 Thread Brian
hod that can call any python module > function. I would like to extend the interface to allow dynamically listing > all python modules, and for a given module all functions, and for a given > function all argument types and the return types if possible. > Starting with the modules, I came

Listing all python modules robustly

2009-03-31 Thread Brian
I've used the C api to write a method that can call any python module function. I would like to extend the interface to allow dynamically listing all python modules, and for a given module all functions, and for a given function all argument types and the return types if possible. Starting

Re: Distributing compiled (swig) python modules

2008-10-15 Thread Scott David Daniels
mathieu wrote: ...Is there some documentation (that I missed in my previous google search) that describe how to prepare python module that can be redistributed with some kind of backward compatibility (= so that when prepared on python 2.4, it works on 2.5/2.6 at least) ? Nope, you didn't miss

Re: Distributing compiled (swig) python modules

2008-10-15 Thread Diez B. Roggisch
mathieu wrote: > Hi there, > > I have prepared binaries of a python module that I wrote. Basically > the lib is written in C++ and wrapped in python using SWIG. Of course > it links to the python dynamic libraries. I found out that this is > version dependant. For instance if I prepare the bina

Distributing compiled (swig) python modules

2008-10-15 Thread mathieu
Hi there, I have prepared binaries of a python module that I wrote. Basically the lib is written in C++ and wrapped in python using SWIG. Of course it links to the python dynamic libraries. I found out that this is version dependant. For instance if I prepare the binaries on my machine with a py

Python - modules and netCDF

2008-10-06 Thread Michele Thornton
Greetings, I would like to use Python to open, edit, and write netCDF files. I mostly work as a GIS analyst and find myself needing to edit netCDF files in order to meet CF Metadata conventions. Along with Python, I need to include, as far as I can tell, at least 2 modules, Scientific Python (or

Python Modules To convert PDF files to HTML files

2008-07-30 Thread srinivasan srinivas
Hi, could someone tel me any python modules which can be used to convert PDF files to HTML files?? Thanks, Srini Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ -- http://mail.python.org/mailman/listinfo/python

Using Python Modules from JAVA

2008-07-28 Thread raymi
Hi all, I'd like to use the pygments syntax highlighting module from within a JAVA application. While I understand how to use Jython to execute a script file or interpret single statements, I don't know how I can use a whole module (i.e. the several files pygments consists of). In order to deploy

Re: Zipping python modules

2008-06-17 Thread Allen
Larry Bates wrote: Brian Vanderburg II wrote: I've installed Python 2.5 on MSW and it works. I'm preparing it to run from a thumb drive so I can run applications by dropping them onto the python.exe or from command line/etc. It works but the size is quite large. I've compressed most of the

Re: Zipping python modules

2008-06-16 Thread Larry Bates
Brian Vanderburg II wrote: I've installed Python 2.5 on MSW and it works. I'm preparing it to run from a thumb drive so I can run applications by dropping them onto the python.exe or from command line/etc. It works but the size is quite large. I've compressed most of the executables with UPX

Zipping python modules

2008-06-16 Thread Brian Vanderburg II
I've installed Python 2.5 on MSW and it works. I'm preparing it to run from a thumb drive so I can run applications by dropping them onto the python.exe or from command line/etc. It works but the size is quite large. I've compressed most of the executables with UPX even the dlls under site-p

Re: Distributing 2 python modules with incompatible API

2008-06-04 Thread Diez B. Roggisch
mathieu wrote: > hi there, > > As far as I understand python is not using the usual UNIX system of > soname when two libraries provide incompatible API. So let say I have > a _foo.so version 1.2 and 2.0, all I can (should do) is move them > underneath a subdirectory in site-package: > > pyth

Distributing 2 python modules with incompatible API

2008-06-04 Thread mathieu
hi there, As far as I understand python is not using the usual UNIX system of soname when two libraries provide incompatible API. So let say I have a _foo.so version 1.2 and 2.0, all I can (should do) is move them underneath a subdirectory in site-package: pythonX.Y/site-package/foo1.2/_foo.s

Re: about python modules

2008-05-21 Thread Scott David Daniels
srinivas wrote: ... i want to know how to import my functions folder to python in sucha way that the functions in functions folder should work like python library modules . i have python in folder C:\python25\.. and functions folder D:\programs\Functions\ pls help me friends how to do that.

Re: about python modules

2008-05-21 Thread inhahe
i always just put most of my python files in the c:\python25 directory. including ones i want to import as modules, since they import from there. otherwise you can put the file in c:\python25\lib\site-packages "srinivas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi friends i

Re: about python modules

2008-05-21 Thread bockman
On 21 Mag, 14:31, srinivas <[EMAIL PROTECTED]> wrote: > hi friends i am new to python programming. > i am using Python 2.5 and IDLE as editor. > i have developed some functions in python those will be calling > frequently in my main method . > now i want to know how to import my functions folder to

Re: about python modules

2008-05-21 Thread Roy Smith
In article <[EMAIL PROTECTED]>, srinivas <[EMAIL PROTECTED]> wrote: > hi friends i am new to python programming. > i am using Python 2.5 and IDLE as editor. > i have developed some functions in python those will be calling > frequently in my main method . > now i want to know how to import my fu

about python modules

2008-05-21 Thread srinivas
hi friends i am new to python programming. i am using Python 2.5 and IDLE as editor. i have developed some functions in python those will be calling frequently in my main method . now i want to know how to import my functions folder to python in sucha way that the functions in functions folder shou

Re: python modules collection

2008-01-31 Thread [EMAIL PROTECTED]
On 31 jan, 02:57, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/30, J. Peng <[EMAIL PROTECTED]>: > > > Hello, > > > Is there a site for python,which collects most kinds of python modules? > > like CPAN for Perl. > > Sometime I wan

Re: python modules collection

2008-01-30 Thread Guilherme Polo
2008/1/30, J. Peng <[EMAIL PROTECTED]>: > Hello, > > Is there a site for python,which collects most kinds of python modules? > like CPAN for Perl. > Sometime I want to use a module,like the time/date modules,don't know > where I should search from. > Sorry if

python modules collection

2008-01-30 Thread J. Peng
Hello, Is there a site for python,which collects most kinds of python modules? like CPAN for Perl. Sometime I want to use a module,like the time/date modules,don't know where I should search from. Sorry if I have repeated this question on the list. Thanks! -- http://mail.python.org/ma

py2exe: python modules and applicaation

2008-01-23 Thread vedrandekovic
Hello again, I'am working a simple application with wxpython, py2exe and directpython.After I write python code in my wxpython textctrl, then my application must save that code and create ( pgssetup2.py script ), and then with py2exe create (.exe) of the code. ( my application is builded with py2

  1   2   >