蠎加载 62

原文: Import Python Weekly Newsletter - Issue No 62 该读 ~ 文章, Blog, 教程… PEP 8: Python 代码风格指南 (美化版) PEP Kenneth Reitz 为人类撰写, 行之有效的 PEP 8 说明. 在 Python 中导入 Docker 容器 docker “我们创建了 sidomo - 简化 Docker Module* 这样就能在任意 Linux 环境中运行写好的应用, 且不用折腾其它多余的东西” ~异常推荐学习,非常赞! pyswagger ~ Python 工具, 读取 Swagger 格式的 JSON (开放接口), 生成 HTTP 请求方法. Django 1.9’s 为 Postgres 的改进 django Django 1.9 , 是包含了巨大改进的最新版本. 能管理以及并行进行测试运行, 且图形化输出, 等等非常多的新特性! EuroPython 2016: 早鸟票已经发售 马上将开放 早鸟票 了, 目测前100张在1小时以内已经飞走, 另外只有300张了, 想抢到,早动手. 在 早鸟票售磬后,才是普通票. NBA 球员的性能分组 [xpost from /r/NBA] In basketball, we typically talk about 5 positions: point guard, shooting guard, small forward, power forward, and center. Based on this, one might expect NBA players to fall into 5 distinct groups- Point guards perform similar to other point guards, shooting guards perform similar to other shooting guards, etc. Is this the case? Do NBA players fall neatly into position groups? Python 中字典合并的惯用方法 django 可能我们都折腾过合并字典,有很多方法, 有的慢有的丑,总之要很多行代码. 对比这些方法,来讨论什么是最 Pythonic 的. Graham Dumpleton: 提高 Python Web 部署的用户体验. 又一次作者错失 PyCon 演讲机会, 内容就是这篇文章. 虽然没有被接受,但是,最近折腾的 Py web 应用部署, 感觉实在值得分享,准备用系列文章来阐述… Django 对 Flask: 当 Django 变成错误选择时 flask 有些项目中,我们总是被迫从 Django 迁移到微框架中. 通常是用户期待个性的东西 (加入 ZeroMQ 什么的) 或是项目目标和 Django 的架构相左时. 扩展 Django: Breaking out not breaking up — Crafting Cronitor — Medium django We launched Cronitor in June 2014 after a few weeks of hacking on an MVP. With an eye on shipping quickly we built everything within Django, including our crucial ping tracking endpoints, and it was a valuable force multiplier. The first version of our tracker was a normal view function that persisted directly to the database. Keep it simple, right? 不停机部署 Django — Medium 当 healthchecks.io 开始承受每秒1个以上请求时, 对一个健康监察平台而言, 重启就意味着可能丢失关键事件日志了, 所以,如何部署新代码而不停机就越来越要命了.. 新书 ~ New Books ...

2016-02-26 · 2 min · 958 words · ZoomQuiet

蠎加载 61

