From 9e98d4992e3ce4db398ada27c56bf9e6a0b23717 Mon Sep 17 00:00:00 2001 From: Andres Hermosilla Date: Thu, 3 Aug 2017 16:40:03 -0700 Subject: [PATCH] Added one liner http server to python and testing links --- python.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/python.md b/python.md index 9feb315..0c08428 100644 --- a/python.md +++ b/python.md @@ -1,5 +1,14 @@ # Notes - Python +### Quick Web Server + +```bash +# Python 2.x +python -m SimpleHTTPServer 8000 + +# Python 3.x +python -m http.server 8000 +``` ## Python Resources - http://jtushman.github.io/blog/2014/01/14/python-|-multiprocessing-and-interrupts/ @@ -20,4 +29,16 @@ - https://www.codementor.io/sheena/how-to-write-python-custom-exceptions-du107ufv9 - http://tech.marksblogg.com/faster-django-testing.html - http://alexmic.net/flask-sqlalchemy-pytest/ -- https://gist.github.com/Spindel/1d07533ef94a4589d348 \ No newline at end of file +- https://gist.github.com/Spindel/1d07533ef94a4589d348 +- http://sedimental.org/plugin_systems.html +- https://thenewstack.io/instagram-makes-smooth-move-python-3/ +- http://jakevdp.github.io/blog/2017/05/26/exposing-private-dict-version/ +- https://engineering.instagram.com/dismissing-python-garbage-collection-at-instagram-4dca40b29172 + +## Testing + +- http://hackebrot.github.io/pytest-tricks/ +- http://tech.marksblogg.com/faster-django-testing.html +- http://krzysztofzuraw.com/blog/2016/mocks-monkeypatching-in-python.html +- http://www.alexandrejoseph.com/blog/2015-08-21-python-mock-example.html +- http://alexmarandon.com/articles/python_mock_gotchas/