¡@

Home 

python Programming Glossary: linux

Is there any way to run Python on Android?

http://stackoverflow.com/questions/101754/is-there-any-way-to-run-python-on-android

user interfaces such as multi touch apps. Kivy runs on Linux Windows OS X Android and iOS. You can run the same python code..

subprocess with timeout

http://stackoverflow.com/questions/1191374/subprocess-with-timeout

timeouts in a Python program meant to run on Windows and Linux python multithreading timeout subprocess share improve this..

Python subprocess readlines() hangs

http://stackoverflow.com/questions/12419198/python-subprocess-readlines-hangs

NOTE I don't want to print out everything at once . pty is Linux only as said in the docs Because pseudo terminal handling is.. highly platform dependent there is code to do it only for Linux. The Linux code is supposed to work on other platforms but hasn.. dependent there is code to do it only for Linux. The Linux code is supposed to work on other platforms but hasn ™t been..

Why do people write #!/usr/bin/env python on the first line of a Python script?

http://stackoverflow.com/questions/2429511/why-do-people-write-usr-bin-env-python-on-the-first-line-of-a-python-script

How do I protect Python code?

http://stackoverflow.com/questions/261638/how-do-i-protect-python-code

with an off the shelf solution. The software will run on Linux systems so I don't think py2exe will do the trick . python..

How to get current CPU and RAM usage in Python?

http://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python

ps top and Windows task manager. It currently supports Linux OS X FreeBSD and Windows with Python versions from 2.4 to 3.1..

An executable Python app [closed]

http://stackoverflow.com/questions/2933/an-executable-python-app

way to compile it into an executable for Mac Windows and Linux. The problem being I have no idea where to start or how to write.. Cross platform GUI libraries with Python bindings Windows Linux Mac Of course there are many but the most popular that I've.. is also gaining in popularity Single executable Linux Freeze works the same way like py2exe but targets Linux platform..

Non-blocking read on a subprocess.PIPE in python

http://stackoverflow.com/questions/375427/non-blocking-read-on-a-subprocess-pipe-in-python

this to be portable or at least work under Windows and Linux. here is how I do it for now It's blocking on the .readline.. way to read a stream without blocking on both Windows and Linux is to use Queue.get_nowait import sys from subprocess import..

Python read a single character from the user

http://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user

how you can read a single character in both Windows and Linux http code.activestate.com recipes 134892 class _Getch Gets a..

What are some good Python ORM solutions? [closed]

http://stackoverflow.com/questions/53428/what-are-some-good-python-orm-solutions

Take a screenshot via a python script. [Linux]

http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux

a screenshot via a python script. Linux I want to take a screenshot via a python script and unobtrusively.. and unobtrusively save it. I'm only interested in the Linux solution and should support any X based environment. python..

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

I should note that I tried this both under OS X 10.6.8 and Linux 2.6.32 RHEL 6.2 . The former is a macbook pro the latter is..

What is the simplest way to SSH using Python?

http://stackoverflow.com/questions/1233655/what-is-the-simplest-way-to-ssh-using-python

and not install anything on the remote server. python linux unix ssh share improve this question I haven't tried it..

extracting text from MS word files in python

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

which can be used in windows. How do I do the same in linux Is there any library python linux ms word share improve this.. How do I do the same in linux Is there any library python linux ms word share improve this question You could make a subprocess.. could make a subprocess call to antiword . Antiword is a linux commandline utility for dumping text out of a word doc. Works..

In-memory size of python stucture

http://stackoverflow.com/questions/1331471/in-memory-size-of-python-stucture

8 set 116 str 25 tuple 28 unicode 28 2012 09 30 python 2.7 linux 32 bit decimal 36 dict 136 float 16 int 12 list 32 object 8.. 32 object 8 set 112 str 22 tuple 24 unicode 32 python 3.3 linux 32 bit decimal 52 dict 144 float 16 int 14 list 32 object 8..

Force another program's standard output to be unbuffered using Python

http://stackoverflow.com/questions/1544050/force-another-programs-standard-output-to-be-unbuffered-using-python

be used with the subprocess module to achieve this python linux pipes stdout share improve this question Doing this is possible..

How to scp in python?

http://stackoverflow.com/questions/250283/how-to-scp-in-python

remotefile which is a hack and which doesn't work outside linux like systems and which needs help from the Pexpect module to..

read subprocess stdout line by line

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

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..

Print in terminal with colors using Python?

http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python

remain. Continue bcolors.ENDC This will work on unix linux including macOS and window provided you enable ansi.sys . There..

Ping a site in Python?

http://stackoverflow.com/questions/316866/ping-a-site-in-python

Python requires root to spawn ICMP i.e. ping sockets in linux. import ping socket try ping.verbose_ping 'www.google.com' count..

How can I return system information in Python?

http://stackoverflow.com/questions/466684/how-can-i-return-system-information-in-python

sys.platform 'darwin' import mac_sysinfo as sysinfo elif 'linux' in sys.platform import linux_sysinfo as sysinfo #etc print.. mac_sysinfo as sysinfo elif 'linux' in sys.platform import linux_sysinfo as sysinfo #etc print 'Memory available ' sysinfo.memory_available.. resources as Anthony points out you can access proc under linux. For Windows you could have a poke around at the Microsoft Script..

How can I listen for 'usb device inserted' events in Linux, in Python?

http://stackoverflow.com/questions/469243/how-can-i-listen-for-usb-device-inserted-events-in-linux-in-python

through hald but couldn't find a good example. python linux usb share improve this question You can use D Bus bindings..

How to terminate a python subprocess launched with shell=True

http://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true

successfully when issuing the p.terminate . python linux subprocess kill process share improve this question Use..

How to make a Python script standalone executable to run without ANY dependency?

http://stackoverflow.com/questions/5458048/how-to-make-a-python-script-standalone-executable-to-run-without-any-dependency

in .pyc C compiled files like .dll in Windows and .so in linux much harder to revert than common .pyo and .pyc files and also..

How to get console window width in python

http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python

Edit Looking for a solution that works on Linux python linux console terminal width share improve this question use import..

Increment a python floating point value by the smallest possible amount

http://stackoverflow.com/questions/6063755/increment-a-python-floating-point-value-by-the-smallest-possible-amount

sys from sys import platform as _platform if _platform linux or _platform linux2 _libm ctypes.cdll.LoadLibrary 'libm.so.6'.. platform as _platform if _platform linux or _platform linux2 _libm ctypes.cdll.LoadLibrary 'libm.so.6' _funcname 'nextafter'..

no module named zlib

http://stackoverflow.com/questions/6169522/no-module-named-zlib

how to install and manage different versions of python in linux After reading a couple stackoverflow threads I finally found..

Take a screenshot via a python script. [Linux]

http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux

and should support any X based environment. python linux screenshot share improve this question This works without..

unbuffered stdout in python (as in python -u) from within the program [duplicate]

http://stackoverflow.com/questions/881696/unbuffered-stdout-in-python-as-in-python-u-from-within-the-program

in u mode and exit with an error message if not This is on linux ubuntu 8.10 server python share improve this question The..