Skip to content

Commit 1b1ad03

Browse files
author
Jack Maney
committed
0.3.0: Added 3.5 to the module list
1 parent 365cfcf commit 1b1ad03

File tree

5 files changed

+335
-9
lines changed

5 files changed

+335
-9
lines changed

stdlib_list/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
base_dir = os.path.dirname(os.path.realpath(__file__))
77
list_dir = os.path.join(base_dir, "lists")
88

9-
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3"]
9+
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5"]
1010

1111
short_versions = [".".join(x.split(".")[:2]) for x in long_versions]
1212

stdlib_list/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.1"
1+
__version__ = "0.3.0"

stdlib_list/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77

88
def stdlib_list(version):
99
"""
10-
Given a ``version``, return a ``list`` of names of the Python Standard Libraries for that version. These names are obtained from the Sphinx inventory file (used in :py:mod:`sphinx.ext.intersphinx`).
10+
Given a ``version``, return a ``list`` of names of the Python Standard
11+
Libraries for that version. These names are obtained from the Sphinx inventory
12+
file (used in :py:mod:`sphinx.ext.intersphinx`).
1113
12-
:param version: The version (as a string) whose list of libraries you want.
13-
:type version: one of ``"2.6"``, ``"2.7"``, ``"3.2"``, ``"3.3"``, or ``"3.4"``
14+
:param str version: The version (as a string) whose list of libraries you want
15+
(one of ``"2.6"``, ``"2.7"``, ``"3.2"``, ``"3.3"``, ``"3.4"``, or ``"3.5"``)
1416
1517
:return: A list of standard libraries from the specified version of Python
1618
:rtype: list

stdlib_list/fetch.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class DummyApp(object):
9-
109
"""
1110
Dummy app object for `fetch_inventory`_ to work.
1211
@@ -22,14 +21,18 @@ def fetch_list(version=None):
2221
"""
2322
For the given version of Python (or all versions if no version is set), this function:
2423
25-
- Uses the `fetch_inventory` function of :py:mod`sphinx.ext.intersphinx` to grab and parse the Sphinx object inventory (ie ``http://docs.python.org/<version>/objects.inv``) for the given version.
24+
- Uses the `fetch_inventory` function of :py:mod`sphinx.ext.intersphinx` to
25+
grab and parse the Sphinx object inventory
26+
(ie ``http://docs.python.org/<version>/objects.inv``) for the given version.
2627
2728
- Grabs the names of all of the modules in the parsed inventory data.
2829
2930
- Writes the sorted list of module names to file (within the `lists` subfolder).
3031
31-
:param str version: A specified version of Python. If not specified, then all available versions of Python will have their inventory objects fetched and parsed, and have their module names written to file.
32-
:type version: one of ``"2.6"``, ``"2.7"``, ``"3.2"``, ``"3.3"``, or ``"3.4"``, or ``None``
32+
:param str|None version: A specified version of Python. If not specified, then all
33+
available versions of Python will have their inventory objects fetched
34+
and parsed, and have their module names written to file.
35+
(one of ``"2.6"``, ``"2.7"``, ``"3.2"``, ``"3.3"``, ``"3.4"``, ``"3.5"``, or ``None``)
3336
3437
"""
3538

stdlib_list/lists/3.5.txt

