蠎加载 93

原文: Import Python Weekly Newsletter - Issue No 93 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 为 Python 开发者配置 Sublime Text sublime We have been sharing Daniel’s articles and videos from this youtube channel dedicated to Python and Sublime for a while now https://www.youtube.com/channel/UCI0vQvr9aFn27yR6Ej6n5UA . Today Daniel published his book on Sublime Text for Python Developers. Have a look if you use sublime text. Here is a 30% discount for all ImportPython Subscribers. (是也乎: 价值 $29 的课程 ) 用 Flask 和 SQLAlchemy 实现 “Soft Delete” 模式 flask, SQLAlchemy You can find lots of reasons to never delete records from your database. The Soft Delete pattern is one of the available options to implement deletions without actually deleting the data. It does it by adding an extra column to your database table(s) that keeps track of the deleted state of each of its rows. This sounds straightforward to implement, and strictly speaking it is, but the complications that derive from the use of soft deletes are far from trivial. In this article I will discuss some of these issues and how I avoid them in Flask and SQLAlchemy based applications. (是也乎: 简单的说, 手写 SQL 可以轻易作的事儿,在 ORM 世界中,嗯哼… ) 通过 Python 的 Data Visualization Landscape 进行动态游历(包含 ggplot 以及 Altair) data visualization Comprehensive listing of all data visualization packages with small codesnippets. 在 Django 折腾并发数据的正确姿势 django Guilherme Caminha explores the utility of using on_commit hook available from 1.9 onwards in sequencing part of a time consuming task in django view and rest offloaded to an async process. 思考一下协程 async-io Lukasz Langa uses asyncio source code to explain the event loop, blocking calls, coroutines, tasks, futures, thread pool executors, and process pool executors. (是也乎: 这是 go 的核心竞争力,其实 py 也早已有了对应的机制,只是…. ) 自动为 click 应用生成 man 说明 opensource project Click is my go to Python package for creating command line applications. click-man will generate one man page per command of your click CLI application specified in console_scripts in your setup.py. (是也乎: http://click.pocoo.org/ 对的只出精品的 pocoo 团队的 CLI 工具包 ) 当周PyDev: Bryan Van de Ven interview Bryan is a core developer of the Bokeh project, which is a visualization package for Python. He has also helped with the development of Anaconda. (是也乎: 名字有 van 的, 都是贵族后代, 同时在 Anaconda 和 数据可视化领域都有深入的强人… ) Flashlight 是分析及解决四旋翼控制问题的轻量级 Python 库. Flashlight enables you to easily solve for minimum snap trajectories that go through a sequence of waypoints, compute the required control forces along trajectories, execute the trajectories in a physics simulator, and visualize the simulation results. (是也乎: 当然,不是 DJI 开源的 ) Church opensource project Church is a library to generate fake data. It’s very useful when you need to bootstrap your database. (是也乎: 专注自动生成徦数据的库,再也不用折腾 SQL 了… ) 5 music things and Python Raspberry and Python projects/scripts. (是也乎: ) validr A simple,fast,extensible python library for data validation. (是也乎: 简单,快速,可拓展的数据校验库; 国人作品, 仅支持 Py 3.3+; 使用 tox 管理 pytest 测试案例… 私人官网果然也关注了 “新人到底需要什么” 长线讨论: Python入门指北 ) 活动 ~ Upcoming Conference / User Group Meet Santa Cruz Python Meetup Python Brasil [12] PyCon Ireland 2016 PyCon Canada 2016 PyData Cologne 2016 GeoPython 2017 项目 ~ 包/模块/库/片段… ...

2016-10-08 · 3 min · 1099 words · ZoomQuiet

[4/N] 论得趣

10.1 大家都作了什么?

2016-10-08 · 2 min · 579 words · ZoomQuiet

[3/N] 论得趣

[3/N] 论得趣 嗯哼,先告个徦~明天开始在领导的领导下和领导们过10.1上GHIBLI博物馆参拜去也; 所以,无法保证按时吐糟了… “得趣”..原先设想是为在校有为青年们写点不象鳮汤的髙汤;但没成想,写着写着象论文了;-) 所以,先收一哈,捋捋思路,预吿一下整体思路,再信笔由缰看能蹓到哪儿是哪儿: ...

2016-09-30 · 2 min · 638 words · ZoomQuiet

蠎加载 92

