蠎周刊 - PyWeeklyhttp://weekly.pychina.org/2018-12-16T21:21:00+08:00蠎周刊 3772018-12-16T21:21:00+08:002018-12-16T21:21:00+08:00Zoom.Quiettag:weekly.pychina.org,2018-12-16:/pyweekly/issue-377.html<p>原文: <a href="https://mailchi.mp/pythonweekly/python-weekly-issue-377?e=a4782d704d">Python Weekly - Issue 377</a></p>
<h2>文章,教程和嗯哼</h2>
<blockquote>
<p>Articles, Tutorials and Talks</p>
</blockquote>
<ul>
<li><a href="https://info.cloudquant.com/2018/12/numpyleaks">修复Python中的严重内存泄漏</a></li>
</ul>
<p>A few of our power users reported that long-running backtests would sometimes run out of memory. These power-users are the people who often find new trading strategies and so we wanted to work with them to improve the …</p><p>原文: <a href="https://mailchi.mp/pythonweekly/python-weekly-issue-377?e=a4782d704d">Python Weekly - Issue 377</a></p>
<h2>文章,教程和嗯哼</h2>
<blockquote>
<p>Articles, Tutorials and Talks</p>
</blockquote>
<ul>
<li><a href="https://info.cloudquant.com/2018/12/numpyleaks">修复Python中的严重内存泄漏</a></li>
</ul>
<p>A few of our power users reported that long-running backtests would sometimes run out of memory. These power-users are the people who often find new trading strategies and so we wanted to work with them to improve the performance of our backtesting tools. Over the past couple of weeks, our senior engineer found that the problem wasn’t in our code, but in one of the popular Python libraries that we use. We found the problem in numpy and numba. The leak was ultimately caused by how we were using these libraries. We made the correction and as you can see from the following chart, it really improved the memory utilization for our trade simulator. The following is the write-up by our senior engineer so that others can learn from our engineering efforts.</p>
<ul>
<li><a href="https://www.dataschool.io/future-of-pandas/">pandas 库将来准备干什么?</a><ul>
<li>pandas</li>
</ul>
</li>
</ul>
<p>pandas is a very popular Python library for data analysis, manipulation, and visualization, but it still hasn't reached version 1.0. What's next for pandas?</p>
<ul>
<li><a href="https://blog.gopheracademy.com/advent-2018/gpython/">gpython: 用Go编写的Python解释器 "不含电池"</a><ul>
<li>py3,interpreter</li>
</ul>
</li>
</ul>
<p>Gpython is a Python 3.4 interpreter written in Go. This is the story of how it came to be, how it works and where it is going. This includes a quick run through how an interpreted language like Python/Gpython works with a dip into the Virtual Machine (VM), lexing source, parsing it and compiling to byte code.</p>
<p>(<code>是也乎:</code></p>
<p>叕一个 VM , 只是 JVM 上的 python 实现一直比不过 coljure 的 PR 哪</p>
<p>)</p>
<ul>
<li><a href="https://towardsdatascience.com/an-introduction-to-web-scraping-with-python-a2601e8619e5">介绍用 Python 进行 Web 抓取</a><ul>
<li>scraping</li>
</ul>
</li>
</ul>
<p>Let’s scrape a fictional book store’s website with BeautifulSoup!</p>
<ul>
<li><a href="https://medium.com/@michael_87060/build-a-self-driving-q-bot-6aa67ba60769">构建自动驾驶 Q-Bot</a><ul>
<li>Self-Driving,AI</li>
</ul>
</li>
</ul>
<p>All it takes is a 3-d printer, some Python, and lots of trial and error</p>
<ul>
<li><a href="https://www.twilio.com/blog/twilio-serverless-sms-raffle-python-lambda">用 Twilio 在 Python 中构建无服务器 SMS Raffle</a><ul>
<li>SMS,Serverless</li>
</ul>
</li>
</ul>
<p>Create a serverless SMS raffle in Python using Amazon Lambda, API Gateway, and DynamoDB with Twilio Programmable SMS.</p>
<ul>
<li><a href="https://www.youtube.com/watch?v=WlGkBqBRsik">Five Things You Didn't Know Python Can Do</a><ul>
<li>FAQ</li>
</ul>
</li>
</ul>
<p>(<code>是也乎:</code></p>
<p>All Things Open 2018 - Nina Zakharenko, Microsoft </p>
<p>M$ MM 总结 28岁的 Python 还能作什么...
)</p>
<ul>
<li>
<p><a href="https://www.caktusgroup.com/blog/2018/12/10/how-to-fix-python-code-style/">如何纠正你的 Python 代码风格?</a></p>
<ul>
<li>PEP8</li>
</ul>
</li>
<li>
<p><a href="https://gkbrk.com/2018/12/free-hotel-wifi-with-python-and-selenium/">用 Python 和 Selenium 在酒店免费上 Wifi</a></p>
<ul>
<li>auto</li>
</ul>
</li>
<li>
<p><a href="https://blog.floydhub.com/spinning-up-with-deep-reinforcement-learning/">通过深度强化学习嗯哼个 Pong AI </a></p>
</li>
<li>
<p><a href="https://medium.com/microsoft-open-source-stories/python-at-microsoft-flying-under-the-radar-eabbdebe4fb0">Python 在 Microsoft: 雷达下飞行</a></p>
</li>
<li>
<p><a href="https://www.pyimagesearch.com/2018/12/10/keras-save-and-load-your-deep-learning-models/">Keras – 保存并加载您的深度学习模型</a></p>
</li>
<li>
<p><a href="https://github.com/guillaume-chevalier/How-to-Grow-Neat-Software-Architecture-out-of-Jupyter-Notebooks">如何从 Jupyter Notebooks 中自然扩展出有整洁架构的软件?</a></p>
<ul>
<li>ipynb</li>
</ul>
</li>
</ul>
<p>(<code>是也乎:</code></p>
<p>文档/调试/运行 3合一 的环境很舒服,
但是, 从来不是一个可发行为用户软件的嗯哼,
其实, 也可以的...</p>
<p>)</p>
<ul>
<li>
<p><a href="https://www.twilio.com/blog/identify-unknown-phone-numbers-python-3-aws-lambda-lookup-sms">用Python 3, AWS Lambda,Twilio Lookup 和 SMS 识别未知电话号码</a></p>
</li>
<li>
<p><a href="https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/">从Jupyter Notebook安装Python包</a></p>
</li>
</ul>
<p>(<code>是也乎:</code></p>
<p>等等, 可是为什么哪...</p>
<p>)</p>
<h2>好物</h2>
<blockquote>
<p>Interesting Projects, Tools and Libraries</p>
</blockquote>
<ul>
<li><a href="https://github.com/GokuMohandas/practicalAI">PracticalAI</a><ul>
<li>ML,DL,AI</li>
</ul>
</li>
</ul>
<p>A practical approach to learning machine learning.</p>
<ul>
<li><a href="https://github.com/Delgan/loguru">loguru</a><ul>
<li>logging</li>
</ul>
</li>
</ul>
<p>Python logging made (stupidly) simple.</p>
<p>(<code>是也乎:</code></p>
<p><img alt="demo" src="https://raw.githubusercontent.com/Delgan/loguru/master/docs/_static/img/demo.gif"></p>
<p><img alt="logo" src="https://raw.githubusercontent.com/Delgan/loguru/master/docs/_static/img/logo.png"> 大师一点儿也不简单...</p>
<p>一个好用又稳定的logging 太难以嗯哼了.</p>
<p>)</p>
<ul>
<li><a href="https://github.com/dmlc/dgl">DGL</a><ul>
<li>DL,ML,AI</li>
</ul>
</li>
</ul>
<p>Python package built to ease deep learning on graph, on top of existing DL frameworks. </p>
<ul>
<li><a href="https://github.com/CarvellScott/completion_utils">completion_utils</a><ul>
<li>CLI,zsh...</li>
</ul>
</li>
</ul>
<p>A small utility to assist in writing shell completions in python instead of bash, fish, zsh, etc.</p>
<ul>
<li><a href="https://github.com/M4cs/Athena">Athena</a><ul>
<li>CLI,</li>
</ul>
</li>
</ul>
<p>General User Interface for the Theos Tweak Development Framework.</p>
<p>(<code>是也乎:</code></p>
<p><img alt="Athena" src="https://camo.githubusercontent.com/f1081783219ae24086c20e8dc23e01d2ae176088/68747470733a2f2f692e696d6775722e636f6d2f65474336314c5a2e706e67"></p>
<p>)</p>
<ul>
<li><a href="https://github.com/velis74/DynamicForms">DynamicForms</a><ul>
<li>DRF, django</li>
</ul>
</li>
</ul>
<p>DynamicForms performs all the visualisation & data entry of your DRF Serializers & ViewSets and adds some candy of its own: It is a django library that gives you the power of dynamically-shown form fields, auto-filled default values, dynamic record loading and similar candy with little effort.</p>
<ul>
<li><a href="https://github.com/chris104957/crudcast">crudcast</a><ul>
<li>API, REST,YAML</li>
</ul>
</li>
</ul>
<p>Create and deploy a RESTful API with a few lines of YAML.</p>
<p>(<code>是也乎:</code></p>
<p>YAML 的表述能力...唉</p>
<p>)</p>
<ul>
<li><a href="https://github.com/cakinney/secure">secure</a><ul>
<li>http,cookies, Securety</li>
</ul>
</li>
</ul>
<p>Secure 🔒 headers and cookies for Python web frameworks</p>
<ul>
<li><a href="https://github.com/Boerderij/Varken">Varken</a><ul>
<li>CLI,DBA,Plex/InfluxDB/Grafana</li>
</ul>
</li>
</ul>
<p>Standalone command-line utility to aggregate data from the Plex ecosystem into InfluxDB.</p>
<p>(<code>是也乎:</code></p>
<p><img alt="Varken" src="https://camo.githubusercontent.com/92aff9b739e4f7310e15aa2bf1fe8cf65360af0c/68747470733a2f2f692e696d6775722e636f6d2f617638653048502e706e67"></p>
<p>)</p>
<ul>
<li><a href="https://github.com/DHI-GRAS/terracotta">terracotta</a><ul>
<li>Flask , Rasterio, AWS ,lambda</li>
</ul>
</li>
</ul>
<p>A light-weight, versatile XYZ tile server, built with Flask and Rasterio.</p>
<p>(<code>是也乎:</code></p>
<p><img alt="logo" src="https://github.com/DHI-GRAS/terracotta/raw/master/docs/_figures/logo-banner.svg?sanitize=true"></p>
<p><img alt="preview" src="https://github.com/DHI-GRAS/terracotta/raw/master/docs/_figures/workflow-preview.png"></p>
<p>)</p>
<ul>
<li><a href="https://github.com/98mprice/pyAudioClassification">pyAudioClassification</a><ul>
<li>Audio</li>
</ul>
</li>
</ul>
<p>Dead simple audio classification 🎶</p>
<p>(<code>是也乎:</code></p>
<p>Py3 only 的声音分析基础模块
)</p>
<ul>
<li><a href="https://github.com/concretecloud/python-chirp">python-chirp</a><ul>
<li>TLS,message</li>
</ul>
</li>
</ul>
<p>Message-passing for everyone.</p>
<p>(<code>是也乎:</code></p>
<p><img alt="chirp" src="https://raw.githubusercontent.com/concretecloud/chirp/master/doc/_static/chirp.png"></p>
<p>内网消息</p>
<p>)</p>
<ul>
<li><a href="https://github.com/qxf2/wtfiswronghere">wtfiswronghere</a><ul>
<li>101,error</li>
</ul>
</li>
</ul>
<p>A collection of simple errors that beginners are likely to hit when they start writing Python.</p>
<p>(<code>是也乎:</code></p>
<blockquote>
<p>WTF ...</p>
</blockquote>
<p>用心了...</p>
<p>)</p>
<ul>
<li><a href="https://github.com/lufficc/SSD">SSD</a><ul>
<li>PyTorch, SSD </li>
</ul>
</li>
</ul>
<p>High quality, fast, modular reference implementation of SSD in PyTorch 1.0.</p>
<p>(<code>是也乎:</code></p>
<p>简单的说 SSD 不是硬盘,得有专门的嗯哼姿势...
)</p>
<h2>新放</h2>
<blockquote>
<p>New Releases</p>
</blockquote>
<ul>
<li><a href="https://github.com/pytorch/pytorch/releases/tag/v1.0.0">PyTorch 1.0</a><ul>
<li>嗯哼,终于1.0 了</li>
</ul>
</li>
<li><a href="https://blog.python.org/2018/12/python-372rc1-and-368rc1-now-available.html">Python 3.7.2rc1 和 3.6.8rc1</a></li>
</ul>
<h2>DAMA</h2>
<p>(<code>大妈私人无责任播报</code>)</p>
<h1>是也乎</h1>
<ul>
<li>181205 <a href="http://zoomquiet.io/">Zoom.Quiet</a>(大妈) 用时 42 分钟 完成快译</li>
<li>181205 <a href="http://zoomquiet.io/">Zoom.Quiet</a>(大妈) 用时 17 分钟 完成格式转抄.</li>
</ul>