周刊
各种来源的…
background
世界高速变化
goal
定期 review 一周以来主要变化
trac
汇集各种渠道的周刊, 以及自己每周内省小结吧…
refer.
…TBD
各种来源的…
世界高速变化
定期 review 一周以来主要变化
汇集各种渠道的周刊, 以及自己每周内省小结吧…
…TBD
原文: Import Python Weekly Newsletter - Issue No 144 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… NumPy 两个很酷的功能:通过切片和广播进行突变 numpy In this article, let us discuss briefly about two interesting features of NumPy viz. mutation by slicing and broadcasting. 用 Python 轻松实现微服务 microservices This small note portray process of creation a self-sufficient microservice. Test and Code: 31: I’m so sick of the testing pyramid podcast What started as a twitter disagreement carries over into this civil discussion of software testing. Brian and Paul discuss testing practices such as the testing pyramid, TDD, unit testing, system testing, and balancing test effort. 查找网页的创建或修改日期 text extraction htmldate provides a simple and convenient way to extract the creation or modification date of web pages, within Python or on the command-line. Based on HTML parsing and scraping functions: 用 Python 对 Docker 中的 Nginx 进行动态配置 docker, nginx Deploying nginx in a dynamic container environment takes a little work, especially if you don’t want to pay the big bucks for NGINX Plus. I wrote a low-tech python script for learning how things work under the hood; find it on my Github. There are open-source reverse-proxy solutions that are built specifically for container environments, like traefik. Traefik obviates the need for nginx altogether, but if you still want to run nginx, consider nginx-proxy. 通过构建一个区块链来学习之 blockchain The fastest way to learn how Blockchains work is to build one. Medium.com, 更多统计信息 - IBM沃森数据实验室 data science How I analyzed our Medium publication stats in a Python notebook? 使用Python和Flask构建简单的Restful Api第2部分 sqlite In this article I will show you how to build simple restful api with flask and SQLite that have capabilities to create, read, update, and delete data from database. (是也乎: 所有 RESTful 都是对应用的一种粗暴解释… 所以, xRPC 开始嗯哼 ) Apache Arrow 以及 “最恨 pandas 的10件事儿” - Wes McKinney pandas This post is the first of many to come on Apache Arrow, pandas, pandas2, and the general trajectory of my work in recent times and into the foreseeable future. This is a bit of a read and overall fairly technical, but if interested I encourage you to take the time to work through it. (是也乎: 恨晩了, 已经成标准了… ) EuroPython 大会视频 videos 在 Python 中模拟 IC electronics Most people who want to simulate logic ICs will use Verilog, VHDL, or System Verilog. Not [hsoft]. He wanted to use Python, and wrote a simple Python framework for doing just that. You can find the code on GitHub, and there is an ASCII video that won’t embed here at Hackaday, but which you can view at ASCIInema. (是也乎: 简单的说 终端的能力远没挖掘到底儿… ) USGS 数据集列出了美国的每个风力发电机组 data science, jypyter Jupyter Notebook (是也乎: 也就是说 用 ipynb 发论文不远了… ) Python 数据分析与 Pandas pandas, tutorial Python is a great language for data analysis. pandas is a Python package providing fast, flexible, and expressive data structures designed to make working with “relational” or “labeled” data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python. In this post we’ll get to know more about doing data analysis using pandas. (是也乎: 叕一个 Pandas 教程, 其实就一句话, 别怕浪费内存… ) Python 覆盖测试可以很快 coverage SerpentAI: 游戏代理框架 game engine Serpent.AI is a simple yet powerful, novel framework to assist developers in the creation of game agents. Turn ANY video game you own into a sandbox environment ripe for experimentation, all with familiar Python code. The framework’s raison d’être is first and foremost to provide a valuable tool for Machine Learning & AI research. It also turns out to be ridiculously fun to use as a hobbyist (and dangerously addictive; a fair warning)! (是也乎: .io 之后 .ai 是又一个可屯域名了 ) Python: SQL 到 JSON 再超越! json, sql 使用 Django Rest 框架构建远程过程调用(RPC)端点 DRF, RPC The Django Rest Framework (DRF), has a lot of built in functionality that supports CRUD operations, but building an RPC endpoint requires hand-rolling much of that. Ultimately, if we’re adding an RPC endpoint to an existing API with mostly REST endpoints, we want to match the design of our new endpoint to match that of the DRF, so we need to understand what each piece does. (是也乎: 所以, Dj 也开始 *RPC 了, 世界总是在重复自己… ) 11 技巧以便在编码Python时保持安全 tips and tricks Twitter 时间线的情绪分析 twitter This post will show and explain how to build a simple tool for Sentiment Analysis of Twitter posts using Python and a few other libraries on top. Full code is available on GitHub. (是也乎: 简单的说, twitter 通过开放数据, 生将自己变成了数据科学地基 ) 用 Python 来 gRPC 简化指南 gRPC Google’s gRPC provides a framework for implementing RPC (Remote Procedure Call) workflows. By layering on top of HTTP/2 and using protocol buffers, gRPC promises a lot of benefits over conventional REST+JSON APIs. (是也乎: 参考: WEB开发中,使用JSON-RPC好,还是RESTful API好? - 知乎 ) A Django Rest App With Type Annotated Way type annotation Python Itertools 指南 itertools Those iterables are more powerful than you can possibly imagine. (是也乎: 其实, 这种工具在上古都是完备的,只是反直觉, 所以… ) 好物 ~ 包/模块/库/片段… ...
原文: Import Python Weekly Newsletter - Issue No 143 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 如何在一小时内建立书籍推荐系统第1部分 - 基础知识 machine learning Building recommender systems today requires specialized expertise in analytics, machine learning and software engineering, and learning new skills and tools is difficult and time-consuming. In this post, we will start from scratch, covering some basic fundamental techniques and implementations in Python. In the future posts, we will cover more sophisticated methods such as content-based filtering and collaborative based filtering. (是也乎: pandas->nb->k-Nearest->… Machine-Learning-with-Python/Recommender Systems - The Fundamentals.ipynb at master · susanli2016/Machine-Learning-with-Python 是的 jupyter 上直接撸的 ) 我们如何在一小时内建立书籍推荐系统第2部分 - k最近的邻居和矩阵… machine learning In the last post, we saw how we could use simple correlational techniques to create a measure of similarity between the books’ users based on their rating records. In this post, we will explain how you can use those same sort of similarity metrics to recommend books to a book’s readers. Python Gem #19: 查找表 > if chain core-python What should be a really simple function has turned into a fifty-line gargantuan that’s too hard to read properly because of the sheer number of lines. The culprit; a seriously long if-elsif-else chain. But not to fear; there’s a better way! 最饭的可怕错误消息<- Python core-python TypeError: object() takes no parameters ...
原文: Import Python Weekly Newsletter - Issue No 142 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 3.7 有什么新的? new release This article explains the new features in Python 3.7, compared to 3.6. (是也乎: 因为老爹没有公司任务了, 所以,开始发力社区版本? ) 如何用 Python 生成 FiveThirtyEight 图表? graph, FiveThirtyEight If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself. In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization. (是也乎: FiveThirtyEight 原来是家公司,因为精美的可视化作品, 而变成了专门的 FTE 风格… ) 在 Unix 环境中配置 Python (用 pyenv 以及 direnv) environment, pyenv This post is about how to set up multiple Python versions and environments on a development machine (and why I don’t use conda). 在 Docker 中用 Jupyter Notebook 跑 PySpark – Suci Lin – Medium docker, spark, jypyter It is much much easier to run PySpark with docker now, especially using an image from the repository of Jupyter. When you just want to try or learn Python. it is very convenient to use Jupyter Notebook for an interactive developing environment. The same reason makes me want to run Spark through PySpark in Jupyter Notenook. (是也乎: 嚓, 这热点组合的… ) Surgical 时间追踪在 Python performance How to profile your python code to improve performance? 用卷积去噪在基于内容的图像检索中使自动编码器 machine learning, image processing Content based image retrieval (CBIR) systems enable to find similar images to a query image among an image dataset. The most famous CBIR system is the search per image feature of Google search. This article is a keras tutorial that demonstrates how to create a CBIR system on MNIST dataset. Our CBIR system will be based on a convolutional denoising autoencoder. It is a class of unsupervised deep learning algorithms. (是也乎: 基于内容的图像搜索… ) itertools.count code snippets You need to iterate over an infinite series of numbers, breaking when a condition is met. 如何用 Python 监听 S&P 500 股票 scraping, codesnippets I thought it would be nice to show how one can leverage Python’s Pandas library to get stock ticker symbols from Wikipedia. Equality 和 Identity tweet (是也乎: Equality vs Identity: »> a = [“x”, “y”] »> b = a »> c = [“x”, “y”] »> a == b == c True »> a is b True »> a is c False 所以, 这个 推 关注时间长了就怀疑人生了… 不过, logo 很萌… ) ...
原文: Import Python Weekly Newsletter - Issue No 141 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… GoCD - 开源续发服务器 GoCD, advert GoCD is a continuous delivery tool specialising in advanced workflow modeling and dependency management. It lets you track a change from commit to deploy at a glance, providing superior visibility into your workflow. It’s open source, free to use and download. (是也乎: 对 CI 的进一步提升, 持续发送? ) Python 令人难以置信的成长 core-python In this post, we’ll explore the extraordinary growth of the Python programming language in the last five years, as seen by Stack Overflow traffic within high-income countries. The term “fastest-growing” can be hard to define precisely, but we make the case that Python has a solid claim to being the fastest-growing major programming language. (是也乎: 简单的说, 只是撞到了数据科学的大热点… ) DjangoCon US 视频发布了 videos Django 完整初学者指南 - 第一部分 django I’m starting today a new tutorial series about the Django fundamentals. It’s a complete beginner’s guide to start learning Django. The material is divided into seven parts. We’re going to explore all the basic concepts in great detail, from installation, preparation of the development environment, models, views, templates, URLs to more advanced topics such as migrations, testing, and deployment. (是也乎: 叕一个 Dj 教程… ) hatch: 现代化的 项目,包以及虚拟环境管理器 package manager Hatch is a productivity tool designed to make your workflow easier and more efficient, while also reducing the number of other tools you need to know. It aims to make the 90% use cases as pleasant as possible. (是也乎: /^/^ || O| / /~ _/ _|****/ _____ `\ \ | | / / / / / / \ / / \ / / —- \ / / -~ ~- | | ( ( -~ – ~- / | \ ~--~ -~ ~- ~--~ / -_ _- -_ _- ~–_-~ ~-__-~ 简单的说: 简化一堆 CLI 工具的 CLI 工具. ) selectors select Provide platform-independent abstractions for I/O multiplexing based on the select module. (是也乎: PyMOTW 已经坚持了有快10年了…可见 Python 内建模块的持续优化中故事太多了… ) 用 PyCharm 嗯哼 Reddit reddit Run reddit on your local machine with PyCharm to help you through the way. 从 Scratch 嗯哼的深度学习 II: Perceptrons – deep ideas deep learning This is part 2 of a series of tutorials, in which we develop the mathematical and algorithmic underpinnings of deep neural networks from scratch and implement our own neural network library in Python, mimicing the TensorFlow API. 性能分析: Goroutine 和 Python 的 Coroutine python, go I made 1000 HTTP requests using Goroutines and Python’s Coroutines. Do check out Go Programming Language Newsletter http://importgolang.com to keep track of Go ecosystem. 高级 Pillow 第二部分 image processing Wow Pillow is powerful. Python 中的 Threads vs Processes Threads, processes Beginner’s guide to parallel programming. 都柏林自行车站的应用模式 data science 如何建立特朗普的情感跟踪 machine learning, sentiment analysis Analyzing over a thousand tweets a minute PyTorch vs TensorFlow?—?挖掘差异 machine learning In this post I want to explore some of the key similarities and differences between two popular deep learning frameworks: PyTorch and TensorFlow. Why those two and not the others? There are many deep learning frameworks and many of them are viable tools, I chose those two just because I was interested in comparing them specifically. (是也乎: 图样图森破, 其实最大的差异就是爹不同哪… ) Smarkets 的数据驱动营销 ETL I was introduce to Luigi by my friend Shanmuganandh. It has since become an important tool in my Python toolkit. Do check it out. 重新设计 Python 的命名元组 tuples Deficiencies in the startup time for Python, along with the collections.namedtuple() data structure being identified as part of the problem, led Guido van Rossum to decree that named tuples should be optimized. That immediately set off a mini-storm of thoughts about the data structure and how it might be redesigned in the original python-dev thread, but Van Rossum directed participants over to python-ideas, where a number of alternatives were discussed. They ranged from straightforward tweaks to address the most pressing performance problems to elevating named tuples to be a new top-level data structure—joining regular tuples, lists, sets, dictionaries, and so on. (是也乎: 论一个 EPE 的养成术 ) 不过载库的 Python 学习姿势 education (是也乎: 简单的说, 那是不可能的… ) How Python does Unicode? unicode (是也乎: 说多了都是泪…. ) btcpy 发布: 全功能的比特币库 bitcoin With the aim of making Bitcoin products development easier and more effective, at Chainside we decided to develop btcpy, a new Python 3 SegWit-compliant library, which is focused on providing a simple interface to parse and create complex Bitcoin scripts. Serverless Thrift APIs in Python on AWS Lambda aws lambda This blog post shows a basic example of a Serverless Thrift API with Python for AWS Lambda and AWS API Gateway. python 奇招集锦 core-python Python, being awesome by design high-level and interpreter-based programming language, provides us with many features for the programmer’s comfort. But sometimes, the outcomes of a Python snippet may not seem obvious to a regular user at first sight. Here is a fun project attempting to collect such classic and tricky examples of unexpected behaviors in Python and discuss what exactly is happening under the hood! (是也乎: 简单的说, 嫑用… <- WTFPL 2.0 这个许可证很屌… ) Monkey-patching is Bad monkey patching Monkey-patching software is generally frowned upon, but there is a time and a place for everything, even monkey-patching. (是也乎: 🐒补刚刚在嗯哼说赞, 马上就反转了… ) Serving 1x1 pixels from AWS Lambda endpoints aws lambda A no-headache guide to serve 1x1 pixels in a serverless, Pythonic world. “The Zen of Python” 简析 zen of python The Zen of Python?—?is a list of 19 general truths for Python design principles. Apparently there is a 20th, but I’m focusing on understanding the written list before speculating on what the Easter Egg could be. Written below is a brief analysis of each rule, taken in large part from an article I read on Quora.com. Below the list is the link for that. (是也乎: 值得长久嗯哼的文本, 只是随着技术的进步落实到代码上也各有不同… ) Python 玑珠 #9: itertools.chain itertools This is a daily series called Python Gems. Each short posts covers a detail, feature or application of the python language that you can use to increase your codes readability while decreasing its length. (是也乎: 一个系列, 收集各种简洁代码的思路 ) Python 魔法方法和 getattr core-python A primer on Magic Methods 好物 ~ 包/模块/库/片段… ...