原文: Import Python Weekly Newsletter - Issue No 61 该读 ~ 文章, Blog, 教程… 和 Ned Batchelder 聊 Coverage.py - Interview Interview podcast 这期采访的是 Ned Batchelder . 大家都知道 Coverage.py 非常重要, 很多人在讨论如何进行覆盖测试. 那就听听作者的经验呗. Zappa 发布- 无服务器的 Python 应用 - Gun.io Zappa 的第一个可用版本发布了 基于 AWS Lambda 及其接口的 “无服务器” Py 应用. Zappa 能自动处理配置和部署, 现在用一个命令就可以部署有无限扩展能力的应用到云. 相比传统 Web 服务器,成本小很多! (是也乎: 但是,平台也有了依赖性… 只能相信, AWS Lambda 是未来应用服务的主要接口形式了. ) PyCon 2016 演讲日程发布 pycon 组委会一直在努力, 在提交窗口关闭前3周,终于发布了当前版本. Portland, Oregon 的 PyCon 2016 ! 最后一分钟完成幻灯: 撰写 PyCon 演讲的8步 pycon PyCon 接受了作者议题:“创作优秀的编程 blog”. 如果你的议题也接受了,先恭喜了! 现在立即规划时间/激励/大纲/排练, 试讲,持续改进,推迟幻灯提交! 为了最终的精彩! PyCon要来了,来学习下写幻灯的技巧吧 Django Rest 框架和 React.js django 大家应该都同意 React 和 Django Rest 框架都非常赞! 但是如何组合起来发布真正可用的应用?! 特别是不怎么清楚 webpack, npm, 和 babel. 那么这里介绍如何令 DRF(Django REST 框架)和 React 结合起来! Python 101 发布截屏 其实已经完成了一个多月了. 现在终于上架发售了. 这里发布此书全部 44 章的截屏. 免费 Webinar: Pandas 和 Matplotlib webcast 长达一小时的免费研讨会. 这次我们探讨日益流行的数据科学工具, 即 Pandas 和 Matplotlib. 如何读取数据到 Pandas 中? 并操纵以及绘制图表?! 这里聚集大量实例,并进行深入 Q&A. Docker - 全桟 Python docker Docker 是开源基础架构管理平台,用来运行和部署软件. 可以将操作系统以及依赖环境集成在一Ω起打包. 长远来看,可以轻松管理容器中任何类型的服务, 无论是否在 AWS/GCP 或是 Linode/Rackspace 等等基础抽象平台上. 2016六月 20th-26th Python testing sprint testing Python 核心群准备进行历史上最大的 sprint, 在德国弗莱堡的黑森林小镇. 截至16年2月. 已经从 Indiegogo 获得了资金, 以支持费用,相关页面也提及了一些初步的主题. 活动链接是 https://www.indiegogo.com/projects/python-testing-sprint-mid-2016#/ 你的 Django 故事: Meet Aisha Bello interview Aisha Bello is a current student at Cardiff Metropolitan University, where she’s finishing up a MSc in Information Technology. Her final project is centered on open source data mining technologies for small and medium-sized hospitality organizations. Aisha co-organized and coached at Django Girls Windhoek in January 2016, and is also organizing a Django Girls workshop in Lagos, Nigeria in February 2016. PEP 513 — A Platform Tag for Portable Linux Built Distributions PEP This PEP proposes the creation of a new platform tag for Python package built distributions, such as wheels, called manylinux1_{x86_64,i686} with external dependencies limited to a standardized, restricted subset of the Linux kernel and core userspace ABI. It proposes that PyPI support uploading and distributing wheels with this platform tag, and that pip support downloading and installing these packages on compatible platforms. 播客.init: SymPy 和 Aaron Meurer podcast 在寻找一种开源的 Mathematica 或 MatLab 替代品? 没有比 SymPy 更加合适的了! 这是种精心打造的,易于使用的计算机代数系统 (CAS) 这期节目中和项目创建人 Aaron Meurer 聊 SymPy 的功能,你甚至于能用它来说话! Why Python ? core python 为什么你推荐 Python !? 这是作者安利时被同事问到的问题. 也是常见问题, 值得用事实认真回答一下. 登记模式 | entrys | eliotberriot | Stream django 在很多程序中笔者都用这种模式来解决问题. 但是发觉没有人讨论过. 所以,认真总结一下! luthor - 又一简洁的库来折腾 XML Luthor 使用了所有来自 pholcidae 的实效技巧来处理 XML , 使其前所未有的简洁! Luthor 使用 lxml 的迭代解析机制来解析任意大小的 XML (是也乎: Py3 专用! ) 新书 ~ New Books ...

2016-02-14 · 4 min · 1608 words · ZoomQuiet

蠎加载 60