原文: Import Python Weekly Newsletter - Issue No 9 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 别名命令配合 virtualenv 玩的更好 Over the years, I’ve come up with my own Python aliases that play nice with virtual environments. For this post, I tried to stay as generic as possible such that any alias here can be used by every Pythonista. (是也乎: 使用 bash 中的配置别名也一样 ) 保持 Django 应用性能的详细记录. django, performance “Keep detailed records of the performance of your Django code.”. django-perf-rec is like Django’s assertNumQueries on steroids. It lets you track the individual queries and cache operations that occur in your code. This blog post explains the workings of this project https://tech.yplanapp.com/2016/09/26/introducing-django-perf-rec/ . 上周未工程师的实用 ML 分享 #pyconuk machine learning Last weekend I had the pleasure of introducing Machine Learning for Engineers (a practical walk-through, no maths) at PyConUK 2016 ( Video link on page ). My talk covered a practical guide to a 2 class classification challenge (Kaggle’s Titanic) with scikit-learn, backed by a longer Jupyter Notebook (github) and further backed by Ezzeri’s 2 hour tutorial from PyConUK 2014. Python 中的 Mocks 和 Monkeypatching testing This tutorial will help you understand why mocking is important, and show you how to mock in Python with Mock and Pytest monkeypatch. Abu Ashraf Masnun: 介绍 Django Channels Yet another introduction to Django Channels. This one is a lot more clear and step by step tutorial. If you still don’t know what Django channels is / how to get started, read this. (是也乎: 又一篇 Django Channels 的介绍, 可想是个多么复杂难言的功能点 ) Python Mocks: 温柔的介绍 - 部分1和2 testing, mock In this series of posts I am going to review the Python mock library and exemplify its use. I will not cover everything you may do with mock, obviously, but hopefully I’ll give you the information you need to start using this powerful library. Note it’s a two part series as of now, here is the second part’s url http://blog.thedigitalcatonline.com/blog/2016/09/27/python-mocks-a-gentle-introduction-part-2/#.V-ysf9HhXQo Decorators: 函式的功能 - 周末和 Trey Hunner 聊 Python webcast, video Decorators are one of those features in Python that people like to talk about. Why? Because they’re different. Because they’re a little weird. Because they’re a little mind-bending. Let’s talk about decorators: how do you make them and when should you use them? 简洁的图表和数据集 REST APIs charts The Plotly V2 API suite is a simple alternative to the Google Charts API. Make a request to a Plotly URL and get a link to a dataset or D3.js chart. Python code snippet are included on the page. (是也乎: Plot.ly 如日中天时,高调开源后,依然猛烈… ) Python 代码复审: Unplugged – 第 2 集 - Daniel Bader code review Daniel is doing a series of code review sessions with Python developers. Have a look at the accompanied video where he gives his opinion on a open source project by Milton. Python 的 C 面 c binding CPython, the primary implementation of Python used by millions, is written in C. Python core developers embraced and exposed Python’s strong C roots, taking a traditional tack on portability, contrasting with the “write once, debug everywhere” approach popularized elsewhere. The community followed suit with the core developers, developing several methods for linking to C. This has given us a lot of choices for interfacing with c, let us look at them. (是也乎: 又是 paypal 团队的分享, 看来 Py 在 paypal 家折腾的不轻… ) Django 技巧 #15 基于 Mixins 使用 Class-Based Views django General rules to use mixins to compose your own view classes with code examples. 如何设置 tab completion 来用 django-admin.py 和 manage.py ? django In this short article Mike shows us how to set auto complete for django-admin.py / manage.py arguments. Specially helpful if you have tons of management commands. M$ 中的 Python 工程 core python That’s the opening paragraph from the Python Insider blog post discussing the 2016 Python core sprint that recently took place. In the case of Microsoft’s participation in the sprint, both Steve Dower and I (Brett Cannon) were invited to participate (which meant Microsoft had one of the largest company representations at the sprint). Between the two of us we spent the week completing work on four of our own PEPs for Python 3.6: Adding a file system path protocol (PEP 519), Adding a frame evaluation API to CPython (PEP 523), Change Windows console encoding to UTF-8 (PEP 528), Change Windows filesystem encoding to UTF-8 (PEP 529). (是也乎: 发明了软件的 M$ ,好象没有哪个领域不掺合的 ) GitHub - beanbaginc/django: 非官方安全后端 Django: The Web framework for perfectionists with deadlines. security This is an unofficial fork of Django, which focuses entirely on backporting official, publicly-announced security fixes to Django 1.6.11. It does not contain any other bug fixes or features, and any branches other than security-backports/1.6.x are unlikely to be up-to-date. 活动 ~ Upcoming Conference / User Group Meet Reunión Python Valencia Sydney Python User Group PyConES - Almería Edmonton Python User Group IndyPy Monthly Meetup Python Brasil [12] Santa Cruz Python Meetup 项目 ~ 包/模块/库/片段… ...

2016-09-29 · 3 min · 1429 words · ZoomQuiet