蠎加载 83
原文: Import Python Weekly Newsletter - Issue No 83 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Raymond Hettinger - 并发的思考 (Pycon RU 2016) video Walk through two examples of threading and multiprocessing to illustrate rules and best practices for taking advantage of concurrency. Documentation and code from the presentation is here - https://dl.dropboxusercontent.com/u/3967849/pyru/_build/html/index.html (是也乎: 俄国PyCon! ) 又一个 Python 来搞掂的故事 ~ 用类定义构建 DSL core python We didn’t invent a new DSL, we merely adapted Python’s existing syntax to our needs. A simple class structure and a metaclass definition gave us everything we needed to build the configuration parameter files we needed. 用 Python 构建 slackbot 从而帮助自己找到 SF 的公寓 bot Scrapes listings from Craigslist. Filter out listings that don’t match our criteria. Post the listings to Slack, a team chat tool, so we can discuss and rate them. Wrap the whole process into a persistent loop and deploy it to a server (so it would run continuously). Built by Vik Paruchuri - https://twitter.com/vikparuchuri (是也乎: 其实还是对 Craigslist 进行搜索,只是控制界面变成了 Slack; 嗯哼?! 为了上班不被人发现在刷房源?! ) 每天 mypy. 第三部分 mypy Earlier this year PEP-484 was accepted, the typing module was added to Python 3.5, and mypy moved into the umbrella of official python projects. Since it was a visible topic at the last Pycon.us, I decided to get some experience with it and see how it feels to use it. I decided I’d take a working, mature, open-source project that wasn’t written by me and “convert” it to mypy. Note this is a 3 part series with a follow up. Have a look at the latest post here - http://www.machinalis.com/blog/writing-type-stubs-for-numpy/ (是也乎: 细思恐极, PEP-484 已被接受?! 意思是 py3 为了性能,已经放弃动态语言这一特性了!? ) 登记开始: Django Under the Hood 2016 ! conference Based on the videos I have watched this is a must Go ( if you can that’s ) Django Conference. A. Jesse Jiryu Davis 对话 “撰写一个优秀的编程 Blog” podcast Michael Kennedy ( guy behind the TalkPython Podcast ) and I talked about writing about programming. What kind of writing is most valuable, how do you choose a topic, improve your writing, find an audience, and find the time to write? Listen to the podcast on the Talk Python To Me site. Django 页面加速速度 django Django and Python tips and tricks on how to improve website page load times by optimizing images. words2map: 用 word2vec, t-SNE 以及 HDBSCAN 构建的推荐框架来加强 overlap.ai At overlap.ai we’re building artificial intelligence to unite people through their overlapping passions, and here we introduce a framework we call words2map for considering what our users love, like these personal passions of ours. Github repo - https://github.com/overlap-ai/words2map (是也乎: 又一个推荐服务的框架 ) 用 Python 进行 Pizza 计数 security I’m a full time nerd, even when I’m ordering pizza online I can’t stop myself from investigating how the websites I’m ordering from work. My latest investigation was Dominoes where I found a neat way to count the number of orders that they process throughout the day. This post is supposed to highlight potential dangers when exposing integer ID’s, and how they can allow someone motivated (or sad) enough to track data you might not want to share. Simple Python Code to find it out has been shared. (是也乎: 对电商的又一个私人研究实践… ) 用 Django 和 D3 构建仪表盘 — dreisbach.us django, Django Rest Framework, d3 My workplace recently collaborated with several police departments to build a dashboard showing 911 (also known as Call for Service) data, allowing users to drill down into that data. When I started on the project, there was a prototype written in dc.js, a JavaScript framework for building dynamic dashboards with all the data on the frontend, built around records from Tampa, FL. I needed to take this and make it capable of handling much more data – millions of records. I took on the task of building this using Django and D3. Along the way, I found a set of tools that worked for me. 当周 PyDev 之星 : Nicholas Tollervey interview This week we welcome Nicholas Tollervey (@ntoll) as our PyDev of the Week. He is the author of the Python in Education booklet and the co-author of Learning jQuery Deferreds: Taming Callback Hell with Deferreds and Promises. He was one of the co-founders of the London Python Code Dojo. You should check out his website to see what he’s up to. Let’s spend some time learning more about our fellow Pythonista! (是也乎: 伦敦 Python Code Dojo, 代码道场! ) 基本 Django 的 uWSGI 配置 django Here are two basic examples of almost the same uWSGI configuration to run a Django project; one is configured via an ini configuration file and the other is configured via a command line argument. This does not represent a production-ready example, but can be used as a starting point for the configuration. 活动 ~ Upcoming Conference / User Group Meet ...