To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

README.md 1.32 KB
Newer Older
vermeul's avatar
vermeul committed
1
2
# Python Best Practices

vermeul's avatar
vermeul committed
3
This guide shows you all the pitfalls to avoid and modules you should use (or shouldn't). Be aware: advices should not be followed blindly. If you do not agree to an advice, this is completely fine. The important step is: make your own decision and then stick to it.
vermeul's avatar
vermeul committed
4

vermeul's avatar
vermeul committed
5
Useful websites that help you out:
vermeul's avatar
vermeul committed
6

vermeul's avatar
vermeul committed
7
* **Python 3 Module of the Week** All standard Python modules nicely explained. https://pymotw.com/3/
vermeul's avatar
vermeul committed
8
* **The Hitchhiker’s Guide to Python!** Many very useful modules explained which are not part of the standard Python module collection. https://docs.python-guide.org
vermeul's avatar
vermeul committed
9
* **PyPi** The Python Package Index which stores (almost) all external modules and where you might want to publish your own. It is the source of the installed modules whenever you do a `pip install XXX`. https://pypi.org
vermeul's avatar
vermeul committed
10
* A collection of **useful Python tips:** http://book.pythontips.com/en/latest/index.html
vermeul's avatar
vermeul committed
11

vermeul's avatar
vermeul committed
12
Some websites and talks about «good Python coding»:
vermeul's avatar
vermeul committed
13

vermeul's avatar
vermeul committed
14
15
* Python Anti-Patterns: https://docs.quantifiedcode.com/python-anti-patterns/
* Google Best Practices with Python: https://github.com/google/styleguide/blob/gh-pages/pyguide.md
vermeul's avatar
vermeul committed
16
* [Transforming Code into Beautiful, Idiomatic Python -- Raymond Hettinger](https://www.youtube.com/watch?v=OSGv2VnC0go)
vermeul's avatar
vermeul committed
17
* [Clean code in Python -- Mariano Anaya](https://www.youtube.com/watch?v=7ADbOHW1dTA)