Lines changed: 321 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,321 @@
1+
__future__
2+
__main__
3+
_dummy_thread
4+
_thread
5+
abc
6+
aifc
7+
argparse
8+
array
9+
ast
10+
asynchat
11+
asyncio
12+
asyncore
13+
atexit
14+
audioop
15+
base64
16+
bdb
17+
binascii
18+
binhex
19+
bisect
20+
builtins
21+
bz2
22+
cProfile
23+
calendar
24+
cgi
25+
cgitb
26+
chunk
27+
cmath
28+
cmd
29+
code
30+
codecs
31+
codeop
32+
collections
33+
collections.abc
34+
colorsys
35+
compileall
36+
concurrent.futures
37+
configparser
38+
contextlib
39+
copy
40+
copyreg
41+
crypt
42+
csv
43+
ctypes
44+
curses
45+
curses.ascii
46+
curses.panel
47+
curses.textpad
48+
datetime
49+
dbm
50+
dbm.dumb
51+
dbm.gnu
52+
dbm.ndbm
53+
decimal
54+
difflib
55+
dis
56+
distutils
57+
distutils.archive_util
58+
distutils.bcppcompiler
59+
distutils.ccompiler
60+
distutils.cmd
61+
distutils.command
62+
distutils.command.bdist
63+
distutils.command.bdist_dumb
64+
distutils.command.bdist_msi
65+
distutils.command.bdist_packager
66+
distutils.command.bdist_rpm
67+
distutils.command.bdist_wininst
68+
distutils.command.build
69+
distutils.command.build_clib
70+
distutils.command.build_ext
71+
distutils.command.build_py
72+
distutils.command.build_scripts
73+
distutils.command.check
74+
distutils.command.clean
75+
distutils.command.config
76+
distutils.command.install
77+
distutils.command.install_data
78+
distutils.command.install_headers
79+
distutils.command.install_lib
80+
distutils.command.install_scripts
81+
distutils.command.register
82+
distutils.command.sdist
83+
distutils.core
84+
distutils.cygwinccompiler
85+
distutils.debug
86+
distutils.dep_util
87+
distutils.dir_util
88+
distutils.dist
89+
distutils.errors
90+
distutils.extension
91+
distutils.fancy_getopt
92+
distutils.file_util
93+
distutils.filelist
94+
distutils.log
95+
distutils.msvccompiler
96+
distutils.spawn
97+
distutils.sysconfig
98+
distutils.text_file
99+
distutils.unixccompiler
100+
distutils.util
101+
distutils.version
102+
doctest
103+
dummy_threading
104+
email
105+
email.charset
106+
email.contentmanager
107+
email.encoders
108+
email.errors
109+
email.generator
110+
email.header
111+
email.headerregistry
112+
email.iterators
113+
email.message
114+
email.mime
115+
email.parser
116+
email.policy
117+
email.utils
118+
encodings.idna
119+
encodings.mbcs
120+
encodings.utf_8_sig
121+
ensurepip
122+
enum
123+
errno
124+
faulthandler
125+
fcntl
126+
filecmp
127+
fileinput
128+
fnmatch
129+
formatter
130+
fpectl
131+
fractions
132+
ftplib
133+
functools
134+
gc
135+
getopt
136+
getpass
137+
gettext
138+
glob
139+
grp
140+
gzip
141+
hashlib
142+
heapq
143+
hmac
144+
html
145+
html.entities
146+
html.parser
147+
http
148+
http.client
149+
http.cookiejar
150+
http.cookies
151+
http.server
152+
imaplib
153+
imghdr
154+
imp
155+
importlib
156+
importlib.abc
157+
importlib.machinery
158+
importlib.util
159+
inspect
160+
io
161+
ipaddress
162+
itertools
163+
json
164+
json.tool
165+
keyword
166+
lib2to3
167+
linecache
168+
locale
169+
logging
170+
logging.config
171+
logging.handlers
172+
lzma
173+
macpath
174+
mailbox
175+
mailcap
176+
marshal
177+
math
178+
mimetypes
179+
mmap
180+
modulefinder
181+
msilib
182+
msvcrt
183+
multiprocessing
184+
multiprocessing.connection
185+
multiprocessing.dummy
186+
multiprocessing.managers
187+
multiprocessing.pool
188+
multiprocessing.sharedctypes
189+
netrc
190+
nis
191+
nntplib
192+
numbers
193+
operator
194+
optparse
195+
os
196+
os.path
197+
ossaudiodev
198+
parser
199+
pathlib
200+
pdb
201+
pickle
202+
pickletools
203+
pipes
204+
pkgutil
205+
platform
206+
plistlib
207+
poplib
208+
posix
209+
pprint
210+
profile
211+
pstats
212+
pty
213+
pwd
214+
py_compile
215+
pyclbr
216+
pydoc
217+
queue
218+
quopri
219+
random
220+
re
221+
readline
222+
reprlib
223+
resource
224+
rlcompleter
225+
runpy
226+
sched
227+
select
228+
selectors
229+
shelve
230+
shlex
231+
shutil
232+
signal
233+
site
234+
smtpd
235+
smtplib
236+
sndhdr
237+
socket
238+
socketserver
239+
spwd
240+
sqlite3
241+
ssl
242+
stat
243+
statistics
244+
string
245+
stringprep
246+
struct
247+
subprocess
248+
sunau
249+
symbol
250+
symtable
251+
sys
252+
sysconfig
253+
syslog
254+
tabnanny
255+
tarfile
256+
telnetlib
257+
tempfile
258+
termios
259+
test
260+
test.support
261+
textwrap
262+
threading
263+
time
264+
timeit
265+
tkinter
266+
tkinter.scrolledtext
267+
tkinter.tix
268+
tkinter.ttk
269+
token
270+
tokenize
271+
trace
272+
traceback
273+
tracemalloc
274+
tty
275+
turtle
276+
turtledemo
277+
types
278+
typing
279+
unicodedata
280+
unittest
281+
unittest.mock
282+
urllib
283+
urllib.error
284+
urllib.parse
285+
urllib.request
286+
urllib.response
287+
urllib.robotparser
288+
uu
289+
uuid
290+
venv
291+
warnings
292+
wave
293+
weakref
294+
webbrowser
295+
winreg
296+
winsound
297+
wsgiref
298+
wsgiref.handlers
299+
wsgiref.headers
300+
wsgiref.simple_server
301+
wsgiref.util
302+
wsgiref.validate
303+
xdrlib
304+
xml
305+
xml.dom
306+
xml.dom.minidom
307+
xml.dom.pulldom
308+
xml.etree.ElementTree
309+
xml.parsers.expat
310+
xml.parsers.expat.errors
311+
xml.parsers.expat.model
312+
xml.sax
313+
xml.sax.handler
314+
xml.sax.saxutils
315+
xml.sax.xmlreader
316+
xmlrpc.client
317+
xmlrpc.server
318+
zipapp
319+
zipfile
320+
zipimport
321+
zlib

0 commit comments

Comments
 (0)