蠎加载 97
原文: Import Python Weekly Newsletter - Issue No 97 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Pyvisgraph - Python 可见性图表 visualization, opensource project This is a super cool project build by Christian. Pyvisgraph builds a visibility graph given a set of simple obstacle polygons and find the shortest path between two points. Christian uses it at work for mapping vessel voyages.( Vessel as in ships ). Here are two blog post by him talking about the algorithm behind his code https://taipanrex.github.io/2016/09/17/Distance-Tables-Part-1-Defining-the-Problem.html and https://taipanrex.github.io/2016/10/19/Distanlogce-Tables-Part-2-Lees-Visibility-Graph-Algorithm.html . (是也乎: 可见性,以往用来寻找可以看见灯塔的安全航线的技术, 现在可以自动完成了. ) Chat bots 以及如何在 Alexa 上构建 chatbots Talking to technology has taken a whole new level since Amazon has announced their voice assistant Alexa and opened up their platform for developers to build custom bots just like when Apple announced about app store for developers to create and sell apps. Here I wanted to talk about the ease of building an Alexa skill using python which could be used as information provider to a attendee for a conference. (是也乎: Amazon 的语音助理 Alexa 平台化后, 当然就可以任性的调教了… ) 6 个快速调试技巧 debugging Nick gives us quick tour of debugging in Python. print statements, logging, pdb, pdb++, Debugging from the REPL and more. (是也乎: 再多的调试技巧,也无法弥补混乱的头脑写出的代码, 所以,亲!最重要的调试技巧就是保持充分的睡眠哪! ) 俺就是整不明白 Python 的 Asyncio async-io Armin Ronacher’s creator of Flask takes at length candidly about How it’s difficult for him to grasp Asyncio , it’s shortcomings, how David Beazley’s live demo hacked up asyncio replacement is twice as fast as it. Curator’s Note - Personally I learned Asyncio from the book Fluent Python. However once I went beyond the simple examples and try building something non trivial I ended up switching to golang and getting my job done faster. One key reason is the benchmark showed my asyncio’s throughput was an order of magnitude slower, code required a lot of hand holding for a new developer. (是也乎: 创造者分享了为什么人们理解了异步都都去用 golang 了… 这真是一个悲伤的故事. ) 避免被 Python 咬屎 core python Common pitfalls to avoid when writing Python software (是也乎: py coding 时常见的错误 ) django-sql-explorer django Easily share data across your company via SQL queries. From Grove Collab. 用 Daphne 部署 Django Channels django channels Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels. It supports automatic negotiation of protocols; there’s no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints. In this blog post Abu Ashraf shows us how to Deploy Django channels using Daphne. (是也乎: Channels 如此重要,又如此难用,所以, Django 创建了: ASGI 协议的专用服务器 Daphne ) 每周聊 Python: Dates 和 Times 在 Python video Let’s chat about working with dates and times in Python! We’ll talk about parsing, formatting, timezones, and date arithmetic. (是也乎: 简单的说,就是心塞,每次总感觉厂商有更加简洁的日期/时间处理手段的,,, 然而… ) Jupyter Notebook 教程 jupyter I want to share some concepts and ideas about using Jupyter Notebook that I would like to know when I started. (是也乎: medium 越来越好用了,所以,也早已被 功夫网 认证了… ) 如何在 Django 管理中追加自制按钮 - By Haki Benita django admin panel In this post Haki Benita shows us how he extended Django admin to include two Button which perform action on a record/row. It’s a well written step by step article to accomplish the task. 将媒体内容从 Linux 折腾到 Chromecast opensource project Are you searching for an easy way to stream media files from your LinuxBox to a Chromecast ? You can use Stream2chromecast, a simple Python script that makes the task of streaming media files to a Chromecast device ridiculously easy. (是也乎: WIDI 世界中,怎么可以少 Python 脚本?! ) Pandas 教程: Python 中的 DataFrames pandas Karlijn has written good article explaning what dataframes is and it’s workings. If you don’t know about Pandas and want to get a sense of what it’s ?, then have a read. 用 Kafka 来构建 Python 中的简单 Job Queue kafka, opensource project KQ (Kafka Queue) is a light-weight Python library which provides a simple API to queue and process jobs asynchronously in the background. It is backed by Apache Kafka and designed primarily for ease of use. (是也乎: KQ 一个专用模块,可以 Pythonic 化的使用 Kafka ) 从 NumPy 榨取更多性能 numpy This is the first featured recipe from the IPython Cookbook, the definitive guide to high-performance scientific computing and data science in Python. (是也乎: 来自 IPython Cookbook 的经典技巧 ) C++ vs. Python vs. PHP vs. Java vs. Others 性能评测 (2016 Q3) benchmark The benchmarks here do not try to be complete, as they are showing the performance of the languages in one aspect, and mainly: loops, dynamic arrays with numbers, basic math operations. (是也乎: 看起来 Py3 已经快过 Py2.7 了… ) Pycon Pune 2017 pycon Pycon Pune 2017 is announced. To be held on February 16-19 2017. Visit the website to know more. (是也乎: 又是一月就开始的…总结去年的当然早点开始好, 但是, PyConChian 的筹备节奏,我们只能程序猿节前后才可能折腾 ) 项目 ~ 包/模块/库/片段… ...