- 原文: Import Python Weekly Newsletter - Issue No 168
- 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-)
该读
~ 文章, Blog, 教程...
- 2017 以及 2018 学年 Python 中重构的伟大 - Khan Academy Engineering
- core-python, refactor
This blog post is first in a series describing the Great Khan Academy Python Refactor of 2017 And Also 2018. In this post, I'll explain where our codebase went wrong, what we wanted to do to fix it, and why it was so difficult. It will include tips and code that others can use to avoid some of this difficulty themselves. The second post will describe Slicker, a tool we wrote which formed the backbone of our refactoring effort. The third post will describe how we used this refactoring as an opportunity to reduce inter-file dependencies within our codebase, and how that benefited us.
(是也乎:
Khan 学院的系列文章, 谈及 Python 开发中常见的一些问题和解决.
)
- 用 GeoPandas 在 Python 中创建分级统计世界地图
- jupyter, geo
There are different ways of creating choropleth maps in Python. In a previous notebook, I showed how you can use the Basemap library to accomplish this. More than 2 years have passed since publication and the available tools have evolved a lot. In this notebook I use the GeoPandas library to create a choropleth map. As you'll see the code is more concise and easier to follow along.
(是也乎:
用 matplotlib 来嗯哼, 其实有很多专门的图形库, 可以更加简洁的完成这种绘制了.
)
- Django CBV 全面指南.
- django
Class Based Views (CBV) is one of my favourite things about Django. During my first Django projects (using Django 1.4 around 6 years ago) I was mainly using functional views — that’s what the tutorial recommended then anyway. However, slowly in my next projects I started reducing the amount of functional views and embracing CBVs, slowly understanding their usage and usefulness. Right now, I more or less only use CBVs for my views; even if sometimes it seems more work to use a CBV instead of a functional one I know that sometime in the future I’d be glad that I did it since I’ll want to re-use some view functionality and CBVs are more or less the only way to have DRY views in Django.
- 基于 Python DIY 自驾平台
- self driving
An opensource DIY self driving platform for small scale cars. RC CAR + Raspberry Pi + Python (tornado, keras, tensorflow, opencv,.
- 和 Python 一起艺术创作
- book
A book to bring the joy of programming to creative people. With step by step instructions for beginners and tiny programs, fundamental programming concepts are introduced in bite sized sketches. In later chapters, these program sketches become powerful drawing programs, capable of generating new images for 3D printing, CNC, and more.
(是也乎:
可惜没有音乐类的创作介绍...
)
- 用 Python 装饰器进行身份验证
- decorator, core-python
A Refresher.
- 棉花糖: 简化Python的对象序列化
- serialization
Hacker news discussion.
(是也乎:
叕一个尝试构建全新数据转换生态的核心模块
可惜...
)
- Twitter 分析与 Python
Twitter is a good ressource to collect data. We can find a few libraries (R or Python) which allow you to build your own dataset with the data generated by Twitter. This tutorial is focus on the preparation of the data and no on the collect. Throughout this analysis we are going to see how to work with the twitter’s data.
(是也乎:
叕一则用 twitter 开放数据来作嗯哼的案例, 所以, Fb 要是象 twitter 一样一直公开就不会出事儿了吧...
)
- 为 Python 应用构建最小 Docker 容器
- docker
A best practice when creating Docker containers is keeping the image size to a minimum. The fewer bytes you have to shunt over the network or store on disk, the better. Keeping the size down generally means it is faster to build and deploy your container.
- 用 Python 构建 Google Analytics Slack Bot
- analytics
Google Analytics is an incredibly powerful tool. All of the members of your team can see everything from which sources your web traffic comes from to what demographics frequent your site. There’s just one problem, Nobody is willing to go to the Google Analytics site and look. If these features aren’t used they may as well not exist. So, to give teammates easier access you can make a custom Slackbot to display Google Analytics.
(是也乎:
面对 Slack 以及 Google 这种接口非常开放的服务平台, 用少量代码完成联接, 一直是非常简单的事儿...
可惜...
)
When looking for a new backend language, I naturally went from Python to the new cool kid: Go. But after only one week of Go, I realised that Go was only half of a progress. Better suited to my needs than Python, but too far away from the developer experience I was enjoying when doing Elm in the frontend. So I gave Rust a try.
好物
~ 包/模块/库/片段...
- Fast-Pandas
- 443 Stars, 16 Fork
Benchmark for different operations in pandas against various dataframe sizes.
(是也乎:
对 Pandas 核心操作的效率进行了检测...结论并没有多少反直觉的
)
- AI-ipcam
- 89 Stars, 11 Fork
Enhancing ordinary IP cameras with AI, MQTT.
- Attention-on-Attention-for-VQA
- 35 Stars, 5 Fork
Visual Question Answering Project with state of the art single Model performance.
- zadm4py
- 28 Stars, 0 Fork
Zed's Awesome Debug Macros for Python.
(是也乎:
专注提升 debug 体验的模块, 只是 Py3 only
)
- etudier
- 23 Stars, 0 Fork
Extract a citation network from Google Scholar
(是也乎:
学术嗯哼的关系自动可视化分析...
)
- ProxyDock
- 17 Stars, 4 Fork
ProxyDock is a Dockerfile and Bash script that converts your OpenVPN files into local proxies.
- PyTunes
- 10 Stars, 0 Fork
A lightweight music player made in Python. Keep track of commits at Coding repo
(是也乎:
叕一个音乐播放器,
等等, GUI 的? 差评...
)
- contextvars
- 7 Stars, 0 Fork
PEP 567 Backport
(是也乎:
Py3.7 内置的, Py3.6 想用, 就得用第三五金了, 当然 Py2 系列的没戏...
)
- MiBand2
- 5 Stars, 1 Fork
Library to work with Xiaomi MiBand 2
(是也乎:
居然是乌克兰的兄弟先完成了中国 小米手环的嗯哼...
)
( ̄▽ ̄)
- Build native apps with Python.— BeeWare
- ios,android,windows,mac,liunx
叕一种试图用 Py 一次性完成所有平台应用开发的嗯哼
- Pandas documentation sprint
- Neilpang/acme.sh: A pure Unix shell script implementing ACME client protocol
- https
国人作品, 解决 https 部署时的证书生成问题
30 Amazing Python Projects for the Past Year (v.2018) 其中有几个国货,也都超过 1000+星了...
<- Qix-/better-exceptions: Pretty and useful exceptions in Python, automatically. 效果惊艳...
是也乎
- 180325 Zoom.Quiet 42 分钟完成快译
- 180325 Zoom.Quiet 用时 7 分钟完成格式化.
Comments