¡@

Home 

python Programming Glossary: utility

How can I profile a SQLAlchemy powered application?

http://stackoverflow.com/questions/1171166/how-can-i-profile-a-sqlalchemy-powered-application

recommend using pgadmin along with its graphical EXPLAIN utility to see what kind of work the query is doing. If you see many..

extracting text from MS word files in python

http://stackoverflow.com/questions/125222/extracting-text-from-ms-word-files-in-python

call to antiword . Antiword is a linux commandline utility for dumping text out of a word doc. Works pretty well for simple..

How do I download a file over HTTP using Python?

http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python

I download a file over HTTP using Python I have a small utility that I use to download an MP3 from a website on a schedule and.. the actual MP3 however. I would prefer to have the entire utility written in Python though. It was the project I used to begin..

Simple implementation of N-Gram, tf-idf and Cosine similarity in Python

http://stackoverflow.com/questions/2380394/simple-implementation-of-n-gram-tf-idf-and-cosine-similarity-in-python

n pad_left False pad_right False pad_symbol None A utility that produces a sequence of ngrams from a sequence of items...

Python unittest: Generate multiple tests programmatically? [duplicate]

http://stackoverflow.com/questions/2798956/python-unittest-generate-multiple-tests-programmatically

If you use this often you could prettify this by using utility functions and or decorators I guess. Note that pairs are not..

read subprocess stdout line by line

http://stackoverflow.com/questions/2804543/read-subprocess-stdout-line-by-line

by line My python script uses subprocess to call a linux utility that is very noisy. I want to store all of the output to a log.. but the output does show up in my application until the utility has produced a significant amount of output. #fake_utility.py.. utility has produced a significant amount of output. #fake_utility.py just generates lots of output over time import time i 0 while..

How do threads work in Python, and what are common Python-threading specific pitfalls?

http://stackoverflow.com/questions/31340/how-do-threads-work-in-python-and-what-are-common-python-threading-specific-pit

right to leave the gil in python not for multicore but for utility computing From the last link an interesting quote Let me explain..

How can I speed up fetching pages with urllib2 in python?

http://stackoverflow.com/questions/3490173/how-can-i-speed-up-fetching-pages-with-urllib2-in-python

using threads. import time import threading import Queue # utility spawn a thread to execute target for each args def run_parallel_in_threads..

Suggestions for a Cron like scheduler in Python?

http://stackoverflow.com/questions/373335/suggestions-for-a-cron-like-scheduler-in-python

from datetime import datetime timedelta import time # Some utility classes functions first class AllMatch set Universal set match..

Best way to create a simple python web service [closed]

http://stackoverflow.com/questions/415192/best-way-to-create-a-simple-python-web-service

applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger full featured request..

What cross-platform GUI libraries are simple, lightweight, and have minimal dependencies?

http://stackoverflow.com/questions/426718/what-cross-platform-gui-libraries-are-simple-lightweight-and-have-minimal-depe

minimal dependencies I've written a small command line utility in Python ljdump if you're curious . I originally wrote it for..

Convert XML/HTML Entities into Unicode String in Python

http://stackoverflow.com/questions/57708/convert-xml-html-entities-into-unicode-string-in-python

to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode..

Python: find first element in a sequence that matches a predicate

http://stackoverflow.com/questions/8534256/python-find-first-element-in-a-sequence-that-matches-a-predicate

But it is quite tasteless to start filling the code with utility functions like this and people will probably not notice that..

Why is reading lines from stdin much slower in C++ than Python?

http://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python

and the fgets approaches as well as comparing with the wc utility. The scanf version segfaulted and I don't feel like troubleshooting.. by J.F. Sebastian in the comments below the GNU wc utility uses plain C read within the safe read.c wrapper to read chunks.. is quite fast though still a bit slower than the raw c wc utility of course usr bin time cat temp_big_file readline_test3.py 0.01user..

What is your favorite Python mocking library? [closed]

http://stackoverflow.com/questions/98053/what-is-your-favorite-python-mocking-library

with the Python unittest module. ... It also provides utility functions objects to assist with testing particularly monkey..