- 原文: Import Python Weekly Newsletter - Issue No 130
- 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-)
该读
~ 文章, Blog, 教程...
- 10分钟在 Python 3.6 用起静态数据类型检查
- static type
Automatically catch many common errors while coding
(是也乎:
目前只有少数 IDE 比如 PyCharm 支持 py3 这种语法, 以及并没有证据表明, 在混合使用新旧数据声明的代码项目, 可以不用其它手段就可能提高运行效能.
)
- 用 flake8 对 python 项目自动进行代码复审
- flake8
I’ll now introduce flake8, a tool for checking Python syntax. SideCI supports code review automation for Python projects using flake8.
(是也乎:
古典的配置形式...
[flake8]
# it's not a bug that we aren't using all of hacking, ignore:
# F812: list comprehension redefines ...
# H101: Use TODO(NAME)
# H202: assertRaises Exception too broad
# H233: Python 3.x incompatible use of print operator
# H301: one import per line
# H306: imports not in alphabetical order (time, os)
# H401: docstring should not start with a space
# H403: multi line docstrings should end on a new line
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
ignore = F812,H101,H202,H233,H301,H306,H401,H403,H404,H405,H501
)
- Linting 对 Python 代码进行轻量级缺陷检测
- linting
When many people think of linting they think about how it improves the readability and maintainability of code by forcing developers to stick with an agreed upon code style. This is indeed one of the major merits of having a 'linter' as a part of your build process, but it's not the only one!
(是也乎:
Flake8 突然爆发这么多软文是几个意思? )
- Python 图表分析探索
- graphs
Plotting is an essential component of data analysis. As a data scientist, I spend a significant amount of my time making simple plots to understand complex data sets (exploratory data analysis) and help others understand them (presentations). In particular, I make a lot of bar charts (including histograms), line plots (including time series), scatter plots, and density plots from data in Pandas data frames.
(是也乎:
为 ggplot 章目的软文, 问题是 R 味儿忒重, 另外, 没有解决根本上的发布问题, 这事儿目前看就是bokeh 意识到了:
- 图形
- html
- ipynb
以上三种常见输出场景, 如果没有简洁的输出指令, 那么基本上不是个可用的图表库了...
)
- Fedora 爱 Python
- fedora
We're Python Special Interest Group, and we're making Fedora an even better system for Python developers, and Python an even better language for Fedora.
(是也乎:
讲真, 一个技术社区的实力,基本上可以从其设计能力正比评测出来...
)
-
- asyncio
-
- gunicorn
Do you run your Django app under Gunicorn and you want to reload it once you change the source code in your editor? No problem!
(是也乎:
俗称的一句话干货: reload=True
)
- 将文本映射到颜色
- code snippet
好物
~ 包/模块/库/片段...
- transformer
- 299 Stars, 41 Fork
A TensorFlow Implementation of the Transformer: Attention Is All You Need
- automating-AWS-with-Python
- 35 Stars, 4 Fork
automating AWS with Python using boto3 library.
- django-admin-env-notice
- 24 Stars, 0 Fork
Visually distinguish environments in Django Admin
(是也乎:
极简 UX 侵入
)
- InsideCoreML
- 9 Stars, 1 Fork
Python script to examine Core ML's mlmodel files
- Fantastic-Transcoder
- 8 Stars, 0 Fork
Fantastic transcoder is a video transcoder which utilizes massively parallel compute to achieve ludicrous conversion speeds.
(是也乎:
基于 AWS 生态体系的....
)
- ShopifyScraper
- 5 Stars, 0 Fork
Shopify Scraper (not monitor)
(是也乎:
专用的...
)
( ̄▽ ̄)
(是也乎:
嚓了个嚓... )
是也乎
- 170623 Zoom.Quiet 42 分钟完成快译
- 170623 Zoom.Quiet 用时 7 分钟完成格式化.
Comments