蠎加载 81

原文: Import Python Weekly Newsletter - Issue No 81 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… AWS 无服务微框架 Python 版本预览 aws Serverless computing is one of the most talked-about subjects among AWS customers. The AWS serverless offerings, AWS Lambda and Amazon API Gateway, make it possible for developers to create and run API applications with built-in, virtually unlimited scalability without managing any servers. Today the AWS Developer Tools team is excited to announce the preview of the Python Serverless Microframework for AWS. You can read Martin Fowler talking about the benefits of Serverless architecture http://martinfowler.com/articles/serverless.html#benefits (是也乎: Google 推出了 firebase, AWS 当然要加强 Lambda 的概念. 果断给出了更加易用的 无服务微框架 ) Python 的逆向调试 pypy The PyPy team is pleased to give you “RevPDB”, a reverse-debugger similar to rr but for Python. (是也乎: PyPy 团队赛高 ) Facebook 笑话机械人的 django 教程 chatbots I have decided to try to develop a chat bot which does only one thing. Send a random joke like the below one without an image irrespective of what the user types 书评: “探挖两勺 Django: Django 1.8 的最佳实践” book review The book can be used as a reference of best practices and a cover-to-cover guide to best practices. I’ve done both and found it to be enjoyable, accessible, and educational when read cover-to-cover and a valuable reference when setting up a new Django project or doing general Django development. It covers a huge range of material. 再推 Spectrum - 独立日志服务器. Review Spectrum is a standalone logging server plus log viewer with filtering capabilities. It scales to multiple logging streams with endpoint being a file residing on filesystem, REST API endpoint, Syslog, UDPStream, WebSocketStream. 构建第一个 Django 应用 tutorial Decent tutorial to get people started with Python and Django. 用 Docker 构建异步 Py3 无服务应用 serverless I will show you a simple way to build a “serverless” application and test it via Docker. When I refer to “serverless” I’m referring to the idea that the application is a short lived app, does its job, stops – just like AWS Lambda. I will create two applications each in their own project folders: serverless-app and serverless-web The serverless-app piece is the actual “serverless” piece of this, the web app will run as long as we want. I just gave them similar names to make it easier to keep the projects named closely but different enough to know what does what. (是也乎: AWS 配套软文, 好在入华了, 可用,只是北京节点不一定有. ) djangobot: 通过 Channels 桥接 Slack 和 Django bot Djangobot is a bridge between Slack and a Channels-enabled Django app. Specifically, it is a protocol server that produces and consumes messages for channels-based apps. It is built atop autobahn and twisted. 可视化 Python 包间关系 pypi I extracted co-occurence of top 3500 python packages in github repos using the the github data on BigQuery. I implemented the visualization force layout in d3 via the velocity verlet integration. I also clustered the graph using algorithms from python-igraph and updated it to http://graphistry.com/. (是也乎: Why not 类型小工程,将 github 中能抓到的 3500 个 Py 包的关系绘制了出来! ) 用 Py 在 PNG 文件中当众隐藏有效数据 security How could I store files online, in plain sight, for free. Because who doesn’t like a good ‘ol game of hide and seek. But with files. On the internet. Hide files in plain sight. Allow them to be distributed via free public channels. E.g Twitter, Reddit, imgur. (是也乎: 公开的图床一样可以走秘密数据; 代码在: Don’t be a punk, punk 居然能不影响 MD5 ! ) 活动 ~ Upcoming Conference / User Group Meet ...

2016-07-15 · 3 min · 1302 words · ZoomQuiet

蠎加载 80

