- 原文: Import Python Weekly Newsletter - Issue No 161
- 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-)
该读
~ 文章, Blog, 教程...
Brandon Rhodes published a post today about the Decorator Pattern and how that translates into Python. He explains the manual way that the pattern can be implemented in Python as a wrapper, as well as how you can try to minimise the amount of work you need to do by overriding special methods of a Python object. The wrapt package I authored was purpose built for this task of creating wrappers which Brandon describes, and much more. To avoid some of the name confusion around Decorator Pattern versus Python decorators, which Brandon highlights as an issue, I tend to refer to the wrappers as transparent object proxies.
(是也乎:
叕一个对原生特性增强的模块,来自 Hear no evil, see no evil, patch no evil: Or, how to monkey-patch safely. - YouTube https://www.youtube.com/watch?v=GCZmGgtWi3M
NZPyUG 的年度大会 KiwiPyCon 2017...
14年就发布的老梗, 作者还在一直讲...
)
- 预测第一投手的薪水
- data science, jupyter
Today’s post focuses on applying linear regression techniques to a less-than-ideal dataset. In order to do so, I need a scenario from which to work. As of this writing, the MLB free agent signing period (or ‘Hot Stove’ as it is affectionately named) is in full effect. Therefore, I chose the following problem statement as my challenge: my client, a professional baseball team, is interested in offering a contract to a free agent starting pitcher and wants a recommendation for the annual salary it should propose. Now that I have my problem, I can begin working on the answer!
(是也乎:
线性回归技术的一个真实案例 )
- 用 AWS Lambda 来爬取数千产品
- Selenium, lamda, chromedriver
Or how to run Headless Chrome on AWS Lambda together with Python, Selenium and Chromedriver
(是也乎:
无头 Chrome 的又一个嗯哼案例
)
MoviePy (full documentation) is a Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects. See the gallery for some examples of use.
(是也乎:
MoviePy 的确是一个完备的视频折腾工具, 可以说是 FFmpeg 的 Pythonic 包装
)
The problem was, once we change something in the CSS/JS, that change was not getting reflected on the client side and browser was taking the old files from the cache. To avoid this, we needed a mechanism to refresh the cache once anything has changed in the CSS/JS. The obvious approach was to change the name or attach a version number to a CSS file each time we make a change. But we wanted this process to be automated so we came across Django-compressor.
- 在 Windows,Mac 和 Linux 上处理文件路径的简单方法
- core-python
Python 3.4 introduced a new standard library for dealing with files and paths called pathlib?—?and it’s great!
(是也乎:
Py3 的软文叕一则
)
(是也乎:
叕一则 Jupyter 的数据科学嗯哼技巧
)
In my previous post on the new open source Python Bounter library we discussed how we can use its HashTable to quickly count approximate item frequencies in very large item sequences. Now we turn our attention to the second algorithm in Bounter, CountMinSketch (CMS), which is also optimized in C for top performance.
Learn how to create PDFs using the popular Python programming language and the ReportLab toolkit. Kickstarter campaign.
- gist-evernote
- project, gist, evernote
A Python application that sync Github Gists and save them to Evernote notebook as screenshots.
- Python 中监督机器学习算法
- machine learning
The main goal of this reading is to understand enough statistical methodology to be able to leverage the machine learning algorithms in Python’s scikit-learn library and then apply this knowledge to solve a classic machine learning problem. The first stop of our journey will take us through a brief history of machine learning. Then we will dive into different algorithms. On our final stop, we will use what we learned to solve the Titanic Survival Rate Prediction Problem.
- 用 Python 解压缩 zip 文件的最快方法
- code snippet, zip
So the context is this; a zip file is uploaded into a web service and Python then needs extract that and analyze and deal with each file within. In this particular application what it does is that it looks at the file's individual name and size, compares that to what has already been uploaded in AWS S3 and if the file is believed to be different or new, it gets uploaded to AWS S3.
(是也乎:
不是不用解压缩就能使用所有内容的嘛?
)
好物
~ 包/模块/库/片段...
- minigo
- 1201 Stars, 83 Fork
An open-source implementation of the AlphaGoZero algorithm.
- captivox
- 47 Stars, 3 Fork
cool animations with pyqt5 and parametrics
(是也乎:
少见的 Qt5 工具
专注生成动画
)
- cryptoCMD
- 37 Stars, 3 Fork
Cryptocurrency historical market price data scraper in Python
(是也乎:
叕一个加密币价格查询器, CLI 的
)
- tinfoleak
- 28 Stars, 2 Fork
The most complete open-source tool for Twitter intelligence analysis.
(是也乎:
叕一个更加嗯哼的 Twitter 数据分析框架
)
-Rust_Api_Generator - 21 Stars, 0 Fork
a toolset for autogenerating rust APIs and translating structs.
(是也乎:
不是 rust 语言, 而是支持多种语言的结构化 API 代码生成
)
- invoiceless
- 18 Stars, 1 Fork
Serverless backend for sending simple recurring invoices.
(是也乎:
叕一则 AWS 生态的次级嗯哼
)
- python-patterns
- 14 Stars, 0 Fork
Source code behind the python-patterns.guide site by Brandon Rhodes.
(是也乎:
叕一部新书的配套代码... 所以, 现在技术图书没有配套的 github 仓库, 基本上可以不用看了...
当然, github 发布前的老书不在此列.
)
- django_social_pill
- 7 Stars, 3 Fork
Django Social Pill offers convenience tools for routine tasks concerning social authentication.
- django_binance_trader
- 6 Stars, 0 Fork
Automated trading bot for Binance.
- vc-crypt
- 4 Stars, 0 Fork
A simple python script with zero dependencies that can be used to encrypt/decrypt secret credentials (API secret keys, HTTP passwords, etc.) using a password to be able to safely put them under version control.
(是也乎:
和 Pyenv 类似, 用约定的特殊文件来切换不同的嗯哼
)
- python3_with_pleasure
- 0 Stars, 0 Fork
A short guide on features of Python 3 for data scientists.
(是也乎:
所以, 以往 Py2 嗯哼的领域, 都得用 Py3 重新宣传一次?
)
( ̄▽ ̄)
- 爱湃森 2017年度Python榜单
- 是也乎
- Moving efficiently in the CLI
- CLI
- Neilpang/acme.sh: A pure Unix shell script implementing ACME client protocol
- https
国人作品, 解决 https 部署时的证书生成问题
- kaleguy/leovue: File viewer for the Leo open source outline editor / IDE, integrated with Vue.js
- Leo,Vue
猛然发现, Leo 生态已经走到这种程度了...
30 Amazing Python Projects for the Past Year (v.2018) 其中有几个国货,也都超过 1000+星了...
- gaojiuli/gain: Web crawling framework based on asyncio for everyone.
- zhoubear/open-paperless: Scan, index, and archive all of your paper documents
<- Qix-/better-exceptions: Pretty and useful exceptions in Python, automatically. 效果惊艳...
是也乎
- 180205 Zoom.Quiet 42 分钟完成快译
- 180204 Zoom.Quiet 用时 7 分钟完成格式化.
Comments