Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="lib.css" type='text/css' /> | |
5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> | |
6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> | |
7 | <link rel="first" href="lib.html" title='Python Library Reference' /> | |
8 | <link rel='contents' href='contents.html' title="Contents" /> | |
9 | <link rel='index' href='genindex.html' title='Index' /> | |
10 | <link rel='last' href='about.html' title='About this document...' /> | |
11 | <link rel='help' href='about.html' title='About this document...' /> | |
12 | <link rel="next" href="someos.html" /> | |
13 | <link rel="prev" href="misc.html" /> | |
14 | <link rel="parent" href="lib.html" /> | |
15 | <link rel="next" href="module-os.html" /> | |
16 | <meta name='aesop' content='information' /> | |
17 | <title>6. Generic Operating System Services </title> | |
18 | </head> | |
19 | <body> | |
20 | <DIV CLASS="navigation"> | |
21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
23 | <tr> | |
24 | <td class='online-navigation'><a rel="prev" title="5.21.2 Parsing Rules" | |
25 | href="shlex-parsing-rules.html"><img src='../icons/previous.png' | |
26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
27 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" | |
28 | href="lib.html"><img src='../icons/up.png' | |
29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
30 | <td class='online-navigation'><a rel="next" title="6.1 os " | |
31 | href="module-os.html"><img src='../icons/next.png' | |
32 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
33 | <td align="center" width="100%">Python Library Reference</td> | |
34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
35 | href="contents.html"><img src='../icons/contents.png' | |
36 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
38 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
39 | <td class='online-navigation'><a rel="index" title="Index" | |
40 | href="genindex.html"><img src='../icons/index.png' | |
41 | border='0' height='32' alt='Index' width='32' /></A></td> | |
42 | </tr></table> | |
43 | <div class='online-navigation'> | |
44 | <b class="navlabel">Previous:</b> | |
45 | <a class="sectref" rel="prev" href="shlex-parsing-rules.html">5.21.2 Parsing Rules</A> | |
46 | <b class="navlabel">Up:</b> | |
47 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> | |
48 | <b class="navlabel">Next:</b> | |
49 | <a class="sectref" rel="next" href="module-os.html">6.1 os </A> | |
50 | </div> | |
51 | <hr /></div> | |
52 | </DIV> | |
53 | <!--End of Navigation Panel--> | |
54 | ||
55 | <H1><A NAME="SECTION008000000000000000000"></A><A NAME="allos"></A> | |
56 | <BR> | |
57 | 6. Generic Operating System Services | |
58 | </H1> | |
59 | ||
60 | <P> | |
61 | The modules described in this chapter provide interfaces to operating | |
62 | system features that are available on (almost) all operating systems, | |
63 | such as files and a clock. The interfaces are generally modeled | |
64 | after the <span class="Unix">Unix</span> or C interfaces, but they are available on most | |
65 | other systems as well. Here's an overview: | |
66 | ||
67 | <P> | |
68 | <table class='synopsistable' valign='baseline'> | |
69 | <tr class='oddrow'> | |
70 | <td><b><tt class='module'><a href='module-os.html'>os</a></tt></b></td> | |
71 | <td> </td> | |
72 | <td class='synopsis'>Miscellaneous operating system interfaces.</td></tr> | |
73 | <tr><td><b><tt class='module'><a href='module-os.path.html'>os.path</a></tt></b></td> | |
74 | <td> </td> | |
75 | <td class='synopsis'>Common pathname manipulations.</td></tr> | |
76 | <tr class='oddrow'> | |
77 | <td><b><tt class='module'><a href='module-dircache.html'>dircache</a></tt></b></td> | |
78 | <td> </td> | |
79 | <td class='synopsis'>Return directory listing, with cache mechanism.</td></tr> | |
80 | <tr><td><b><tt class='module'><a href='module-stat.html'>stat</a></tt></b></td> | |
81 | <td> </td> | |
82 | <td class='synopsis'>Utilities for interpreting the results of | |
83 | <tt class="function">os.stat()</tt>, <tt class="function">os.lstat()</tt> and <tt class="function">os.fstat()</tt>.</td></tr> | |
84 | <tr class='oddrow'> | |
85 | <td><b><tt class='module'><a href='module-statcache.html'>statcache</a></tt></b></td> | |
86 | <td> </td> | |
87 | <td class='synopsis'>Stat files, and remember results.</td></tr> | |
88 | <tr><td><b><tt class='module'><a href='module-statvfs.html'>statvfs</a></tt></b></td> | |
89 | <td> </td> | |
90 | <td class='synopsis'>Constants for interpreting the result of | |
91 | <tt class="function">os.statvfs()</tt>.</td></tr> | |
92 | <tr class='oddrow'> | |
93 | <td><b><tt class='module'><a href='module-filecmp.html'>filecmp</a></tt></b></td> | |
94 | <td> </td> | |
95 | <td class='synopsis'>Compare files efficiently.</td></tr> | |
96 | <tr><td><b><tt class='module'><a href='module-subprocess.html'>subprocess</a></tt></b></td> | |
97 | <td> </td> | |
98 | <td class='synopsis'>Subprocess management.</td></tr> | |
99 | <tr class='oddrow'> | |
100 | <td><b><tt class='module'><a href='module-popen2.html'>popen2</a></tt></b></td> | |
101 | <td> </td> | |
102 | <td class='synopsis'>Subprocesses with accessible standard I/O streams.</td></tr> | |
103 | <tr><td><b><tt class='module'><a href='module-datetime.html'>datetime</a></tt></b></td> | |
104 | <td> </td> | |
105 | <td class='synopsis'>Basic date and time types.</td></tr> | |
106 | <tr class='oddrow'> | |
107 | <td><b><tt class='module'><a href='module-time.html'>time</a></tt></b></td> | |
108 | <td> </td> | |
109 | <td class='synopsis'>Time access and conversions.</td></tr> | |
110 | <tr><td><b><tt class='module'><a href='module-sched.html'>sched</a></tt></b></td> | |
111 | <td> </td> | |
112 | <td class='synopsis'>General purpose event scheduler.</td></tr> | |
113 | <tr class='oddrow'> | |
114 | <td><b><tt class='module'><a href='module-mutex.html'>mutex</a></tt></b></td> | |
115 | <td> </td> | |
116 | <td class='synopsis'>Lock and queue for mutual exclusion.</td></tr> | |
117 | <tr><td><b><tt class='module'><a href='module-getpass.html'>getpass</a></tt></b></td> | |
118 | <td> </td> | |
119 | <td class='synopsis'>Portable reading of passwords and retrieval of the userid.</td></tr> | |
120 | <tr class='oddrow'> | |
121 | <td><b><tt class='module'><a href='module-curses.html'>curses</a></tt></b></td> | |
122 | <td> </td> | |
123 | <td class='synopsis'>An interface to the curses library, providing portable | |
124 | terminal handling.</td></tr> | |
125 | <tr><td><b><tt class='module'><a href='module-curses.textpad.html'>curses.textpad</a></tt></b></td> | |
126 | <td> </td> | |
127 | <td class='synopsis'>Emacs-like input editing in a curses window.</td></tr> | |
128 | <tr class='oddrow'> | |
129 | <td><b><tt class='module'><a href='module-curses.wrapper.html'>curses.wrapper</a></tt></b></td> | |
130 | <td> </td> | |
131 | <td class='synopsis'>Terminal configuration wrapper for curses programs.</td></tr> | |
132 | <tr><td><b><tt class='module'><a href='module-curses.ascii.html'>curses.ascii</a></tt></b></td> | |
133 | <td> </td> | |
134 | <td class='synopsis'>Constants and set-membership functions for | |
135 | ASCII characters.</td></tr> | |
136 | <tr class='oddrow'> | |
137 | <td><b><tt class='module'><a href='module-curses.panel.html'>curses.panel</a></tt></b></td> | |
138 | <td> </td> | |
139 | <td class='synopsis'>A panel stack extension that adds depth to | |
140 | curses windows.</td></tr> | |
141 | <tr><td><b><tt class='module'><a href='module-getopt.html'>getopt</a></tt></b></td> | |
142 | <td> </td> | |
143 | <td class='synopsis'>Portable parser for command line options; support both | |
144 | short and long option names.</td></tr> | |
145 | <tr class='oddrow'> | |
146 | <td><b><tt class='module'><a href='module-optparse.html'>optparse</a></tt></b></td> | |
147 | <td> </td> | |
148 | <td class='synopsis'>More convenient, flexible, and powerful command-line parsing library.</td></tr> | |
149 | <tr><td><b><tt class='module'><a href='module-tempfile.html'>tempfile</a></tt></b></td> | |
150 | <td> </td> | |
151 | <td class='synopsis'>Generate temporary files and directories.</td></tr> | |
152 | <tr class='oddrow'> | |
153 | <td><b><tt class='module'><a href='module-errno.html'>errno</a></tt></b></td> | |
154 | <td> </td> | |
155 | <td class='synopsis'>Standard errno system symbols.</td></tr> | |
156 | <tr><td><b><tt class='module'><a href='module-glob.html'>glob</a></tt></b></td> | |
157 | <td> </td> | |
158 | <td class='synopsis'><span class="Unix">Unix</span> shell style pathname pattern expansion.</td></tr> | |
159 | <tr class='oddrow'> | |
160 | <td><b><tt class='module'><a href='module-fnmatch.html'>fnmatch</a></tt></b></td> | |
161 | <td> </td> | |
162 | <td class='synopsis'><span class="Unix">Unix</span> shell style filename pattern matching.</td></tr> | |
163 | <tr><td><b><tt class='module'><a href='module-shutil.html'>shutil</a></tt></b></td> | |
164 | <td> </td> | |
165 | <td class='synopsis'>High-level file operations, including copying.</td></tr> | |
166 | <tr class='oddrow'> | |
167 | <td><b><tt class='module'><a href='module-locale.html'>locale</a></tt></b></td> | |
168 | <td> </td> | |
169 | <td class='synopsis'>Internationalization services.</td></tr> | |
170 | <tr><td><b><tt class='module'><a href='module-gettext.html'>gettext</a></tt></b></td> | |
171 | <td> </td> | |
172 | <td class='synopsis'>Multilingual internationalization services.</td></tr> | |
173 | <tr class='oddrow'> | |
174 | <td><b><tt class='module'><a href='module-logging.html'>logging</a></tt></b></td> | |
175 | <td> </td> | |
176 | <td class='synopsis'>Logging module for Python based on <a class="rfc" id='rfcref-88932' xml:id='rfcref-88932' | |
177 | href="http://www.python.org/peps/pep-0282.html">PEP 282</a>.</td></tr> | |
178 | <tr><td><b><tt class='module'><a href='module-platform.html'>platform</a></tt></b></td> | |
179 | <td> </td> | |
180 | <td class='synopsis'>Retrieves as much platform identifying data as possible.</td></tr> | |
181 | </table> | |
182 | ||
183 | <BR> | |
184 | <DIV CLASS="navigation"> | |
185 | <div class='online-navigation'> | |
186 | <p></p><hr /> | |
187 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
188 | <tr> | |
189 | <td class='online-navigation'><a rel="prev" title="5.21.2 Parsing Rules" | |
190 | href="shlex-parsing-rules.html"><img src='../icons/previous.png' | |
191 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
192 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" | |
193 | href="lib.html"><img src='../icons/up.png' | |
194 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
195 | <td class='online-navigation'><a rel="next" title="6.1 os " | |
196 | href="module-os.html"><img src='../icons/next.png' | |
197 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
198 | <td align="center" width="100%">Python Library Reference</td> | |
199 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
200 | href="contents.html"><img src='../icons/contents.png' | |
201 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
202 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
203 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
204 | <td class='online-navigation'><a rel="index" title="Index" | |
205 | href="genindex.html"><img src='../icons/index.png' | |
206 | border='0' height='32' alt='Index' width='32' /></A></td> | |
207 | </tr></table> | |
208 | <div class='online-navigation'> | |
209 | <b class="navlabel">Previous:</b> | |
210 | <a class="sectref" rel="prev" href="shlex-parsing-rules.html">5.21.2 Parsing Rules</A> | |
211 | <b class="navlabel">Up:</b> | |
212 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> | |
213 | <b class="navlabel">Next:</b> | |
214 | <a class="sectref" rel="next" href="module-os.html">6.1 os </A> | |
215 | </div> | |
216 | </div> | |
217 | <hr /> | |
218 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
219 | </DIV> | |
220 | <!--End of Navigation Panel--> | |
221 | <ADDRESS> | |
222 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
223 | </ADDRESS> | |
224 | </BODY> | |
225 | </HTML> |