I slowly but surely teach Python itself. I study best. I am looking for some neat system performance procedures that I could try to make what you find useful to yourself. Some of the modules that I have successfully done and use are similar to the following:
But I'm stuck right now. What else could I do?
script, Bluetooth . (Windows) , Bluetooth, , .
, , .
""" Intended to run on Windows resume. Scans for bluetooth devices and if a particular device is not present, locks the computer. """ import bluetooth import ctypes import sys # Bluetooth UID of "token" device wanted = "XX:XX:XX:XX:XX:XX" print "performing inquiry..." # Hack.... if 0 devices are present, pybluez throws an exception passed = False try: discovered = bluetooth.discover_devices() if wanted in discovered: print "Found phone" passed = True else: passed = False except: passed = False if not passed: print "Locking" ctypes.windll.user32.LockWorkStation()
:
: , Unicode ( !) "Joel On Software", HTML , . , , , , .
Python 2.5, script, Subversion, . . . , , Python .
script rsync -.
, Python.
, , "" "checkUTF8". - , ( ) , :
$ grep '[0-9.]' somefile | sum 567567 $ wc -l * | sum 45647
... , .
, UTF8, , , , , . hex-, . , iso8859-1 utf8, .
"sum" , .
PyZip . , - :
pyzip store\ProjectFiles-[date] *.py *.txt
"store" ,
".zip",
[] , 20090624
[], 155859
[#], , ,
, PKZip PyUnzip
ActiveState Python Windows, win32, ActiveDirectory, Word Excel COM, SQLite , VBScript, , ( ) VBScript.
script, rsync , , (sorta like time machine mac). , .
script bash, - , , "" " python, .
repo .
script, jar java classpath, , . script .
, script.
script, / Java/etc .
, , , script, . , .
, , , , .
, , . .
, . , ( , ).
, . , .wav "MThd", , , Midi, - .
Python script (, , , ), dwm.
, backend Openbox pipe.
, , .. , Cacti MRTG.
mamy, Python, Python Recipes
, , , "myfolder", , , ..
script, , .
SO question script:)
- Python, "cleanup" WinCVS. , Microsoft Visual Studio , , - .
Python Unix Linux System Administration. , , - .
, , , , , , , ..
Windows win32file.FindFilesW() API ( python Windows), , . API FindFilesW() Win32 API. , , , . , , , , , ; , ( , , - , 1 , 15 , 1 ..); . , VBScript ( ) , . Windows, , , , - , , .
rsync, user/group . , bash, bash.
javascript , post commit mercurial, , minify/compress, YUItest , , , , . .
script, jwc png graphviz, . , - , , CI .
, , 3 10 . t-sql , py-tk .
.
unarchiver, tar.
tar
, , ( os.path.splitext astring.split(".") , tar.gz), , , file subprocess
os.path.splitext
astring.split(".")
tar.gz
file
subprocess
IP no-ip OpenDNS ( , urllib re, )
urllib
re
, , . os df ( subprocess re). , GB/TB/etc
os
df
GB
TB
FLV Youtube, , urllib , BeautifulSoup HTML urllib , (Firefox Live HTTP Headers addon , URL- flv)
script, 71 , - pywapi cron .: -)
Source: https://habr.com/ru/post/1711153/More articles:What happened to Microsoft.FSharp.Math.Matrix? - matrixDLL as `src``