301-310¶
Issue #301 Releases Feb. 6, 2018¶
18年的时候Python还在Release3.4,现在都3.12了,发布的好快啊
Cite
Fastest way to unzip a zip file in Python I'm not sure what the fasted way to unzip a file in python is, but I'm sure I'm about to find out! peterbe.com Shared by @myusuf3
打不开了
Issue #302 Beam Feb. 13, 2018¶
Cite
How Numba and Cython speed up Python code
How do Numba and Cython make your Python code faster? Also Numba vs Cython.
rushter.com
Shared by @myusuf3
主要介绍了Numba和Cython的使用,都可以有一个比较好的加速效果。比较而言的话,如果是已有的项目,可以使用Numba, 加个装饰器就可以了,新项目的话可以考虑Cython
Issue #303 Async Feb. 20, 2018¶
Cite
30-seconds-of-python-code
Python implementation of 30-seconds-of-code.
github.com
Shared by @myusuf3
好家伙,这是自己整了一个github gist啊
Cite
Python Metaclasses and Metaprogramming
You can never have too much explanation on this topic.
stackabuse.com
Shared by @myusuf3
Python的元编程,但是实际的开发中适用的场景太少了
Issue #304 Lock Feb. 27, 2018¶
Cite
How to Write Dockerfiles for Python Web Apps
Nice tutorial to help bootstrap your Python development efforts with docker.
hasura.io
Shared by @praveenweb
FROM python:3.6
# Create app directory
WORKDIR /app
# Install app dependencies
COPY src/requirements.txt ./
RUN pip install -r requirements.txt
# Bundle app source
COPY src /app
EXPOSE 8080
CMD [ "python", "server.py" ]
Issue #305 Cogent March 6, 2018¶
Cite
poetry
Python dependency management and packaging made easy.
github.com
Shared by @mgrouchy
说是替代了setup.py
, requirements.txt
,MANIFEST.in
和Pipfile
的工具,看起来删除包的时候可以把包依赖的包也删除了,感觉还不错
Issue #306 Solid-state March 13, 2018¶
Cite
Best Python library for generating PDFs?
reddit.com
Shared by @myusuf3
时间过去太久了
Cite
sanic-jwt
Authentication and JWT endpoints for Sanic.
github.com
Shared by @mgrouchy
咋看着实现这么别扭,不像Flask一样插件格式保持一致
from sanic import Sanic
from sanic_jwt import Initialize
def my_authenticate(request, *args, **kwargs):
...
app = Sanic()
Initialize(
app,
authenticate=my_authenticate
)
Issue #307 Trains March 20, 2018¶
Cite
How To Use Hdf5 Files In Python
nice field guide on how to use hdf5 with Python!
uetke.com
Shared by @myusuf3
h5py使用
Issue #308 Trains March 20, 2018¶
307期链接错了,实际是308期,307期被吞了
Issue #309 March 27, 2018¶
Cite
Airtest
UI Test Automation Framework for Games and Apps.
github.com
Shared by @mgrouchy
跨平台的UI自动化框架,适用于游戏和App,现在还在维护,star还不少。
from airtest.core.api import *
# 通过ADB连接本地Android设备
init_device("Android")
# 或者使用connect_device函数
# connect_device("Android:///")
connect_device("Android:///")
install("path/to/your/apk")
start_app("package_name_of_your_apk")
touch(Template("image_of_a_button.png"))
swipe(Template("slide_start.png"), Template("slide_end.png"))
assert_exists(Template("success.png"))
keyevent("BACK")
home()
uninstall("package_name_of_your_apk")
Issue #310 Routine April 3, 2018¶
Cite
immutables
A high-performance immutable mapping type for Python.
github.com
Shared by @mgrouchy
高性能map
Cite
Loop better: A deeper look at iteration in Python
Great tutorial for those Python beginners out there!
opensource.com
Shared by @mgrouchy
简单介绍吧