周刊
各种来源的…
background
世界高速变化
goal
定期 review 一周以来主要变化
trac
汇集各种渠道的周刊, 以及自己每周内省小结吧…
refer.
…TBD
各种来源的…
世界高速变化
定期 review 一周以来主要变化
汇集各种渠道的周刊, 以及自己每周内省小结吧…
…TBD
原文: Import Python Weekly Newsletter - Issue No 72 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 生成器解析 core python 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/// Asyncio 和 uvloop benchmark 上周看到了 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 . Python 成本分析脚本 - AWS EC2 vs AWS Lambda - reddit discussion (self.Python) aws 官方号称 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 ? 用 python, pandas, matplotlib 下载/分析/可视化 10年份 last.fm 音乐收听历史 (代码在 github) machine learning 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 装饰器的五大理由 core python 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 … ) TPOT: 自动化数据科学平台 赞助商 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. 如何获得 Python 工作岗位? - Reddit Discussion core python 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. (是也乎: 汇同 哪种语言/编辑最好 为三大月经贴… 其实,很简单…自个儿创造这个岗位! ) Why Python? What’s it good for? How is it special? core python Quick read justifying Python. 安装 Jupyter Notebook Extensions video 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. (是也乎: 高级特性, 数据透视表的深化折腾… ) davidmiller/pony-mode: Django mode for emacs emacs pony-mode - Django mode for emacs 用 ctypes 来从 Python 调用 C 代码 code snippet This recipe shows basic usage of the ctypes module to call C code from Python code. 给 Django 追加用户验证 django 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. Django, ELB 健康检查和持续交付 | Octopus Energy Tech blog aws 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. DjangoPaths - 为毛俺选择 Wagtail? cms 在折腾了 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. 部署 Django + Python 3 + PostgreSQL 到 AWS Elastic Beanstalk - Real Python aws 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. Onion IoT 和 Lazar 以及 Zheng podcast 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 ...
原文: Import Python Weekly Newsletter - Issue No 71 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 元类解释 core python Python 的核心特性就是:一切为对象, 其实都是类的实例. 教程:如何基于 Django,Ngrok 构建 facebook 消息机械人 - Blog - Abhay Kashyap django 2016 是 Facebook 机械人元年, 基于地球上最大的短信平台, Facebook 推出了 Messenger 平台, 支持企业构建自己的自动应答系统; 此平台虽然还在 beta 阶段, 但是接入了 十亿 活跃用户,值得折腾…. uvloop: 异常快的 Python 网络 web framework asyncio 是当前 Python 的标准异步 I/O 网络框架. uvloop 则是能完全替代 asyncio 完备的更快的异步事务循环. 基于 libuv 以 Cython 构建; 事实上 uvloop 比 nodejs, gevent 或是其它异步框架快两倍以上. 性能接近 Go 语言实现的. Django 爱好者的 ES6 django The Django community is not one to fall to bitrot. Django supports every new release of Python at an impressive pace. Active Django websites are commonly updated to new releases quickly and we take pride in providing stable, predictable upgrade paths. We should be as adamant about keeping up that pace with our frontends as we are with all the support Django and Python put into the backend. I think I can make the case that ES6 is both a part of that natural forward pace for us, and help you get started upgrading the frontend half of your projects today. Growler web framework 利用通过 PEP 3156 包含在 Python 3.4 内建模块中的 asyncio 库, Growler 作为 web 应用框架, 类似 nodejs 的 express 库, 基于一系列中间件完成 HTTP 请求响应. 也通过中间件的串接完成复杂业务. (是也乎: 何时开始微型 web 框架都和瓶子干上了!? ) Redis 缓存修饰符 code snippet 用 redis 完成的髙水平的函式缓存. 应该聘请那种给力的 Python 开发者? Reddit Discussion I need some advice. I founded a SAAS startup that is doing pretty well. When I was looking to build out my software I found a developer I had worked with in the past and brought him on as a partner in the business. He held an equity stake and built out the backend of our software (restful API and database) all using Python. Front end is also Python based. Django bugfix 版本发布: 1.9.6 + 1.8.13 release Today we’ve issued bugfix releases for the 1.9 and 1.8 release series. Details can be found in the release notes for 1.9.6 and 1.8.13. Python 3 的功能卫士 code snippet 模块实现了功能卫士 - 根据不同的参数将运行时调用重定向到不同的函式上. 表现形式是 @guard 修饰符. 并提供缺省值表达式: _when 用 Python 来预测你更喜欢面条中加 Qdoba 还是 Chipotle. machine learning I’ve had a theory that for every Noodles, there’s a Qdoba that’s right next door. It might be some sort of selection bias however, since I can think of a couple locations where they’re directly next to each other. To me, Noodles and Qdoba have a special relationship, at least compared to other restaurants. I figured now was about the time I should test this, and I can use Chipotle to test. The question is: Which restaurant is more special to Noodles, Qdoba or Chipotle? 随机找到 bit.ly 地址 code snippet 如果有人有足够的计算能力会发生什么? PYCON上提出了澳大利亚教育研讨会的演讲!! community Involved in Australian education, whether formally or informally? Making use of Python in your classes, workshops or other activities? Interested in sharing your efforts with other Australian educators, and with the developers that create the tools you use? Able to get to the Melbourne Convention & Exhibition Centre on Friday August 12th, 2016? Then please consider submitting a proposal to speak at the Python in Australian Education seminar at PyCon Australia 2016! Get on Track w/ JIRA. Sponsor JIRA Software is the #1 software dev tool used by agile teams. Get started for free! 新书 ~ New Books ...
原文: Import Python Weekly Newsletter - Issue No 70 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 有 Python app. 的想法? Sponsor 在 Azure App Service 中创建 Python app. 免费的! 选择对应语言,就可以使用各种常见框架的模板来开始: django/flask/bottle … Python 分类排序 core python 对于 TIOBE 排行榜的其它语言, Python 有点不寻常,其它都有可排序的 字典/集合, 只有 Python 没有, 自称 预置电池 的语言,为毛?! Django 模型中的最佳实践 django 对于 Django 程序猿,非常实用和清晰的检查列表. 优化慢速 Django REST Framework Django Rest Framework DRF 中有个著名的 “N+1选择问题”, 这儿进行了深入的讨论, 但是,并没有什么好的的解决方案.. The Django REST Framework (DRF for short) allows Django developers to build simple yet robust standards-based REST API for their applications. Even seemingly simple, straightforward usage of the Django REST Framework and its nested serializers can kill performance of your API endpoints. At it’s root, the problem is called the “N+1 selects problem”; the database is queried once for data in a table (say, Customers), and then, one or more times per customer inside a loop to get, say, customer.country.Name. Using the Django ORM, this mistake is easy to make. Using DRF, it is hard not to make. select — 高效 I/O 中的等待 — PyMOTW 3 core python 模块选择特定平台 I/O 监察功能. 相当于 POSIX 中的 select(), 适用于 Windows 和 UNIX 平台. 也提供了 poll() , 仅 UNIX 可用. 54集 - Donald Stufft 论 Pip 以及 Python 包管理 podcast 作为 Python 程序猿,每天都在使用 pip 进行各种模块的管理. 但是从来没有详细探寻过为什么/怎么来的?! 这次请到了作者来聊聊,当初的设想… As Python developers we have all used pip to install the different libraries and projects that we need for our work, but have you ever wondered about who works on pip and how the package archive we all know and love is maintained? In this episode we interviewed Donald Stufft who is the primary maintainer of pip and the Python Package Index about how he got involved with the projects, what kind of work is involved, and what is on the roadmap. Give it a listen and then give him a big thank you for all of his hard work! django-river 状态机以及工作流库 Main goal of developing this framework is to be able to edit any workflow item on the fly. This means, all elements in workflow like states, transitions, user authorizations(permission), group authorization are editable. To do this, all data about the workflow item is persisted into DB. Hence, they can be changed without touching the code and re-deploying your application. 构建实时 apps. Sponsor Syncano. Database. Backend. Middleware. Real-time. Support. Start for free! 计算几何在 Python : 从理论到应用 When people think computational geometry, in my experience, they typically think one of two things: Wow, that sounds complicated. Oh yeah, convex hull. In this post, I’d like to shed some light on computational geometry, starting with a brief overview of the subject before moving into some practical advice based on my own experiences polyglot 的多分派手册 - 第三部分 core python 有关多分派系列第三部分. 第一部分介绍了概念以及 C++ 的实现; 第二部分在Python 中完成了部分特性; 这一节, 挖掘其根据 Common Lisp 中的实现, 来探讨 Python 在 OOP 框架中可以进行的. Your Django Story: Meet Margaret Myrick interview Margaret Myrick is a program manager at Indeed, and a musician on the side. She has lived in Texas since she was a child. YodaBot - 开源消息机械人将文本转换为 yoda 演讲 Master Yoda, I am. Left Degobah I have, and come to messenger as a bot. Message me. Reply in my own style, I would. Curator Note - Pretty funny check it out. (是也乎: 特川普之后, 又一个语言风格类工具. ) Python 提示符工具包 core python prompt_toolkit 专注用 Python 构建强力 CLI 工具界面. (是也乎: 嗯哼, 这样一来, GUI 越来越没有什么必要了… ) 雇主拒绝遵守 Python - Reddit Discussion core python Hey guys, Recently, I informed my manager that I was willing to go above-and-beyond and help improve some of our team operations by writing a handful of Python scripts. He is a stickler for following the rules, so he ordered me to ask permission to install Python on my development machine (I wasn’t intending on asking permission). My request has been refused. Despite providing evidence from the Python Foundation on their open licensing (especially for my purposes, which is just local machine – not production), they are still refusing on account that Python is type of GPL and it is interpretative. Have you guys run into something like this before? It seems ridiculous to me. (是也乎: 嗯哼, 可怜的 GPL. ) James Powell - from __past__ import print_statement: 达达主义者拒绝 Python 2 vs 3 video If the title doesn’t make any sense, then there’s no hope that the description will be any better. This talk will be a strange dive into interpreter hacks, the pointlessness of the Python 2 vs 3 debate, and the twisted artistic drive that pushes the speaker to come up with these perversions of the Python language. Prepared to be simultaneously repulsed, intrigued, and completely bored. 有趣,但是完全无聊… 用 Python 分析 Chrome 的浏览历史 从 SQLite 中扒出数据结构, 只需 Python 写个脚本,连接数据库,提取对应数据, 一切就随你折腾了. 在线用 Python 收集情报 Sponsor Learn how to write code to automatically extract and analyze data from the web and social media. Join students from around the world from law enforcement, journalism, information security and more. 新书 ~ New Books ...
原文: Import Python Weekly Newsletter - Issue No 69 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 学习用 Python 收集在线情报 Sponsor 通过代码自动追踪/提取/分析 网络和SNS 的数据. 倡议 法律/新闻/信息安全 以及其它有兴趣的专业学生加入 仅用三种特征就能基于名字确定性别精度达 80% machine learning 推荐这一简单的项目, 通过机械学习通过姓名来猜测性别! 经过摸索,发现仅仅需要关注三个特征,就能达到 80% 的精度! 作者自认不是 机器学习领域 专家, 大家有意见敬请吐糟. (是也乎: 源代码: NameGenderClassification/Gender Classification of Names.ipynb at master · ayoungprogrammer/NameGenderClassification 对的,一位华人小哥, 当然,不是天朝的… ) 潜入 OOPy core python 面向对象编程的幻灯. (是也乎: 细思恐极~果断发布在 不存在的 speakerdeck 中 167页的良心分享! 同作者另外一篇幻灯也必须推荐: Abstract Base Classes // Speaker Deck ) Hello World - 机器学习食谱 #1 video 首个机器学习案例只要6行! 这一集介绍什么是机械学习,以及为毛这么重要. 嗯哼,跟随代码来体验吧. (是也乎: 细思恐极~ 来自不存在的公司收购的不存在的视频分享平台上的频道: Google Developers 然! 猜对了, AlphaGo 团队的工程师亲自录制的教学录像! ) Admino 作为 Django 的模块提供 REST API 给管理终端. django 通过她, 终于可以自在的制造自己的管理面板了. 来注册成为 PyCon 2016 志愿者! pycon PyCon 志愿者的自豪是有传统的… is proud to be part of the long tradition of events that take place because the attendees themselves care and are willing to put forward hours of volunteer work to ensure that new arrivals are greeted at the registration desk, that speakers are guided to and from their session rooms, and — yes — that swag bags are all properly stuffed. Python Tensorflow 教程 machine learning 用 Tensorflow 完成的流行机器学习算法安全带. 目的是引导大家轻松的进入 Tensorflow. 必然的,都有 ipynb 版本, 可以下载到本地交互. Jaspy – 用 JS 实现的 Python VM Jaspy 是用 JS 完全从头完成的 Python VM. 支持多线程,并内置调试器可以远程调试, 并提供灵活的预处理架构. 速度并不是项目的主要目标. 旨在探索客户端 web 编程的全新可能性. (是也乎: 来自仙书 “500 Lines or Less | A Python Interpreter Written in Python” 中的案例 ) 海盗用 Flask, 海军用 Django · WakaTime django, flask 如果想测试/验证想法或是新产品. 就必须选择一个网络协议桟来构建. 对于 Pythonista Flask 和 Django 是两个最流行的 web 应用框架. 笔者的经验是选对了幸福一生! 为此专门创建了对比表格来帮助大家决策. (是也乎: 同时发布了决策桟,回答几个关键问题后自动给出最佳选择! Django vs Flask Worksheet · WakaTime ) EuroPython 2016: 日程发布 pycon 非常高兴的宣布 EuroPython 2016 将在 Bilbao 举行! 包含 180+ 分享, 150+ 讲者, 一天研讨, 5天大会/培训/主题分享/闪电演讲 以及 开方空间. 然后是2天的 sprints. EuroPython will be one of the most exciting and vibrant Python events this year. Susi 在哪儿? 空降猩猩追踪器 Python + React.js 一年前,折腾无人机时,提交了以下问题: 是否能用无人机在婆罗洲丛林上自动搜索猩猩身上的标签? 面对几千公顿的热带雨林,你需要追踪越来越多的猩猩. 怎么办!? SnipLime sublime 为 Sublime Text 收集的各种设计模式/惯用/片段. LRU 字典 (Python) code snippet 简单的 LRU 字典实现, by maximum capacity and by maximum time not being used. Django Cheat Sheet (Templateless) django 专注 Django 的 RESTful 应用. 包含了常用命令,配置,视图(即 控制器),模型, 如何通过 Django 查询信息. 免费在 Openshift 部署 Django 应用 django 是的免费! (是也乎: 不过,是否存在,不保证… ) 采访 Justin Seitz interview 灰帽子和黑帽子 Python 的作者! Justin is the principal consultant for Dark River Systems Inc. where he spends his time blogging, and training open source intelligence techniques using Python. He is the author of two books Gray Hat Python and Black Hat Python. calendar — 和日期工作 — 每月一模块系列 The calendar module implements classes for working with dates to manage year/month/week oriented values. 用 Python 创建 slack bot - part 1 bot 第一部分, 创建机器人来发送和接收简单的信息. 有很多现成可用的模块, 比如 python-rtmbot / slackbot, 不过,先使用基本的官方 API. 新书 ~ New Books ...