tagged [python]
Batch Renaming of Files in a Directory
Batch Renaming of Files in a Directory Is there an easy way to rename a group of files already contained in a directory, using Python? I have a directory full of *.doc files and I want to rename them...
- Modified
- 22 Oct at 13:45
Decoding a WBXML SyncML message from an S60 device
Decoding a WBXML SyncML message from an S60 device I'm trying to decode a WBXML encoded SyncML message from a Nokia N95. My first attempt was to use the python pywbxml module which wraps calls to libw...
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!)
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) Dear stack overflow community, I've been given the task of overhauling a couple of websites ...
- Modified
- 27 Oct at 22:19
How to use Python to login to a webpage and retrieve cookies for later usage?
How to use Python to login to a webpage and retrieve cookies for later usage? I want to download and parse webpage using python, but to access it I need a couple of cookies set. Therefore I need to lo...
- Modified
- 7 Nov at 06:11
How do I resize an image using PIL and maintain its aspect ratio?
How do I resize an image using PIL and maintain its aspect ratio? Is there an obvious way to do this that I'm missing? I'm just trying to make thumbnails.
- Modified
- 7 Nov at 23:41
What's the simplest way to access mssql with python or ironpython?
What's the simplest way to access mssql with python or ironpython? I've got mssql 2005 running on my personal computer with a database I'd like to run some python scripts on. I'm looking for a way to ...
- Modified
- 14 Nov at 21:19
How do I filter ForeignKey choices in a Django ModelForm?
How do I filter ForeignKey choices in a Django ModelForm? Say I have the following in my `models.py`: I.e. there are multiple `Companies`, ea
- Modified
- 15 Nov at 01:21
How do I remove a specific number of files using python (version 2.5)?
How do I remove a specific number of files using python (version 2.5)? I would like to remove two files from a folder at the conclusion of my script. Do I need to create a function responsible for rem...
How can I get my python (version 2.5) script to run a jar file inside a folder instead of from command line?
How can I get my python (version 2.5) script to run a jar file inside a folder instead of from command line? I am familiar with using the to run from the command line. However, I would like to be able...
- Modified
- 18 Nov at 17:5
How do I change directory back to my original working directory with Python?
How do I change directory back to my original working directory with Python? I have a function that resembles the one below. I'm not sure how to use the os module to get back to my original working di...
- Modified
- 18 Nov at 17:30
Public free web services for testing soap client
Public free web services for testing soap client Are there any publicly available [SOAP 1.2](http://en.wikipedia.org/wiki/SOAP_(protocol))/[WSDL 2.0](http://en.wikipedia.org/wiki/Web_Services_Descript...
- Modified
- 22 Nov at 19:21
How to validate IP address in Python?
How to validate IP address in Python? What's the best way to validate that an IP entered by the user is valid? It comes in as a string.
- Modified
- 25 Nov at 23:42
Launch a shell command with in a python script, wait for the termination and return to the script
Launch a shell command with in a python script, wait for the termination and return to the script I've a python script that has to launch a shell command for every file in a dir: This works fine for t...
- Modified
- 28 Nov at 11:35
Monitoring a displays state in python?
Monitoring a displays state in python? How can I tell when Windows is changing a monitors power state?
Having problem importing the PIL image library
Having problem importing the PIL image library i am trying to do something with the PIL Image library in django, but i experience some problems. I do like this: `import Image` And then I do like this ...
- Modified
- 5 Dec at 18:34
IronPython For Unit Testing over C#
IronPython For Unit Testing over C# We know that Python provides a lot of productivity over any compiled languages. We have programming in C# & need to write the unit test cases in C# itself. If we se...
- Modified
- 6 Dec at 22:30
Run a shortcut under windows
Run a shortcut under windows The following doesn't work, because it doesn't wait until the process is finished: Any idea how to run a shortcut and wait that the subprocess returns ? originally I was t...
how to browse to a external url from turbogears/cherrypy application?
how to browse to a external url from turbogears/cherrypy application? I am writing a tinyurl clone to learn turbogears. I am wondering how do i redirect my browser to the external website (say www.yah...
- Modified
- 14 Dec at 11:23
split string on a number of different characters
split string on a number of different characters I'd like to split a string using one or more separator characters. E.g. "a b.c", split on " " and "." would give the list ["a", "b", "c"]. At the momen...
Best way to import version-specific python modules
Best way to import version-specific python modules Which method makes the most sense for importing a module in python that is version specific? My use case is that I'm writing code that will be deploy...
- Modified
- 24 Dec at 04:50
Good language to develop a game server in?
Good language to develop a game server in? I was just wondering what language would be a good choice for developing a game server to support a large (thousands) number of users? I dabbled in python, b...
- Modified
- 25 Dec at 15:3
Best way to create a simple python web service
Best way to create a simple python web service I've been using python for years, but I have little experience with python web programming. I'd like to create a very simple web service that exposes som...
- Modified
- 6 Jan at 02:17
Ignore python multiple return value
Ignore python multiple return value Say I have a Python function that returns multiple values in a tuple: Is there a nice way to ignore one of the results rather than just assigning to a temporary var...
SFTP in Python? (platform independent)
SFTP in Python? (platform independent) I'm working on a simple tool that transfers files to a hard-coded location with the password also hard-coded. I'm a python novice, but thanks to ftplib, it was e...
IronPython on ASP.NET MVC
IronPython on ASP.NET MVC Has anyone tried ASP.NET MVC using IronPython? Having done a lot of Python development recently, it would be nice to continue with the language as I go into a potential ASP.N...
- Modified
- 14 Jan at 03:45