importpython-barnner.png

该读

~ 文章, Blog, 教程...

Python has a compact syntax for constructing a list with a loop and a condition, called a list comprehension: my_list = [ f(x) for x in sequence if cond(x) ] . You can also build dictionaries with dictionary comprehensions, and sets with set comprehensions///

上周看到了 uvloop 的简介, 号称比 Asyncio 快两倍以上, 不服来测! 嗯哼 基本属实 ;-)

Today, I read an article about uvloop. I am aware of libuv and its behind nodejs. What caught me was “In fact, it is at least 2x faster than any other Python asynchronous framework.”. So I decided to give it a try with aiohttp. The test program was simple websocket code which receives a text message, doubles the content and echoes back. Here is the complete snippet with uvloop. I ran naive benchmark using thor and results favoured uvloop. uvloop was able to handle more connection on 8GB , non SSD Mac OSX . Asyncio was able to hold 154 connections and uvloop 243 connections with any socket errors .

官方号称 Lambda 比 EC2 性价比高...

So I decided AWS Lambda had been on the field enough time to make an analysis by my own. Lambda comes with a few problems like only Python 2.7 (they will fix it in the future I guess), libraries, etc. Also I had read some blogs like Flynn's one. But skipping those problems I wanted to know... What about money ?

Using Python, pandas, matplotlib, and leaflet, I downloaded my listening history from Last.fm’s API, analyzed and visualized the data, downloaded full artist details from the Musicbrainz API, then geocoded and mapped all the artists I’ve played. All of my code used to do this is available in this GitHub repo, and is easy to re-purpose for exploring your own Last.fm history. All you need is an API key.

(是也乎:

以及类似的分析 twitter/facebook/instagram ... SNS 海量数据的根源都是: 人家开放了接口!

)

Python decorators are so easy to use. Anyone who knows how to write a Python function can learn to use a decorator. But writing decorators is a whole different skill set. And it’s not trivial; you have to understand. closures, how to work with functions as first-class arguments, variable arguments, argument unpacking, even, some details of how Python loads its source code

(是也乎:

bigger and bigger and bigger and bigger and bigger ... )

In this article, we’re going to go over three aspects of machine learning pipeline design that tend to be tedious but nonetheless important. After that, we’re going to step through a demo for a tool that intelligently automates the process of machine learning pipeline design, so we can spend our time working on the more interesting aspects of data science.

Recently, I've been playing around with Python and found that I really enjoy the language. Now I am wondering how I should go about switching over to a Python job. I am tired of doing front-end web development, and am thinking that I would enjoy concentrating more on the back-end. However, the back-end Python jobs seem to require me being a data scientist. Also, it seems like most Python jobs are in QA automation or DevOps.

(是也乎:

汇同 哪种语言/编辑最好 为三大月经贴... 其实,很简单...自个儿创造这个岗位! )

Quick read justifying Python.

Jonathan Whitmore demonstrates how to install pivot tables and showcases the features of this extension by examining a dataset of restaurant scores.Pivot tables are one of the many ways to extend the capabilities of the Jupyter Notebook. In this training segment, learn how to quickly and effectively analyze, scope, and visualize data using pivot tables in Jupyter Notebook.

(是也乎:

高级特性, 数据透视表的深化折腾... )

pony-mode - Django mode for emacs

This recipe shows basic usage of the ctypes module to call C code from Python code.

If you are building a new Django website from scratch, the first thing you implement is the User authentication. Here is a simple article showing you how to do it.

A robust means of deploying web applications with Amazon Web Services is to use an Elastic Load Balancer (ELB) to balance requests between an “Auto Scaling Group” (ASG) of EC2 instances. As well as horizontally scaling, this set-up allows automated canary (aka blue-green) deployments, where new application versions are deployed as a new ASG which replaces the existing EC2 instances with new; a so-called “immutable infrastructure” approach.

在折腾了 Django-CMS 和 Mezzanin 之后, 还是理智的入了 Wagtail 教.

My decision to delve into Wagtail only came after I attempted to use Django-CMS and Mezzanine. Their strengths seemed to lie in having a comprehensive ecosystem in place with pluggable e-commerce systems and more.

The following is a soup to nuts walkthrough of how to set up and deploy a Django application, powered by Python 3, and PostgreSQL to Amazon Web Services (AWS) all while remaining sane.Elastic Beanstalk is a Platform As A Service (PaaS) that streamlines the setup, deployment, and maintenance of your app on Amazon AWS. It’s a managed service, coupling the server (EC2), database (RDS), and your static files (S3). You can quickly deploy and manage your application, which automatically scales as your site grows.

IoT 物联网时代来了, OpenWRT 是其中最具成功相的平台.

One of the biggest new trends in technology is the Internet of Things and one of the driving forces is the wealth of new sensors and platforms that are being continually introduced. In this episode we spoke with the founder and head engineer of one such platform named Onion. The Omega board is a new hardware platform that runs OpenWRT and lets you configure it using a number of languages, not least of which is Python.

新书

~ New Books

Over 80 object-oriented recipes to help you create mind-blowing GUIs in Python.

活动

~ Upcoming Conference / User Group Meet

项目

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

Update the packages in a requirements.txt file.

(是也乎:

一个真实的故事引发的... )

基于机器学习的 AI 作曲

Hackhttp 又一 HTTP library

将 OpenBazaar 安装到云空间的工具. 帮时你 5$/月 就能在 Digital Ocean 上开始折腾在线商店, 安装过程 8~11 分钟.

Cryptographically bulletproof encryption algorithm based on the cutting edge MD5 hashing algorithm

(是也乎:

md5-encryption )

文字云创建脚本

Doom environment for Gym

Example custom Jupyter widget

(是也乎:

细思恐极, Jypyter 向着 web GUI 大步突进中, 我们可以期待未来跨平台 app 除了 react 后,又有新选择了?! )

用 Markdown 发布新闻组

Integration SQLAlchemy ORM with Restframework API

DAMA 无责任推荐

Jupyter ~ 神器之上的神器

retrying ~ 重试小仙器

aiohttp ~ 兼容 Py3 的更加简洁的 HTTP S/C

plumbum ~ 跨平台的 AppleScript

phonenumbers ~ 将 google libphonenumbers 人性化包装的电话检验库

networkx ~ graphviz 之后,更加好用的可视化库

influxdb ~ 时间序数据存储好物

elasticsearch-dsl ~ 嗯哼, Pythonic 操作小语言

keras ~ Theano 上的深度学习界面

gensim ~ NLP 必用品

以及: 20 Python libraries you can’t live without | Python Tips

快速制作 pyenv 环境镜像的工具

(是也乎:

国人作品, 在 CPyUG 列表反馈下, 24小时以内,兼容了 Python 2 ;-)

嗯哼,当然的,没有 M$ 的支持. )

工作

....

是也乎


Comments


大妈的多重宇宙 - YouTube

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

任何问题

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

-->