This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
packaged_config.py
800 lines (767 loc) · 42.6 KB
/
packaged_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
#-*- coding: utf-8 -*-
"""
@file
@brief Defines different set of modules to install.
"""
import sys
from ..installhelper.module_install import ModuleInstall
def minimal_set():
"""
returns a list of modules to add to python to get a minimal python
@return a list of modules to install
To install them:
@code
for _ in minimal_set() :
_.install(temp_folder="install")
@endcode
"""
mod = [
ModuleInstall(
"virtualenv", "pip", purpose="creatre virtual environments"),
ModuleInstall(
"six", "pip", purpose="helpers for python 2/3 conversion"),
ModuleInstall("wheel", "pip", purpose="to play with wheel"),
ModuleInstall("pep8", "pip", version="1.5.7",
purpose="official guidelines for Python syntax"),
ModuleInstall(
"autopep8", "pip", purpose="to make a script follow pep8"),
ModuleInstall(
"mccabe", "pip", purpose="This module provides a plugin for flake8, the Python code checker."),
ModuleInstall(
"pyflakes", "pip", purpose="to make a script follow pep8"),
ModuleInstall("flake8", "pip", purpose="to make a script follow pep8"),
ModuleInstall('markupsafe', 'pip', purpose="interpret markdown"),
ModuleInstall(
"psutil", "wheel", purpose="cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python."),
ModuleInstall("pylint", "pip", purpose="script syntax analysis"),
]
if sys.platform.startswith("win"):
mod.append(ModuleInstall(
"pywin32", "wheel", mname="win32com", purpose="Python extensions for Windows"))
mod.append(ModuleInstall(
"winshell", "pip", purpose="light wrapper around the Windows shell functionality"))
mod.append(
ModuleInstall("pythonnet", "wheel", purpose="call .net DLL from python"))
return [_ for _ in mod if _ is not None]
def small_set():
"""
returns a list of modules to work with pandas, numpy, ipython, ...
@return a list of modules to install
To install them:
@code
for _ in small_set() :
_.install(temp_folder="install")
@endcode
"""
mod = [
# ModuleInstall("setuptools", "wheel"), # removed with 3.4
# ModuleInstall("pip", "wheel"), # removed with 3.4
#
# issue with 3.0.3 because of line: raise type(self._exception),
# self._exception, self._traceback, weird because the same exists in
# folder lib
ModuleInstall("futures", "pip", version="2.2.0"),
ModuleInstall(
"virtualenv", "pip", purpose="creatre virtual environments"),
ModuleInstall(
"six", "pip", purpose="helpers for python 2/3 conversion"),
ModuleInstall("lxml", "wheel", purpose="xml parsers (C++)"),
ModuleInstall("jinja2", "pip", purpose="templating"),
ModuleInstall("Mako", "pip", mname="mako", purpose="templating"),
ModuleInstall(
"pygments", "pip", purpose="syntax highlighting package written in Python"),
ModuleInstall(
"pyparsing", "pip", purpose="alternative approach to creating and executing simple grammars"),
ModuleInstall(
"python-dateutil", "pip", "dateutil", purpose="helpers to manipulate dates"),
ModuleInstall(
"html5lib", "pip", purpose="pure-python library for parsing HTML"),
ModuleInstall("beautifulsoup4", "pip", mname="bs4",
purpose="Beautiful Soup sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree."),
ModuleInstall(
"coverage", "pip", purpose="measure the coverage of unit tests"),
ModuleInstall("nose", "pip", purpose="run unit tests"),
ModuleInstall(
"pytz", "pip", purpose="World timezone definitions, modern and historical"),
ModuleInstall("pyreadline", "pip", mname="pyreadline",
purpose="python implementation of GNU readline functionality"),
ModuleInstall("husl", "pip", purpose="Python implementation of HUSL"),
ModuleInstall(
"pipdeptree", "pip", purpose="displays module dependencies as a tree"),
#
ModuleInstall("openpyxl", "pip", version="1.8.6",
purpose="reads/writes Excel files, version is 1.8.6 due to pandas which does not work with more recent verrsions yet"),
ModuleInstall("xlrd", "pip", purpose="reads Excel files"),
ModuleInstall("xlwt", "pip", purpose="writes Excel files"),
ModuleInstall("xlwings", "pip", purpose="reads/writes Excel files"),
ModuleInstall(
'XlsxWriter', 'pip', mname='xlsxwriter', purpose="writes Excel files"),
#
ModuleInstall(
"certifi", "pip", purpose="Certifi is a carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts."),
ModuleInstall(
"tornado", "wheel", purpose="python server, IPython relies on it", usage="NETWORK"),
ModuleInstall(
"pyzmq", "wheel", mname="zmq", purpose="python librairies for Omz", usage="NETWORK"),
#
ModuleInstall(
"pycparser", "wheel", purpose="pycparser is a complete parser of the C language, written in pure Python using the PLY parsing library. It parses C code into an AST and can serve as a front-end for C compilers or analysis tools."),
ModuleInstall("Cython", "wheel", purpose="pseudo C++ in python"),
ModuleInstall("numpy", "wheel",
purpose="matrix computation", usage="DATA/ML"),
ModuleInstall("matplotlib", "wheel", purpose="plots", usage="VIZ"),
ModuleInstall(
"gr", "wheel", purpose="GR is a universal framework for cross-platform visualization applications."),
# ModuleInstall("seaborn", "pip"), # it seems problematic for this
# small config
ModuleInstall(
"scipy", "wheel", purpose="scientific computation, eigen values, linear algebra", usage="DATA/ML"),
ModuleInstall(
"statsmodels", "wheel", purpose="statistical modelling, depends on scipy", usage="DATA/ML"),
ModuleInstall(
"networkx", "wheel", purpose="graph libraries, basic drawing", usage="VIZ"),
# small config
ModuleInstall(
"graphviz", "pip", purpose="wrapper for graphviz (most famous tool to draw graphs", usage="VIZ"),
ModuleInstall(
"jsonschema", "pip", purpose="An implementation of JSON Schema validation for Python"),
ModuleInstall(
"mistune", "pip", purpose="The fastest markdown parser in pure Python with renderer features, inspired by marked."),
ModuleInstall("wheel", "pip", purpose="handle wheels"),
# sphinx
ModuleInstall(
"alabaster", "wheel", purpose="A configurable sidebar-enabled Sphinx theme", usage="SPHINX"),
ModuleInstall(
"babel", "pip", version="1.3", mname="babel", purpose="Internationalization utilities, version 2.0 has bugs", usage="SPHINX"),
ModuleInstall(
"colorama", "pip", purpose="Cross-platform colored terminal text.", usage="SPHINX"),
ModuleInstall("docutils", "pip",
purpose="interpret RST format", usage="SPHINX"),
ModuleInstall(
"sphinx", "pip", purpose="documentation generation based on RST", usage="SPHINX"),
ModuleInstall(
'sphinxcontrib-images', 'pip', mname='sphinxcontrib.images', usage="SPHINX", purpose="include images in Sphinx documentation"),
ModuleInstall('pypiserver', 'pip',
purpose="run a local pipy server", usage="SPHINX"),
# flake8, pep8
ModuleInstall(
"pep8", "pip", version="1.5.7", purpose="official guidelines on Python style"),
ModuleInstall("autopep8", "pip", purpose="apply pep8 on a script"),
ModuleInstall(
"mccabe", "pip", purpose="This module provides a plugin for flake8, the Python code checker."),
ModuleInstall("pyflakes", "pip", purpose="verify pep8 on a script"),
ModuleInstall("flake8", "pip", purpose="verify pep8 on a script"),
ModuleInstall('markupsafe', 'pip', purpose="parses mardown"),
#
#
ModuleInstall(
"pandas", "wheel", purpose="manipulate table as SQL in memory", usage="DATA/ML"),
ModuleInstall(
"netCDF4", "wheel", purpose="xray uses this module to save and read data (netCDF=Unidata network Common Data Form)"),
ModuleInstall(
"xray", "wheel", purpose="pandas like library for cubes (N-dimensional data)", usage="DATA/ML"),
ModuleInstall(
"bcolz", "wheel", purpose="compressed dataframe, in memory or on disk", usage="DATA/ML"),
ModuleInstall(
"scikit-learn", "wheel", mname="sklearn", purpose="machine learning", usage="DATA/ML"),
# ipython
ModuleInstall(
"ipython", "pip", purpose="IPython, Jupyter", usage="JUPYTER"),
ModuleInstall(
"jupyter", "pip", purpose="Jupyter", usage="JUPYTER"),
ModuleInstall(
"jupyter_core", "pip", purpose="Jupyter Core", usage="JUPYTER"),
ModuleInstall(
"jupyter_client", "pip", purpose="Jupyter client", usage="JUPYTER"),
ModuleInstall(
"nbformat", "pip", purpose="IPython, notebooks conversion, new in Jupyter 4.0", usage="JUPYTER"),
ModuleInstall(
"nbconvert", "pip", purpose="IPython, notebooks conversion, new in Jupyter 4.0", usage="JUPYTER"),
ModuleInstall(
"ipython_genutils", "pip", purpose="IPython utils (nbformat)", usage="JUPYTER"),
ModuleInstall(
"ipykernel", "pip", purpose="IPython, Jupyter, kernels", usage="JUPYTER"),
ModuleInstall(
"ipywidgets", "pip", purpose="IPython, Jupyter, widgets", usage="JUPYTER"),
ModuleInstall(
"qtconsole", "pip", purpose="IPython, notebooks, qtconsole", usage="JUPYTER"),
ModuleInstall(
"traitlets", "pip", purpose="IPython, dependency", usage="JUPYTER"),
ModuleInstall(
"pickleshare", "pip", purpose="IPython, dependency", usage="JUPYTER"),
ModuleInstall(
"path.py", "pip", mname="path", purpose="IPython, dependency", usage="JUPYTER"),
ModuleInstall(
"simplegeneric", "pip", purpose="IPython, dependency", usage="JUPYTER"),
ModuleInstall(
"notebook", "pip", purpose="Jupyter notebooks, new in Jupyter 4.0", usage="JUPYTER"),
ModuleInstall(
"jupyter-console", "pip", mname="jupyter_console", purpose="Jupyter console, new in Jupyter 4.0", usage="JUPYTER"),
# end of ipython
#
ModuleInstall(
"mpld3", "pip", purpose="mpld3 project brings together Matplotlib and D3js."),
#
ModuleInstall("typecheck-decorator", "pip", mname="typecheck",
purpose="verifies decorators at running time"),
ModuleInstall(
"decorator", "pip", purpose="Better living through Python with decorators"),
#
ModuleInstall("requests", "pip", purpose="human interface for http"),
#ModuleInstall("PyQt", "wheel", mname="PyQt4"),
ModuleInstall(
"PySide", "wheel", purpose="open source version of PyQt"),
ModuleInstall(
"psutil", "wheel", purpose="cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python."), #
ModuleInstall(
"rope_py3k", "pip", mname="rope", purpose="refactoring library") if sys.version_info[0] >= 3 else None, #
ModuleInstall(
"pylint", "pip", purpose="statistics on Python script style"), #
ModuleInstall(
"spyder", "wheel", mname="spyderlib", purpose="scientific IDE"),
#
ModuleInstall(
"brewer2mpl", "pip", purpose="Connect colorbrewer2.org color maps to Python and matplotlib"),
ModuleInstall("ggplot", "pip", purpose="ggplot graphics style"),
ModuleInstall("goslate", "pip", version="1.4",
purpose="calls google translate"),
ModuleInstall("dbfread", "pip", purpose="access DBase format"),
# XML to JSON
ModuleInstall(
"xmltodict", "pip", purpose="Makes working with XML feel like you are working with JSON"),
# shell to plain
ModuleInstall(
"ansiconv", "pip", purpose="A Python module for converting ANSI coded text and converts it to either plain text or HTML."),
# shell to HTML
ModuleInstall(
"ansi2html", "pip", purpose="Convert text with ANSI color codes to HTML"),
#
# node.js
ModuleInstall(
"nodeenv", "pip", purpose="Node.js virtual environment builder"),
#
# 2015-06-05
#
ModuleInstall('PyYAML', 'wheel', mname='yaml',
purpose=" YAML parser and emitter for Python"),
ModuleInstall(
'bokeh', 'pip', purpose="interactive graphs, zoomable, javascript", usage="VIZ"),
ModuleInstall('rpy2', 'wheel', purpose="interact with R",
usage="DATA/ML"),
ModuleInstall(
'seaborn', 'pip', purpose="nicer graphs than matplotlib for statistical purposes", usage="VIZ"),
ModuleInstall("sphinxjp.themes.revealjs", "pip",
purpose="slides based on revealjs, needed to convert notebook into slides"),
ModuleInstall("feedparser", "wheel", purpose="parse RSS streams"),
ModuleInstall(
"python-jenkins", "pip", mname="jenkins", purpose="interact with Jenkins"),
#
# 2015-06-15
#
ModuleInstall(
'envoy', 'pip', purpose="Simple API for running external processes."),
ModuleInstall('Logbook', 'wheel', mname='logbook',
purpose="A logging replacement for Python"),
ModuleInstall(
'pkginfo', 'pip', purpose="Query metadatdata from sdists / bdists / installed packages."),
ModuleInstall("multipledispatch ", "pip",
purpose="A relatively sane approach to multiple dispatch in Python."),
#
# 2015-07
#
ModuleInstall("pyprofiler", "pip", purpose="profiler"),
ModuleInstall("whoosh", "pip", purpose="search engine in Python"),
]
if sys.platform.startswith("win"):
mod.append(
ModuleInstall("pywin32", "wheel", mname="win32com", purpose="call Windows DLL"))
mod.append(
ModuleInstall("winshell", "pip", purpose="Windows shell functions"))
return [_ for _ in mod if _ is not None]
def sphinx_theme_set():
"""
list of sphinx themes
"""
mod = [
ModuleInstall('sphinx-rtd-theme', 'pip', mname='sphinx_rtd_theme',
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
'sphinxjp.themes.basicstrap', 'pip', purpose="sphinx theme", usage="SPHINX"),
ModuleInstall('solar_theme', 'pip',
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall('cloud_sptheme', 'pip',
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
'sphinx_readable_theme', 'pip', purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
"hachibee-sphinx-theme", "pip", mname="hachibee_sphinx_theme", purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("wild_sphinx_theme", "pip",
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("sphinx_bootstrap_theme", "pip",
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
"sphinxjp.themes.sphinxjp", "pip", purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
"sphinx_py3doc_enhanced_theme", "pip", purpose="sphinx theme", usage="SPHINX") if sys.version_info[0] >= 3 else None,
ModuleInstall(
"epfl-sphinx-theme", "pip", mname="epfl_theme", purpose="sphinx theme", usage="SPHINX"),
ModuleInstall(
"sphinx-better-theme", "pip", mname="better", purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("guzzle_sphinx_theme", "pip",
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("flyingsphinx", "pip",
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("itcase_sphinx_theme", "pip",
purpose="sphinx theme", usage="SPHINX"),
ModuleInstall("sphinxtrap", "pip",
purpose="sphinx theme", usage="SPHINX"),
]
return [_ for _ in mod if _ is not None]
def extended_set():
"""
returns a list of modules to install, an rich set
to work with data and more
@return a list of modules to install
To install them:
@code
for _ in small_set() + extended_set() :
_.install(temp_folder="install")
@endcode
"""
mod = [
ModuleInstall(
'werkzeug', 'pip', purpose="The Swiss Army knife of Python web development"),
ModuleInstall('itsdangerous', 'pip',
purpose="Various helpers to pass trusted data to untrusted environments and back."),
ModuleInstall('SQLAlchemy', 'wheel', mname='sqlalchemy',
purpose="model SQL queries as objects"),
ModuleInstall('simplejson', 'wheel', purpose="json parser"),
ModuleInstall('python-pptx', 'pip', mname="pptx",
purpose="read/write PowerPoint presentation"),
ModuleInstall(
'python-docx', 'pip', mname="docx", purpose="read/write Word document"),
ModuleInstall('flask', 'pip', purpose="python server",
usage="NETWORK"),
ModuleInstall('flask-sqlalchemy', 'pip',
mname='flask.ext.sqlalchemy', usage="NETWORK"),
# ModuleInstall('flasksphinx', 'pip', purpose="serves Sphinx
# documentation through a Flask server"), # issue with Python 3
ModuleInstall(
'cffi', 'wheel', purpose="Foreign Function Interface for Python calling C code."),
ModuleInstall(
'odo', 'wheel', purpose="usually used with blaze, handles dataframe in various type of containers", usage="DATA/ML"),
ModuleInstall(
'cytoolz', 'wheel', purpose="Cython implementation of Toolz: High performance functional utilities", usage="DATA/ML"),
ModuleInstall(
'toolz', 'wheel', purpose="Toolz provides a set of utility functions for iterators, functions, and dictionaries.", usage="DATA/ML"),
ModuleInstall(
'datashape', 'pip', purpose="A data description language."),
ModuleInstall(
'dynd', 'wheel', purpose="DyND-Python, a component of the Blaze project, is the Python exposure of the DyND dynamic multi-dimensional array library.")
if sys.version_info[0] >= 3 else None,
ModuleInstall(
'blaze', 'wheel', purpose="separate expression from computation (works with iterators), used with odo, avoids doing everything in memory, handle better large datasets",
usage="DATA/ML"),
ModuleInstall(
'sympy', 'pip', purpose="SymPy is a Python library for symbolic mathematics."),
ModuleInstall('gmpy2', 'wheel', purpose="big real numbers"),
ModuleInstall('llvmpy', 'wheel', mname='llvm',
purpose="Python bindings for LLVM, C++ library which allows simple access to compiler tools."),
ModuleInstall(
'llvmlite', 'wheel', purpose="lightweight wrapper around basic LLVM functionality"),
ModuleInstall(
'numba', 'wheel', purpose="Numba is an Open Source NumPy-aware optimizing compiler for Python sponsored by Continuum Analytics, Inc."),
ModuleInstall('snowballstemmer', 'pip',
purpose="This package provides 16 stemmer algorithms (15 + Poerter English stemmer) generated from Snowball algorithms."),
ModuleInstall('scikit-image', 'wheel', mname='skimage',
purpose="scikit-image is a collection of algorithms for image processing."),
ModuleInstall(
'patsy', 'pip', purpose="A Python package for describing statistical models and for building design matrices (y ~ x1 + x2)"),
ModuleInstall(
'cvxopt', 'wheel', purpose="linear, quadratique optimization", usage="DATA/ML"),
ModuleInstall('pymc', 'wheel',
purpose="Monte Carlo computation", usage="DATA/ML"),
ModuleInstall(
'PyWavelets', 'wheel', mname='pywt', purpose="wavelets computation", usage="DATA/ML"),
ModuleInstall('fastcluster', 'wheel', purpose="clustering, AHC, ..."),
ModuleInstall(
'pycosat', 'wheel', purpose="PicoSAT is a popular SAT solver written by Armin Biere in pure C."),
ModuleInstall('pyshp', 'pip', mname='shapefile',
purpose="Pure Python read/write support for ESRI Shapefile format"),
ModuleInstall('Shapely', 'wheel', mname='shapely',
purpose="Manipulation and analysis of geometric objects in the Cartesian plane."),
ModuleInstall(
'vispy', 'pip', purpose="Vispy is a high-performance interactive 2D/3D data visualization library."),
ModuleInstall(
'selenium', 'pip', purpose="Python wrapper for Selenium", usage="NETWORK"),
ModuleInstall(
'Pillow', 'wheel', mname='PIL', purpose="read/create images"),
ModuleInstall('pygame', 'wheel', purpose="GUI, interface for games"),
ModuleInstall(
'Kivy', 'wheel', mname='kivy', purpose="GUI, interface for games, mobile"),
ModuleInstall('kivy-garden', 'pip', mname='kivy.garden',
purpose="Garden tool for kivy flowers."),
ModuleInstall(
'py4j', 'pip', purpose="Enables Python programs to dynamically access arbitrary Java objects"),
ModuleInstall('python-igraph', 'wheel', mname='igraph',
purpose="High performance graph data structures and algorithms"),
ModuleInstall(
'lockfile', 'pip', purpose="Platform-independent file locking module"),
ModuleInstall('python-daemon', 'pip', mname='daemon',
purpose="Library to implement a well-behaved Unix daemon process."),
ModuleInstall('luigi', 'pip',
purpose="workflows, data workflows", usage="WORKFLOW"),
#
ModuleInstall('setproctitle', 'wheel', mname='setproctitle',
purpose="A Python module to customize the process title"),
# thrift only works only for Python 2.7
ModuleInstall(
'thriftpy', 'pip', purpose="ure python implemention of Apache Thrift."),
# ModuleInstall('airflow', 'pip'), # does not work on Python 3
ModuleInstall(
'smopy', 'pip', purpose="OpenStreetMap image tiles in Python "),
ModuleInstall(
'folium', 'pip', purpose="Make beautiful maps with Leaflet.js & Python"),
ModuleInstall('basemap', 'wheel', mname='mpl_toolkits.basemap',
purpose="maps extension for matplotlib", usage="VIZ"),
#
ModuleInstall("python-linkedin", "pip", mname="linkedin",
purpose="python wrapper for linkedin interface"),
# access to linkedin
ModuleInstall(
"oauthlib", "pip", purpose="A generic, spec-compliant, thorough implementation of the OAuth request-signing logic"),
ModuleInstall("requests_oauthlib", "pip",
purpose="OAuthlib authentication support for Requests."),
ModuleInstall("antlr4-python3-runtime", "pip",
mname="antlr4", purpose="antlr4 runtime, grammar parser"),
# ModuleInstall("unqlite", "pip"), #
# key/value store (NoSQL)
ModuleInstall("pycontracts", "pip", mname="contracts",
purpose="PyContracts is a Python package that allows to declare constraints on function parameters and return values"),
#
ModuleInstall(
"ecdsa", "pip", purpose="ECDSA cryptographic signature library (pure python)"),
ModuleInstall("pycrypto", "wheel_xd", mname="Crypto",
purpose="Cryptographic modules for Python."),
ModuleInstall("paramiko", "pip",
purpose="SSH2 protocol library", usage="NETWORK"),
#
# ModuleInstall("pattern", "pip", purpose="Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.") #only works on Python 2.7
#
ModuleInstall(
"pbr", "pip", purpose="PBR is a library that injects some useful and sensible default behaviors into your setuptools run."),
#
# 2015-02-05
#
ModuleInstall("autopy3", "wheel", mname="autopy3",
purpose="A simple, cross-platform GUI automation toolkit for Python 3") if sys.version_info[0] >= 3 else None, # simulate events
# large double
ModuleInstall("bigfloat", "wheel", purpose="big float"),
# convex optimization, depends on CVXOPT
ModuleInstall(
"scs", "wheel", purpose="Solves convex cone programs via operator splitting."),
ModuleInstall(
"ecos", "wheel", purpose="ECOS is a numerical software for solving convex second-order cone programs (SOCPs)"),
ModuleInstall(
"cvxpy", "pip", purpose="linear, quadratic optimization, depends on cvxopt"),
# better large list
ModuleInstall(
"blist", "wheel", purpose="a list-like type with better asymptotic performance and similar performance on small lists"),
# to install packages with conda
ModuleInstall("conda", "pip", purpose="package management tool"),
ModuleInstall("libLAS", "wheel", mname="liblas",
purpose="libLAS is a C/C++ library for reading and writing the very common LAS LiDAR format."),
ModuleInstall(
"liblinear", "wheel", purpose="A Library for Large Linear Classification"),
ModuleInstall("marisa_trie", "wheel",
purpose="Static memory-efficient & fast Trie-like structures for Python (based on marisa-trie C++ library)"),
ModuleInstall(
"mlpy", "wheel", purpose="mlpy is a Python module for Machine Learning built on top of NumPy/SciPy, has wavelets"),
ModuleInstall(
"pygit2", "wheel", purpose="Pygit2 is a set of Python bindings to the libgit2 shared library, libgit2 implements the core of Git."),
ModuleInstall(
"pymongo", "wheel", purpose="Python wrapper for MongoDB"),
ModuleInstall(
"PyOpenGL", "wheel", mname="OpenGL", purpose="use OpenGL in Python"),
ModuleInstall(
"Theano", "wheel", mname="theano", purpose="deep learning, GPU", usage="DATA/ML"),
ModuleInstall("keras", "pip", purpose="deep learning",
usage="DATA/ML"),
ModuleInstall("neon", "pip", purpose="deep learning", usage="DATA/ML"),
ModuleInstall(
"pyqtgraph", "pip", purpose="Scientific Graphics and GUI Library for Python, depends on PySide"),
ModuleInstall("deap", "pip", purpose="deep learning"),
# for gensim
ModuleInstall(
"boto", "pip", purpose="A Python interface to Amazon Web Services", usage="NETWORK"),
# for gensim
ModuleInstall("bz2file", "pip", purpose="process bz2 files"),
# for gensim
ModuleInstall("smart_open", "wheel",
purpose="Utils for streaming large files (S3, HDFS, gzip, bz2...), provides the same API for many format"),
ModuleInstall("gensim", "wheel", purpose="genetic algorithm"),
# ModuleInstall("pybrain", "pip"), # some issues with the code
# (relative import are not well handled in version 0.3.3
ModuleInstall(
"h5py", "wheel", purpose="The h5py package is a Pythonic interface to the HDF5 binary data format. Trillion-Particle Simulation.", usage="DATA/ML"),
# Bayesian
ModuleInstall(
"bayespy", "pip", purpose="bayesian modelling and computation", usage="DATA/ML"),
ModuleInstall(
"numexpr", "wheel", purpose="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas, bcolz and more."),
#
ModuleInstall("glueviz", "wheel", mname="glue",
purpose="ploting, Multidimensional data visualzation across files", usage="DATA/ML"),
#
# javascript graphs
ModuleInstall("charts", "pip",
purpose="plotting in javascript", usage="VIZ"),
#
ModuleInstall(
"dill", "pip", purpose="serialize all of python (almost), Dill extends python's \"pickle\" module for serializing and de-serializing python objects to the majority of the built-in python types."), # for dask
# parallel computation
ModuleInstall(
"dask", "pip", purpose="parallization of operations with dataframe", usage="DATA/ML"),
#
ModuleInstall(
"jedi", "pip", purpose="An autocompletion tool for Python that can be used for text editors."),
ModuleInstall(
"docopt", "pip", purpose="Pythonic argument parser, that will make you smile"),
ModuleInstall("markdown2", "pip", purpose="markdown parser"),
ModuleInstall(
"structures", "pip", purpose="User-friendly library for creating data structures."),
ModuleInstall(
"py2exe", "wheel", purpose="convert a python program into an exe program"),
ModuleInstall(
"rodeo", "pip", purpose="Scientific IDE, mixed between Spyder and IPython", usage="VIZ"),
ModuleInstall(
"tzlocal", "pip", purpose="tzinfo object for the local timezone"),
ModuleInstall(
"apscheduler", "pip", purpose="to schedule the execution of jobs, tasks"),
#
# ModuleInstall("pdfminer", "pip"), # PDF extraction (no python 3 version)
# ModuleInstall("minecart", "pip"), # PDF extraction (no python 3 version)
#
# ModuleInstall("pygauss", "pip"), # molecule, bio-informatic,
# requires PIL which is deprecated
#
# July 2015
#
ModuleInstall("ete", "github", "jhcepas", mname="ete3",
purpose="tree visualisation", usage="VIZ"), # graph visualization
# visualisation
ModuleInstall(
"pyxley", "pip", purpose="A pure-Python SNMPv1/v2c/v3 library", usage="NETWORK"),
#
# 2015-08
#
ModuleInstall(
"pysnmp", "pip", purpose="A pure-Python SNMPv1/v2c/v3 library", usage="NETWORK"),
# pyinstaller does not install properly on Windows
# ModuleInstall(
# "pyinstaller", "pip", purpose="Converts (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, AIX and Solaris."),
ModuleInstall(
"moviepy", "pip", purpose="Video editing with Python", usage="VIDEO"),
ModuleInstall(
"xgboost", "wheel_xd", purpose="Parallelized Stochastic Gradient Descent", usage="DATA/ML") if sys.version_info[0] >= 3 else None,
]
return [_ for _ in mod if _ is not None]
def azure_set():
"""
Modules to handle huge datasets on disk, hierarchical datasets.
"""
mod = [
ModuleInstall(
"azure", "pip", purpose="Python wrapper for Azure API (HDInsight, Blog Storage)"),
ModuleInstall(
"azureml", "pip", purpose="Python wrapper for Azure ML API (Azure ML Pipeline)"),
]
return [_ for _ in mod if _ is not None]
def ensae_set():
"""
.. index:: ENSAE
Modules introduced by students and some others added after some reading.
"""
mod = [
ModuleInstall(
"celery", "pip", purpose="Celery is an asynchronous task queue/job queue based on distributed message passing."),
ModuleInstall(
"tweepy", "pip", purpose="Python wrapper for the twitter API"),
#ModuleInstall("newspaper3k", "pip", mname="newspaper"),
ModuleInstall(
"django", "pip", purpose="web application, most famous module about it, the only when to build a scalable website", usage="NETWORK"),
ModuleInstall("django-audiotracks", "pip",
mname="audiotracks", purpose="read audio with django"),
ModuleInstall("Quandl", "pip", purpose="access Quandl API"),
#ModuleInstall("Lasagne", "pip", mname="lasagne"),
ModuleInstall(
"pymunk", "pip", purpose="pymunk is a easy-to-use pythonic 2d physics library that can be used whenever you need 2d rigid body physics from Python. Perfect when you need 2d physics in your game, demo or other application! It is built on top of the very nice 2d physics library Chipmunk."),
ModuleInstall(
"nltk", "wheel", purpose="NLP, natural language processing", usage="DATA/ML"),
ModuleInstall(
"textblob", "pip", purpose="TextBlob is a Python (2 and 3) library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more."),
ModuleInstall(
"dev", "pip", purpose="Header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications."),
ModuleInstall(
"opencv_python", "wheel", mname="cv", purpose="OpenVC wrapper"),
ModuleInstall("PyAudio", "wheel", mname="pyaudio",
purpose="PyAudio provides Python bindings for PortAudio v19, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio streams on a variety of platforms (e.g., GNU/Linux, Microsoft Windows, and Mac OS X)."),
ModuleInstall(
"zope.interface", "wheel", purpose="interfaces for python"),
ModuleInstall(
"persistent", "wheel", purpose="Objets persistants translucides"),
# requires zope.interface, persistents
ModuleInstall(
"BTrees", "wheel", purpose="This package contains a set of persistent object containers built around a modified BTree data structure."),
ModuleInstall(
"datrie", "wheel", purpose="Fast, efficiently stored Trie for Python."),
# ModuleInstall("pysparse", "pip"), #does not work
ModuleInstall(
"la", "wheel", purpose="Label the rows, columns, any dimension, of your NumPy arrays."),
ModuleInstall(
"mahotas", "wheel", purpose="Mahotas: Computer Vision Library"),
ModuleInstall("milk", "wheel",
purpose="machine learning toolkit", usage="DATA/ML"),
ModuleInstall("minepy", "wheel", purpose="interface to MineCraft"),
ModuleInstall(
"NLopt", "wheel", mname="nlopt", purpose="linear, quadratic optimization"),
ModuleInstall("Pmw", "wheel", mname="Pmw",
purpose="Pmw is a toolkit for building high-level compound widgets in Python using the Tkinter module."),
ModuleInstall(
"pytools", "pip", purpose="A collection of tools for Python"),
ModuleInstall(
"pycuda", "wheel", purpose="PyCUDA lets you access Nvidia's CUDA parallel computation API from Python."),
# ModuleInstall("scikits.cuda", "pip", mname="skcuda"), # no stable
# version
ModuleInstall(
"pylzma", "wheel", purpose="Python bindings for the LZMA library by Igor Pavlov."),
ModuleInstall("pymvpa2", "wheel", mname="mvpa2",
purpose="PyMVPA is a Python module intended to ease pattern classification analyses of large datasets."),
ModuleInstall(
"pyodbc", "wheel", purpose="access to protocal ODBC (SQL databases)"),
ModuleInstall(
"pypmc", "wheel", purpose="pypmc is a python package focusing on adaptive importance sampling."),
ModuleInstall(
"pyserial", "wheel", mname="serial", purpose="access to serial port"),
ModuleInstall("PyX", "wheel", mname="pyx", purpose="plotting"),
ModuleInstall(
"scandir", "wheel", purpose="Better directory iterator and faster os.walk(), now in the Python 3.5 stdlib"),
ModuleInstall(
"zs", "wheel", purpose="S is a compressed, read-only file format for efficiently distributing, querying, and archiving arbitrarily large record-oriented datasets."),
# machine learning
ModuleInstall(
"joblib", "pip", purpose="distribute jobs, parallelization"),
#
# teachings
#
ModuleInstall(
"tutormagic", "pip", purpose="brings PythonTutor in a notebok"),
# cache resuls from a long computation
ModuleInstall(
"ipycache", "pip", purpose="Defines a %%cache cell magic in the IPython notebook to cache results of long-lasting computations in a persistent pickle file "),
# to upload a file in a notebook
ModuleInstall(
"nbupload", "pip", purpose="widget to upload a file in a notebook"),
# see https://github.com/PetterS/numpy_display/blob/master/numpy_display.py
# https://github.com/damiendr/callipy
#
ModuleInstall("libsvm", "wheel", mname="svm", purpose="SVM library"),
# Bayesian ABC
ModuleInstall("abcpmc", "pip", purpose="Monte Carlo and ABC methods"),
# ModuleInstall("cosmoabc", "pip"), # Bayesian ABC, only python 2.7
#
# ModuleInstall("kabuki", "wheel"), # requires pymc 2.3.3 not 2.3.4, why?
# ModuleInstall("HDDM", "wheel", mname="hddm"), # Bayesian, does not
# work, it expects to have pymc with some optimization
#
# ModuleInstall("pyjs", "pip"), # needs manual installation
# ModuleInstall("pyjs", "github", "pyjs"), #does not work really
# ModuleInstall("pyjsdl", "github", "jggatc"), # no setup.py
#
# twisted, scrapy, not ready yet on Python 3
#
#
#
ModuleInstall(
"zipline", "pip", purpose="Zipline is a Pythonic algorithmic trading library. The system is fundamentally event-driven and a close approximation of how live-trading systems operate."), # finance
ModuleInstall("vincent", "pip", purpose="plotting"), # graph
# graph, pygal_maps_world only accepts the latest version
#ModuleInstall("pygal", "github", "Kozea", purpose="plotting"),
ModuleInstall(
"pygal", "pip", "Kozea", purpose="plotting (javascript)", usage="VIZ"),
ModuleInstall(
"pygal_maps_world", "pip", purpose="extension to pygal (maps)"), # graph
#
# 2015-06-30
#
ModuleInstall(
"sas7bdat", "pip", purpose="read/write SAS format"), # SAS
#
# 2015-07-15
#
# linear optimisation, see
# http://blog.yhathq.com/posts/decision-making-under-uncertainty.html
ModuleInstall("PuLP", "wheel", mname="pulp",
purpose="linear, quadratique optimization with constraints", usage="DATA/ML"),
# for pyensae unit test
ModuleInstall("JSAnimation", "github", "jakevdp",
purpose="provides javascript script to display differences between two files"),
#
# pydata
#
ModuleInstall("CherryPy", "wheel", mname="cherrypy",
purpose="create web application, needed by Spyre"),
ModuleInstall("dataspyre", "pip", mname="spyre",
purpose="create simple web application to visualize data", usage="VIZ"),
# ModuleInstall("python-recsys", "github", "ocelma", mname="recsys",
# purpose="recommendation system", usage="DATA/ML"), #only works on
# Python 2.7
ModuleInstall(
"viscm", "pip", purpose="tool for analyzing colormaps and creating new colormaps."),
ModuleInstall("cubehelix", "github", "jradavenport",
purpose="a full implementation of Dave Green's cubehelix colormap for Python"),
ModuleInstall("lifelines", "pip", purpose="survival analysis"),
# ModuleInstall("pysnptools", "pip", purpose="operation on DNA sequences"), # only available on Python 2.7
#
# 2015-07
#
ModuleInstall(
"nuitka", "pip", purpose="C++ compilation, code optimization"),
# ModuleInstall("tri", "pip", purpose="Delaunay triangulation"), # only
# works on Python 2.7
ModuleInstall(
"blosc", "wheel", purpose="Blosc (http://blosc.org) is a high performance compressor optimized for binary data."),
ModuleInstall(
"tables", "wheel", purpose="PyTables is a package for managing hierarchical datasets and designed to efficiently and easily cope with extremely large amounts of data."),
]
if sys.platform.startswith("win"):
mod.append(ModuleInstall("VideoCapture", "wheel",
purpose="A Win32 Python Extension for Accessing Video Devices", usage="VIDEO"))
mod.append(ModuleInstall("jaraco.video", "pip",
purpose="jaraco.video implements a framegrabber inteface for Windows Video Capture devices.", usage="VIDEO"))
return [_ for _ in mod if _ is not None]
def teachings_set():
"""
.. index:: ENSAE, teachings
Modules implemented for my teachings.
"""
mod = [
ModuleInstall(
"pyquickhelper", "pip", purpose="helpers to generation documentation", usage="TEACH"),
ModuleInstall(
"pymyinstall", "pip", purpose="easy installation of modules including Windows", usage="TEACH"),
ModuleInstall("pymmails", "pip",
purpose="read/send emails", usage="TEACH"),
ModuleInstall(
"pyensae", "pip", purpose="helpers, Hadoop, SQL, financial times series, ...", usage="TEACH"),
ModuleInstall("pyrsslocal", "pip",
purpose="RSS readers", usage="TEACH"),
ModuleInstall(
"code_beatrix", "pip", purpose="teaching programming to kids, lesenfantscodaient.fr", usage="TEACH"),
ModuleInstall(
"actuariat_python", "pip", purpose="teachings, insurance examples", usage="TEACH"),
ModuleInstall("ensae_teaching_cs", "pip",
purpose="teachings, introduction to programmaing, machine learning, map/reduce", usage="TEACH"),
]
#
return [_ for _ in mod if _ is not None]