蠎加载 183
原文: Import Python Weekly Newsletter - Issue No 183 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 和 Python 搞并行编程 parallel programming Welcome to a short course that will teach you how to write Python scripts that can take advantage of the processing power of multicore processors and large compute clusters. While this course is based on Python, the core ideas of functional programming and parallel functional programming are applicable to a wide range of languages. To follow this course you should already have a good basic understanding of Python, e.g. loops, functions, containers and classes. This course will rely on you understanding the material presented in my Beginning Python and Intermediate Python courses. This is a short course that will give you a taste of functional programming and how it can be used to write efficient parallel code. Please work through the course at your own pace. Python is best learned by using it, so please copy out and play with the examples provided, and also have a go at the exercises. (是也乎: 课程, 讲述并行计算原则, 只是选择用 Python 来作为课程案例… ) 管道在 Python functional programming I just found an article about pipes in Python on lobste.rs and was reminded that I was toying with the exact same thing recently. Using a lot of functional languages (mainly Haskell, Clojure, Elixir) and also a fair bit of bash, I am very used to streaming data through chains of functions using pipe-like constructs. Python does make this quite difficult and encourages a more imperative approach with intermediate variables (是也乎: 推荐珠三角技术沙龙的赖勇浩折腾过的模块, 可以直接从形式上 pipe 起来 ) 用 Python 构建退休储蓄模型 pandas It’s easy to find investment advice. It’s a little less easy to find good investment advice, but still pretty easy. We are awash in advice on saving for retirement, with hundreds of books and hundreds of thousands of articles written on the subject. It is studied relentlessly, and the general consensus is that it’s best to start early, make regular contributions, stick it all in low-fee index funds, and ignore it. I’m not going to dispute that, but I do want to better understand why it works so well. As programmers we don’t have to simply take these studies at their word. The data is readily available, and we can explore retirement savings strategies ourselves by writing models in code. Let’s take a look at how to build up a model in Python to see how much we can save over the course of a career. (是也乎: 无论什么模型也无法抵抗国家一纸红头文件的… ) mypyc - Dropbox 正在开发一个新的编译器 Cython mypyc will compile type-annotated Python code to an optimized C. The first goal is to compile mypy with it to make it faster, so I hope that the project will be completed. Essentially, mypyc will be similar to Cython, but mypyc is a subset of Python, not a superset. Interfacing with C libraries can be easily achieved with cffi. Being a strict subset of Python means that mypyc code will execute just fine in PyPy. They can even apply some optimizations to it eventually, as it has a strict and static type system. (是也乎: 自从老爹去了 Dropbox, 他们就经常嗯哼出全部的编译器来, 应该是好事儿? 不过, 都依赖重要的 py3 的类型声明特性 ) Vanilla python 聊天服务器 http, toy application, webserver In the process of trying to build a vanilla python HTTP server, I realized that I don’t know much about it’s inner workings. So while I was stuck learning about sockets, TCP handshakes and protocols, I decided to tackle something that was a little more within my reach thus was born this humble little project. A simple python chat server meant to be used by terminal clients through netcat. (是也乎: 继 香草JS 后, Python 框架也有香草味儿的了… ) 如何在 Python 中从头开始构建自己的神经网络 deep learning A beginner’s guide to understanding the inner workings of Deep Learning. . 用 Prophet 预测 Amazon 销售额 forecasting Prophet is an open-source Python package for time-series forecasting, originally developed by Facebook’s Data Science team to predict usage on different parts of Facebook. Prophet’s forte is forecasting highly seasonal data with long-term, non-stationary trends, punctuated with occasional spikes on specific dates. (是也乎: Prophet: 基于时间序列进行预测的软件 ) Airflow, 元数据工程和世界上最大的民主数据平台 airflow In this post, we will talk about how one of Airflow’s principles, of being ‘Dynamic’, offers configuration-as-code as a powerful construct to automate workflow generation. We’ll also talk about how that helped us use Airflow to power DISHA, a national data platform where Indian MPs and MLAs monitor the progress of 42 national level schemes. In the end, we will discuss briefly some of our reflections from the project on today’s public data technology. Leveraging Docker Images to deploy your Django backend on Openshift devops, openshift Openshift with Docker Images is the ultimate tool you need for automated deployment. 好物 ~ 包/模块/库/片段… ...