原文: Import Python Weekly Newsletter - Issue No 80 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Spectrum 使用 - Python 构建的独立日志服务. Review on Import Python Blog. importpython Spectrum is to logging what sqlite3 is to databases. It’s a standalone logging server plus log viewer with filtering capabilities. It scales to multiple logging streams with endpoint being a file residing on filesystem, REST API endpoint, Syslog, UDPStream, WebSocketStream. This blogpost shows how to use spectrum and wraps up with pros and cons. Have a read. (是也乎: 能接入当前所有主要日志后端的独立服务, 内置过滤器. ) Django 开发者快讯 - Djangoweekly.com Launched. django Djangoweekly.com is a weekly newsletter dedicated to Django. The first issue is already out. Have a look. Python 为毛慢 ? benchmark In case you missed it, Marius recently wrote a post on the Pyston blog about our baseline JIT tier. Our baseline JIT sits between our interpreter tier and our LLVM JIT tier, providing better speed than the interpreter tier but lower startup overhead than the LLVM tier. There’s been some discussion over on Hacker News, and the discussion turned to a commonly mentioned question: if LuaJIT can have a fast interpreter, why can’t we use their ideas and make Python fast? This is related to a number of other questions, such as “why can’t Python be as fast as JavaScript or Lua”, or “why don’t you just run Python on a preexisting VM such as the JVM or the CLR”. Since these questions are pretty common I thought I’d try to write a blog post about it. (是也乎: 又一篇从 JIT 环境角度来分析的文章. 问题是, 明白了, 并不能改变 Py 平台的现状,,, ) 在 Py 中构建自己的 Shell core python I’m curious to know how a shell (like bash, csh, etc.) works internally. So, I implemented one called yosh (Your Own SHell) in Python to answer my own curiosity. The concept I explain in this article can be applied to other languages as well. Note from curator - After graduating from college I interviewed with Yahoo and they had asked me to create one during interview. It’s a good exercise for any computer science student/professional. (是也乎: yosh 作者的心灵自述, 推荐所有计算机专业的学生都来造一把好轮子. ) MongoFrames - 轻快而不招摇的 MongoDB ODM mongodb A five minute walk-through of MongoFrames’ key features and how to start using them. 科学 Python 介绍– Pandas pandas Pandas allows us to deal with data in a way that us humans can understand it; with labelled columns and indexes. It allows us to effortlessly import data from files such as csvs, allows us to quickly apply complex transformations and filters to our data and much more. It’s absolutely brilliant. This is the third post in this series on scientific Python and take a look at Pandas. Don’t forget to check out the other posts if you haven’t yet! (是也乎: 数据科学领域 Python 是一重镇, Pandas 则是其中无法忽视的不将 ) 教程: 用 Docker Swarm 复用部署 Py3 应用 docker Today, I want to show you how to use Docker Swarm and then deploy a simple Python Falcon REST app. Although I won’t be using dockerrun or the serverless capabilities I think you might be surprised how easy it is to deploy (replicated) Python applications (actually any sort of application: Java, Go, etc.) with Docker Swarm. (是也乎: 一个具体的 Falcon REST 应用, 通过 Docker 如何快速部署运行, 其实相同的操作可以用以部署 JAVA/Go/… 等等任何语言应用系统 ) Allen Downey - 让 贝叶斯 统计更加简单 - PyCon 2016 statistics An introduction to Bayesian statistics using Python. Bayesian statistics are usually presented mathematically, but many of the ideas are easier to understand computationally. People who know Python can get started quickly and use Bayesian analysis to solve real problems. This tutorial is based on material and case studies from Think Bayes (O’Reilly Media). Say What ? api This script listens to meetings I’m supposed to be paying attention to and pings me on hipchat when my name is mentioned. It sends me a transcript of what was said in the minute before my name was mentioned and some time after. It also plays an audio file out loud 15 seconds after my name was mentioned which is a recording of me saying, “Sorry, I didn’t realize my mic was on mute there.” Uses IBM’s Speech to Text Watson API for the audio-to-text. (是也乎: 基于 IBM Watson 的接口,完成的 hipchat 插件, 可以监听所有关于自己的语音事件. ) Pendulum - Python datetimes made easy Handle datetimes, timedeltas and timezones in a more natural fashion. Pendulum provides a cleaner and more easy to use API while still relying on the standard library. So it’s still datetime but better. (是也乎: 又一个人性化的时间/日期处理模块 ) EuroPython 2016: 最后一天可以获得定款门票了 pycon We will be switching to the on-desk rates for tickets tomorrow, so today is your last chance to get tickets at the regular rate, which is about 30% less than the on-desk rate. The Python/Django 社区超赞! ? community Experience with the Djangogirls community. 活动 ~ Upcoming Conference / User Group Meet ...

