importpython-barnner.png

该读

~ 文章, Blog, 教程...

In this article, I’d like to share with you the articles I found most interesting and insightful (inspiring) last year and this year (so far). My other goal was to create a comprehensive list of the most valuable pieces for my Python students.

(是也乎:

老司机的私人体验, 应该就是 Py 自身真正的好物了...

)

Python 3.7 is set to be released this summer, let’s have a sneak peek at some of the new features! If you’d like to play along at home with PyCharm, make sure you get PyCharm 2018.1 (or later if you’re reading this from the future). There are many new things in Python 3.7: various character set improvements, postponed evaluation of annotations, and more. One of the most exciting new features is support for the dataclass decorator.

(是也乎:

怀疑哪, Py3 这么多激荡的变化, 是否有 IDE 厂商的嗯哼?

)

PySide2 – the bindings from Python to Qt – changes skin this spring. We have re-branded it as Qt for Python on a solution level, as we wanted the name to reflect the use of Qt in Python applications. Under the hood it is still PySide2 – just better.

(是也乎:

Qt 开源后走的一直不错, 只是太慢, 就连 IDE 都一直非常不嗯哼...这种广告都没有 subl 来的多...可想...

)

tl;dr Python comprehensions can have duplicate function calls (e.g. [foo(x) for x in ... if foo(x)]). If these function calls are expensive, we need to rewrite our comprehensions to avoid the cost of calling them multiple times. In this post, we solve this by writing a decorator that converts a function in to AST, optimizes away duplicate function calls and compiles it at runtime in ~200 lines of code.

(是也乎:

不过,这种机械优化, 永远没有人工介入后, 经验加成的效果好...

)

If you look at the new Datadog Agent, you might notice most of the codebase is written in Go, although the checks we use to gather metrics are still written in Python. This is possible because the Datadog Agent, a regular Go binary, embeds a CPython interpreter that can be called whenever it needs to execute Python code. This process can be made transparent using an abstraction layer so that you can still write idiomatic Go code even when there’s Python running under the hood.

(是也乎:

通过 C , go 和 python 一直灵魂相通的...

)

We describe some essential hacks and tricks for practicing machine learning with Python.

In this tutorial, we provide step-by-step instructions to go from loading a pre-trained Convolutional Neural Network model to creating a containerized web application that is hosted on Kubernetes cluster with GPUs on Azure Container Service (AKS). AKS makes it quick and easy to deploy and manage containerized applications without much expertise in managing Kubernetes environment. It eliminates complexity and operational overhead of maintaining the cluster by provisioning, upgrading, and scaling resources on demand, without taking the applications offline. AKS reduces the cost and complexity of using a Kubernetes cluster by managing the master nodes for which the user does no incur a cost.

(是也乎:

这类工具一定会越来越方便的, 问题在 GPU 本身是硬件, 有固定成本, 这就是门槛了...

)

(是也乎:

叕一则作弊条...但是, 最靠谱的还是多用... )

(是也乎:

没毛病, 问题只是, 这种转换的使用场景在哪儿? )

I don’t particularly enjoy writing tests, but having a proper testing suite is one of the fundamental building blocks that differentiate hacking from software engineering. Sort of like sending your application to the gym, if you do it right, it might not be a pleasant experience, but you’ll reap the benefits continuously. At work we are especially big fans of the testing pyramid, and having dozens of unit tests give us the support that we need to deliver high quality software with rapid delivery to production.

(是也乎:

叕一个单元测试框架,

)

好物

~ 包/模块/库/片段...

Copy pypi.py into your site-packages directory or straight into your project. Don't bother using pip, requirements.txt and all that crap.

(是也乎:

展示视频: import pypi - asciinema

)

BoomMine - An CV-Based Minesweeper Cheat

Train a neural network optimized for generating tweets based off of any number of Twitter users.

(是也乎: 等等, 这不就是 黑镜 中基于生前 SNS 内容, 自动生成交互模型的那个...

textgenrnn_console

)

Automatic Korean word spacing with Python

(是也乎:

arch

神奇哪...Korea 和古代中文类似, 没有标点时, 句逗不同, 意义不同, 所以, 终于...

)

Tensorflow Implementation of Recurrent Neural Network (LSTM, GRU) for Text Classification

(是也乎: 叕一个 TF 的实用嗯哼 )

script to generate event certificates easily

An automatic Python Qt binding transpiler to the Qt.py abstraction layer.

(是也乎:

远没有达到官方内置工具的可用度... 但是, 给出了一个真正好用的方向...是的,前后兼容的 Qt 界面设计->可用代码的转换, 一直就是个坑... )

A collection of handy python utilities

pygrape is a python library for updating terminal output in realtime

(是也乎:

pygrape

比专门的进度条模块更加底层

)

Writing some cnn layers ans the computation graph in python

A simple python progress bar tool to help show your job's progress

(是也乎:

color

可以说终端的能力一直在被低估... 问题是, 这类嗯哼, 得事先知道任务总量...

)

Search the most similar strings against the query in Python 3. State-of-the-art algorithm and data structure are adopted for best efficiency. For both flexibility and efficiency, only set-based similarities are supported right now, including Jaccard and Tversky.

(是也乎:

叕一个 Py 实现的搜索模块...当然, 对中文是否支持就不一定了

18.5.1 via: Chuancong Gao • 8 hours ago

您好,我是TopSim的作者。感谢您介绍我的Python包。TopSim从设计时就是语言无关的,所以完全支持中文。最新的更新更是优化了体验。谢谢支持。🙏

Full support of Chinese/Japanese/Korean.

$ cat test

地三鲜
红烧肉
烤全牛
木须肉
土豆炖牛肉

$ cat test | topsim-cli "牛肉" -k 3 -s tversky

土豆炖牛肉   0.666
红烧肉 0.3332
木须肉 0.3332

( ̄▽ ̄) 没毛病, 可以大力使用之 ;-)

)

( ̄▽ ̄)

30 Amazing Python Projects for the Past Year (v.2018) 其中有几个国货,也都超过 1000+星了...

<- Qix-/better-exceptions: Pretty and useful exceptions in Python, automatically. 效果惊艳...

是也乎


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->