OLD | NEW |
1 | 1 |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
3 <html><head><title>Python: module telemetry.core.discover</title> | 3 <html><head><title>Python: module telemetry.core.discover</title> |
4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
5 | 5 |
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.discover</strong></big></big><
/font></td | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.discover</strong></big></big><
/font></td |
10 ><td align=right valign=bottom | 10 ><td align=right valign=bottom |
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/discover.py">telemetry/core/discover.py</a></font></td></tr><
/table> | 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/discover.py">telemetry/core/discover.py</a></font></td></tr><
/table> |
12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
13 # Use of this source code is governed by
a BSD-style license that can be<br> | 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
14 # found in the LICENSE file.</tt></p> | 14 # found in the LICENSE file.</tt></p> |
15 <p> | 15 <p> |
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
17 <tr bgcolor="#aa55cc"> | 17 <tr bgcolor="#aa55cc"> |
18 <td colspan=3 valign=bottom> <br> | 18 <td colspan=3 valign=bottom> <br> |
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> | 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
20 | 20 |
21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="fnmatch.html">fnmatch</a><br> | 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.camel_case.html">telemetry.core.camel_case</a><br> |
23 </td><td width="25%" valign=top><a href="inspect.html">inspect</a><br> | 23 <a href="telemetry.decorators.html">telemetry.decorators</a><br> |
| 24 </td><td width="25%" valign=top><a href="fnmatch.html">fnmatch</a><br> |
| 25 <a href="inspect.html">inspect</a><br> |
24 </td><td width="25%" valign=top><a href="os.html">os</a><br> | 26 </td><td width="25%" valign=top><a href="os.html">os</a><br> |
25 </td><td width="25%" valign=top><a href="re.html">re</a><br> | 27 <a href="re.html">re</a><br> |
26 </td></tr></table></td></tr></table><p> | 28 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
27 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 29 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
28 <tr bgcolor="#eeaa77"> | 30 <tr bgcolor="#eeaa77"> |
29 <td colspan=3 valign=bottom> <br> | 31 <td colspan=3 valign=bottom> <br> |
30 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> | 32 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> |
31 | 33 |
32 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> | 34 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> |
33 <td width="100%"><dl><dt><a name="-DiscoverClasses"><strong>DiscoverClasses</str
ong></a>(start_dir, top_level_dir, base_class, pattern<font color="#909090">='*'
</font>, index_by_class_name<font color="#909090">=False</font>)</dt><dd><tt>Dis
cover all classes in |start_dir| which subclass&nb
sp;|base_class|.<br> | 35 <td width="100%"><dl><dt><a name="-DiscoverClasses"><strong>DiscoverClasses</str
ong></a>(*args, **kwargs)</dt><dd><tt>Discover all classes in&nbs
p;|start_dir| which subclass |base_class|.<br> |
| 36 <br> |
| 37 Base classes that contain subclasses are ignored&n
bsp;by default.<br> |
34 <br> | 38 <br> |
35 Args:<br> | 39 Args:<br> |
36 start_dir: The directory to recursively sea
rch.<br> | 40 start_dir: The directory to recursively sea
rch.<br> |
37 top_level_dir: The top level of the pa
ckage, for importing.<br> | 41 top_level_dir: The top level of the pa
ckage, for importing.<br> |
38 base_class: The base class to search f
or.<br> | 42 base_class: The base class to search f
or.<br> |
39 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> | 43 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> |
40 index_by_class_name: If True, use class nam
e converted to<br> | 44 index_by_class_name: If True, use class nam
e converted to<br> |
41 lowercase_with_underscores instead 
;of module name in return dict keys.<br> | 45 lowercase_with_underscores instead 
;of module name in return dict keys.<br> |
42 <br> | 46 <br> |
43 Returns:<br> | 47 Returns:<br> |
44 dict of {module_name: class} or {underscore
d_class_name: class}</tt></dd></dl> | 48 dict of {module_name: class} or {underscore
d_class_name: class}</tt></dd></dl> |
45 <dl><dt><a name="-DiscoverModules"><strong>DiscoverModules</strong></a>(start_d
ir, top_level_dir, pattern<font color="#909090">='*'</font>)</dt><dd><tt>Discove
r all modules in |start_dir| which match |pat
tern|.<br> | 49 <dl><dt><a name="-DiscoverModules"><strong>DiscoverModules</strong></a>(*args,
**kwargs)</dt><dd><tt>Discover all modules in |start_dir|&nb
sp;which match |pattern|.<br> |
46 <br> | 50 <br> |
47 Args:<br> | 51 Args:<br> |
48 start_dir: The directory to recursively sea
rch.<br> | 52 start_dir: The directory to recursively sea
rch.<br> |
49 top_level_dir: The top level of the pa
ckage, for importing.<br> | 53 top_level_dir: The top level of the pa
ckage, for importing.<br> |
50 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> | 54 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> |
51 <br> | 55 <br> |
52 Returns:<br> | 56 Returns:<br> |
53 list of modules.</tt></dd></dl> | 57 list of modules.</tt></dd></dl> |
| 58 <dl><dt><a name="-GetAllPageSetFilenames"><strong>GetAllPageSetFilenames</stron
g></a>(dir_path)</dt></dl> |
54 </td></tr></table> | 59 </td></tr></table> |
55 </body></html> | 60 </body></html> |
OLD | NEW |