蠎加载 126
原文: Import Python Weekly Newsletter - Issue No 126 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… PyCon 2017 视频已经在 YouTube pyconus, pycon Videos of the just concluded Pycon US 2017. (是也乎: 准备和 UPYUN 合作批量搬迁到国内… ) 如何获得 PyPI 下载状态? bigquery, pipy This is a short post on how to get download statistics about any package from PyPI. Though there have been efforts in that direction from sites like pypi ranking but this post finds a better solution. Google has been generous enough to donate it’s Big Query capacity to the Python Software Foundation. You can access the pypi downloads table through the Big Query console. I ran a sample query to find out how my personal package arachne has been doing on PyPI. (是也乎: Google Big Query 已经监控了… ) SQLAlchemy 简介 - Agiliq Blog SQLAlchemy The breadth of SQLAlchemy’s SQL rendering engine, DBAPI integration, transaction integration, and schema description services are documented here. In contrast to the ORM’s domain-centric mode of usage, the SQL Expression Language provides a schema-centric usage paradigm. (是也乎: 无数种草文又一则 ) The Meaning of Underscores in Python core-python The various meanings and naming conventions around single and double underscores (“dunder”) in Python, how name mangling works and how it affects your own Python classes. (是也乎: ) Python: 好物 Objects 来袭 PyObject In Python, all object types inherit from one master object, declared as PyObject . This master object has all of the information Python needs to process a pointer to an object as an actual object. 调试一个安静的 Python 进程 debugging So we had a production case for months together, where the python process was stuck for indefinitely long time (even days) with absolutely zero activity but the process was listed as active and running by linux. A restart would fix the problem (as always) and the job would be live and kicking. Finally after sometime, I have found the root cause, so I thought I would share it. For the purpose of the blog I’m going to simulate the behavior of my application in a sample python script. (是也乎: 其实就是一个长期运行的 py 进程的调试技巧, 尝试模拟来激发bug… 最后还是回到了 GDB ) 用 Python 驱动 Headless Chrome chromium, headless Back in April, Google announced that it will be shipping Headless Chrome in Chrome 59. Since the respective flags are already available on Chrome Canary, the Duo Labs team thought it would be fun to test things out and also provide a brief introduction to driving Chrome using Selenium and Python. (是也乎: 太应景了…只是用 selenium 来调, 肥了点儿? ) 用 Elizabeth 生成 mock 数据: Part I mock Elizabeth is a Python library, which helps generate mock data for various purposes. The library was written with the use of tools from the standard Python library, and therefore, it doesn’t have any side dependencies. Currently the library supports 30 languages and 19 class providers, supplying various data. Python 3 boilerplate boilerplate Python-boilerplate.com is a collection of Python boilerplates for getting started quickly and right-footed. 如何用 Python 计算文档相似度? gensim 用 Python + Asyncio 和 Scrape 以及 Parse 达到 600个/10分钟 的 ETF 分析速度 scraping 教程: 用 Python 进行异步语音识别 speech recognition (是也乎: 用的 google 接口, 其实讯飞的也足够了 ) PyCon JP Blog: PyCon JP 2017 开始接收 Poster-Session Proposals pyconjp PyCon JP 2017 is Now Accepting Poster-Session Proposals! PyCon JP 2017 is a perfect opportunity to connect with a wide range of people. Poster sessions allow you to make the most of that opportunity. PyCon 2017 头天感想 pycon Python 3 Patterns, Recipes and Idioms — Python 3 Patterns, Recipes and Idioms idioms (是也乎: 完整的一木书了… Bruce Eckel <– 专门写 Think in * 的大仙, 当年 Tink in Java 看的是欲仙欲死… ~ Bruce Eckel’s MindView, Inc: Books by Bruce Eckel 对了, 唯一太监的就是 Think in Python ) 嗯哼你的 Python IDE atom Using Atom IDE. (是也乎: VScode vs Atom vs others ) Global 变量在 Python 并不是全局的 core-python, global Python uses global to reference to module-global variables. There are no program-global variables in Python. (是也乎: 模块全局,不是程序全局, 真正的全局变量, 在移动互联网时代,只能是第三方广播服务了 ) 大师访谈: The Unique Characters Problem interview 获得 Python Requirements Package Hashes pip, nodejs, requirement.txt Python’s (pip’s) requirements.txt file is the equivalent to package.json in the JavaScript / Node.js world. This requirements.txt file isn’t as pretty as package.json but it not only defines a version but goes a step further, providing a sha hash to compare against to ensure package integrity: 好物 ~ 包/模块/库/片段… ...