原文: Import Python Weekly Newsletter - Issue No 60 该读 ~ 文章, Blog, 教程… 播客访问 Jupyter 和 IPython 项目 podcast 目下 Python 中增长最快的领域之一就是科学计算. 其中有几个关键包: NumPy / SciPy / 及其相关组件, 都集成在 IPython(更名为 Jupyter) 中,并能方便的可视化! 44期节目探讨了这方面的发展. 测试 Django Views testing 移动和 SPA(单页应用)已经是 web 开发中 API 为中心的主要命题了. 这对于以往返回 html 页面的Django 应用而言, 测试这种 view 是困难的, 因为 REST 语义和 HTTP 状态码是关联的… Your Django Story: Meet Safia Abdalla interview Safia Abdalla is an energetic software engineer with an interest in data science for social good and delicious coffee. She is the organizer of PyData Chicago and the founder of dsfa, a consulting company providing data science services to small and medium local businesses. Safia is also a frequent conference speaker and open-source contributor who’s passionate about helping others to reach their maximum potential. How to no-mincss links with django-pipeline 如题 :) 官方公告 - IPython 4.1.0 放出! new release 前几天释放后,没有收到任何有效 bug 反馈, 所以,嗯哼! IPython 4.1.0 is now out ! 实例理解 Python 中的 JSON Web 令牌 文章解析了如何使用 JSON Web Token 来保护我们的 REST 接口. JSON 网络令牌是 RFC 7519 提出的双向安全方案, JWT 已获得关键厂商的支持,包含 Firebase, Google, Microsoft, 以及 Zendesk. 高可扩展 - Cassandra 和 Gevent 实现 Python 的异步 concurrency Python 2.7 中的线程/GIL/异步锁等等导致异步代码很折腾. 好在艰难岁月中还是有靠谱方案的; 比如 IronPython 和 Jython 就没有 GIL 以及相关问题. 当然, 还有专用的 Stackless Python, 通过微进程管理,避免操作重量级的操作系统进程,以及其它功能. django-ses/django-ses: Django 实现的 Amazon Simple Email Service 后端 aws Django-SES 是种 drop-in 邮件后台, 不用传统的 SMTP 服务, 而是基于很赞的 Amazon Simple Email Service (SES) YPlan/django-ratelimit: 为 Django 提供基于缓存的限速 django Django Ratelimit 提供修饰器来声明限制, 可基于 IP 或请求, 无论 GET/POST 方法. Smartyparse: 面向对象的动态二进制打包和解包 SmartyParse 是面向 3.3 以上 Python 的二进制 打包/解包(又名建筑/解析)格式库. 如果需要定义二进制格式 (.tar, .bmp, 字节式网络数据包..) 或是开发专用格式, SmartyParse 能直接从 Python 对象转换成拟定格式. 操作对象是 Construct 新书 ~ New Books ...

2016-02-05 · 3 min · 1378 words · ZoomQuiet

蠎加载 59

原文: Import Python Weekly Newsletter - Issue No 59 该读 ~ 文章, Blog, 教程… 在 minecraft 中学习编程 book review Minecraft(我的世界) 是最著名的沙箱游戏. 用户通过接口在3D 世界中探索/创造立方体为基础的世界. 当然的有 Python 接口, 可以可以编程来创建/控制/使用这一无限世界. 链接是图书信息… Python 测试/图书/播客 book review Harry Percival 的好书,有关测试驱动开发在Python 编程实践中. 如果之前注意过此书信息, 那么这是另外一个渠道来感受其魅力. 用 Marathon API 部署 Py3 应用到 Apache Mesos 集群 工作中,笔者一直在使用 Apache Mesos 部署各种应用, 包含 go/python/lua 等等. 同时也在使用 Chronos 和 Marathon. 文章中展示如何对 Marathon(通过 Docker)管理的本地 Mesos 集群 进行简单的应用部署. caktus/margarita: 很赞的 Django 部署相关 Salt states 脚本集合. 仓库中收集了各种基于 SaltStack 的部署/监控模块. 专门为 Caktus Django 项目创建. Your Django Story: Meet Katie Bell interview Katie Bell is a developer at Grok Learning, where she’s been doing a combination of things since joining the team in March 2015. She builds new components of the learning platform and also writes course content. Grok Learning provides programming and web development courses to be used in schools. Before Katie moved back to Sydney to join Grok, she was a Site Reliability Engineer at Google in Switzerland, working on storage systems. meza: 处理表格( tabular )数据的 Python 工具集 meza 是个 Python 库, 专门读取和处理表格数据 ; 函式型接口,擅长读写大文件, 并支持十数种文件格式. PyDelhi Conference pycon Py德里大会 又一个技术大会, 由 PyDelhi 社区创办,每年一次,关注 Python 技术的应用和开发. 今年是第一届,期待全球 Pythoneer 来参加. Walrus 实例, 又一种轻型 Redis 工具集 redis walrus 是作者结合 Python 和 Redis 工作经验的作品. 包含大量 Redist 原语水平的 Python 接口以及功能, 文章中展示各种功能,并演示在项目中使用的情景. 基于 Python 的缩址 flask Py URL Shortener 是供 Flask 应用中对 URL 缩址以及重定向支持. PEP 513 - 便携式 Linux 构建发布的标签平台 PEP 提案描述了又一种 Python 包构建发布的标签平台, 类似 wheels, 调用 manylinux1_{x86_64,i386} 外部依赖限制, 来利用 Linux 内核限制在核心用户空间ABI. 建议 PyPI 支持在标签平台中上传以及发布 wheel 包, 以便在所有支持平台上通过 pip 完成下载和安装. django-scribbler django django-scribbler 是片段管理应用,可以包含在 Django 发布的web 网站中 http://readthedocs.org/docs/django-scribbler/ 新书 ~ New Books … ...

2016-01-30 · 3 min · 1210 words · ZoomQuiet