2016-07-08 · 3 min · 1350 words · ZoomQuiet

蠎加载 79

原文: Import Python Weekly Newsletter - Issue No 79 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 2016 年启动的10大最美 Django 项目 django One of the cornerstones of Django is that there’s a solid core that others can extend and share their extensions. So it’s good to celebrate the best of those. Here’s my list derived from this query on Github for projects started this year. Not sure about top but useful projects that one can use in personal or work projects/products. Have a look. (是也乎: 各种轮子,,, ) Python 编程幽默 humour Conversation with Tech Support. (是也乎: 关乎技术支持 ) Django 生产力增压 django These design patterns also solidified a mentality within our team that there is an internal standard of handling models and views. We can extend our base classes to tackle any business requirement. Our codebase is constantly evolving, both in new features and how we model the world. Django has proven to be a valuable tool that lets us aim big and iterate often. Some might call this an anti-pattern nevertheless a novel approach. (是也乎: 模式与反模式 ) 结合 Python Celery + RabbitMQ 分发任务 celery In this tutorial, we are going to have an introduction to basic concepts of Celery with RabbitMQ and then set up Celery for a small demo project. At the end of this tutorial, you will be able to setup a Celery web console monitoring your tasks. Python 为孩纸的项目 - 书评 book review That’s it :) … Go read the review. (是也乎: 亮点都在评论树中了… ) Python 2.7.12 发布 release The Python 2.7.x series has a new bugfix release, Python 2.7.12, available for download. Djangorecipe: 简单的测试覆盖率报告 django Code coverage reports help you see which parts of your code are still untested. Yes, it doesn’t say anything about the quality of your tests, but at the least it tells you which parts of your code have absolute the worst kind of tests: those that are absent :-) 你的 Django 故事: 遇见 Anna Makarudze interview Anna Makarudze lives in Harare, Zimbabwe, and was born and raised in Masvingo. She is an an ICT consultant as well as a Python/Django developer. anymail/django-anymail: Django的邮件后端以及 webhooks 接入 Mailgun, Postmark, SendGrid, SparkPost 等等 django Anymail integrates several transactional email service providers (ESPs) into Django, with a consistent API that lets you use ESP-added features without locking your code to a particular ESP. It currently fully supports Mailgun, Postmark, SendGrid, and SparkPost, and has limited support for Mandrill. 专注挖掘Twitter数据的七大系列文章 twitter Note these articles were published a year back, currently trending on social media. Curating it because it’s pretty interesting and fun. 用 Python 探索 NFL Draft sport analysis After reading a couple of posts by Michael Lopez about the NFL draft, I decided to recreate some of his analysis using Python (instead of R). Post being - https://statsbylopez.com/2016/05/02/the-nfl-draft-where-we-stand-in-2016/ (是也乎: 没用 R ;-) ) 文本分析,马尔可夫链和圣经引用生成器. machine learning Text analysis and patterns are very interesting topics for me. I think every author has their own unique, distinctive pattern. The way they build sentences and phrases, not only in terms of tone, but the subconscious choices of word pairings and sequences. How their sentences begin and end, and what they put in the middle; they leave their cerebral fingerprints on paper, blog posts or even FaceBook status updates. I think it is a very achievable, having enough base data, to identify the author Note - It’s a trivial example but a good starting point for someone looking to learn/explore Markov chains. (是也乎: ) 活动 ~ Upcoming Conference / User Group Meet ...

2016-07-02 · 3 min · 1021 words · ZoomQuiet

蠎加载 78

原文: Import Python Weekly Newsletter - Issue No 78 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Instagram 的 Python 服务效能提高 performance Instagram currently features the world’s largest deployment of the Django web framework, which is written entirely in Python. We initially chose to use Python because of its reputation for simplicity and practicality, which aligns well with our philosophy of “do the simple thing first.” But simplicity can come with a tradeoff: efficiency. Instagram has doubled in size over the last two years and recently crossed 500 million users (是也乎: Instagram 已经是世界上最大的 Django 功能集群, 用户应该也是最多 5亿了.. ) Python wats code snippet A “wat” is what I call a snippet of code that demonstrates a counterintuitive edge case of a programming language. (The name comes from this excellent talk by Gary Bernhardt.) If you’re not familiar with the language, you might conclude that it’s poorly designed when you see a wat. Often, more context about the language design will make the wat seem reasonable, or at least justified. (是也乎: 通过一段反直觉的代码, 来展示 Py 的伟大 ) Coconut - 简单,优雅的 Pythonic 函式编程 Coconut is a simple, elegant, Pythonic functional programming language that compiles to Python. Since all valid Python is valid Coconut, joining the over 30,000 people already using Coconut will only extend and enhance what you’re already capable of in Python. (是也乎: 自从世界从了 冯氏 体系后, 函式派从来就没有停止过也怀念. 又一个在 Py 身体上进行的 Lisp 还魂术… ) 在 Statsd 和 Consul 支持下从 Docker 中运行 Py3 的 REST 应用 REST Today, I’m going to go over setting up a very simple way to spin up a Python Falcon REST service that reports to Statsd as well as registering as a service with Consul along with setting up health checks. I’ve borrowed some ideas/code from several places and changed as needed. (是也乎: 基于 Falcon 的 Docker 运行时镜像的建立实战 ) Pigar 梦幻般的工具, 可以用来生成你的 Python 项目, 以及其它. (是也乎: 终于出现 pip 的二级工具了, 配合 pyenv 应该真正笑醒… 等等! 还是国人作品, 点赞! ) Django 1.10 beta 1 发布 django, release As part of the Django 1.10 release process, today we’ve released Django 1.10 beta 1, a preview/testing package that represents the second stage in the 1.10 release cycle and an opportunity for you to try out the changes coming in Django 1.10. 错过了 pycon, 最应该看什么来补 ? - Reddit Discussion video Discussion on Reddit on Pycon talk recommendations. 最合算的高可用 Django 部署 - Roland van Laar django Roland build an educational website that needed to be high available on a tight budget. Nice write up on how to achieve it. BeginnersGuide/NonProgrammers - Python Wiki resource If you’ve never programmed before, the tutorials on this page are recommended for you; they don’t assume that you have previous experience. If you have programming experience, also check out the BeginnersGuide/Programmers page. This section is hosted on the Python website and is well curated and maintained. 80 Python 课程的 策划名单 resource Learn Python online – A curated list of courses on Python 如何在 Ubuntu 16.04 的 Apache 用 mod_wsgi 发布 Django 服务? - DigitalOcean installation In this guide, we will demonstrate how to install and configure Django in a Python virtual environment. We’ll then set up Apache in front of our application so that it can handle client requests directly before passing requests that require application logic to the Django app. We will do this using the mod_wsgi Apache module that can communicate with Django over the WSGI interface specification. (是也乎: 虽然 OC 的文档一向非常的有爱, 但是, mod_wsgi 上古神器,还有必要用嘛!? ) 行者访问 Katharine Jarmul interview This interview with Pythonista Katharine Jarmul focuses on data work. A couple of events provide context. Katharine is presenting a talk titled “How Machine Learning Changed Sentiment Analysis, or I Hate You, Computer ????” at this year’s Sentiment Analysis Symposium, July 12, 2016 in New York, following which she’s offering a class, Learn Big Data Wrangling with Python, July 13-14, also in New York. (是也乎: 是时候通过 Py 的大数据分析来自行评估家庭爱情残余量了… ) Python 中的简单类型检验 code snippet Code snippet to check types. 活动 ~ Upcoming Conference / User Group Meet ...

2016-06-24 · 4 min · 1525 words · ZoomQuiet