pythonista-weekly : Pyw 495

欢迎阅读《pythonista周刊》第495期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-495 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): REST APIs with Flask and Python Build professional REST APIs with Python, Flask, Flask-RESTful, and Flask-SQLAlchemy 新闻 The PSF is hiring a Python Packaging Project Manager! Thanks to a two-year grant commitment from Bloomberg, our second 2021 Visionary Sponsor and a long term committed supporter of the Python ecosystem, The Python Software Foundation (PSF) is hiring a full-time project and community manager for the Python Packaging ecosystem, with a specific focus on the Python Package Index (PyPI). Unifying the CUDA Python Ecosystem 到目前为止,通过 Python 访问 CUDA 和 NVIDIA GPU 只能通过第三方软件来实现,例如 Numba、CuPy、Scikit-CUDA、RAPIDS、PyCUDA、PyTorch 或 TensorFlow 等等。每个人都在 CUDA API 和 Python 之间写了自己的互操作层。通过发布 CUDA Python,英伟达让这些平台提供商能够专注于自己的增值产品和服务。英伟达还希望降低其他 Python 开发者使用英伟达 GPU 的准入门槛。 ...

2021-04-16 · 5 min · 2330 words · ZoomQuiet

Issue 468

PyPy v7.3.4 发布ed 原文: PyCoder’s Weekly - Issue #468 210414 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210414 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 3 Types 在野外: 两种类型的系统的故事 INGKARAT RAK-AMMOUTKIY ET AL. This academic paper from researchers at the Rensselaer Polytechnic Institute and IBM TJ Watson Research Center examines the MyPy and PyType tools and explores how Python developers use type annotations. The researchers collected over 70,000 Python GitHub repositories and found that only 2,678 had Python 3-style type annotations, most of which fail to type-check with either of the two tools. The paper’s third section is quite accessible and has a lot of interesting analysis. 如何在 2021 年制作出色的 Python 程序包 ANTON ZHIYANOV The headache often associated with Python packaging is starting to fade away. Don’t believe me? Check out this step-by-step guide to creating and setting up a package repository. You’ll learn how to create a test package on TestPyPI, create a pyproject.toml file with flit, set-up linters and tests, GitHub Actions workflows, and more. (是也乎: 无论 2021 还是 1842, 只有实用的认真的好的模块, 才可能 Awsome. 当然, 前提是已经在自己和小伙伴的工程中大规模使用了. ) 为 Python 开始贡献力量: 您的第一步 REAL PYTHON In this quick introduction, you’ll see how you can take your first steps toward contributing to Python. You’ll discover various ways you can contribute and get to know some of the resources that will help you along the way. (是也乎: 普通人参与 Python 社区贡献, 最简易的还是从文档贡献开始, rST 是领先 Markdown 10多年的好东西, 值得使用. ) 用 pyenv 管理多个 Python 版本 REAL PYTHON course Learn how to install multiple Python versions and switch between them with ease, including project-specific virtual environments, with pyenv. (是也乎: 多版本多项目混合运行时环境管理, 真的没有 PyENV 这么自如的了. ) PyCharm 2021.1 来了! JETBRAINS.COM • Shared by Bartosz Zaczyński This release includes faster indexing, enhanced WSL 2 support, and an exciting new collaboration tool called Code With Me. PDFx V1.4.1 已经可用 METACHRIS.COM PDFx is a tool to extract text, links, references, and metadata from PDF files and URLs. This release doesn’t include many new features but is rather a full update of the package repository to current Python standards, including testing and coverage, linting and static checks, GitHub workflows, and more. Wing Python IDE 7.2.9 发布 WINGWARE.COM This release includes remote development for 64-bit Raspberry Pi, improved auto-closing of quotes, optimized change tracking, and more. (是也乎: 这么古老的 IDE 还在努力… 为了象 VSCode 们而努力…. ) PyPy v7.3.4 发布ed PYPY.ORG This release includes two interpreters supporting the syntaxes for Python 2.7 and 3.7. 探讨/吐糟 Discussions ...

2021-04-14 · 4 min · 1998 words · ZoomQuiet

pythonista-weekly : Pyw 494

欢迎阅读《pythonista周刊》第494期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-494 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 文章、教程与话题 Web programming with nothing but Python 与 Anvil 的 CEO Meredydd Luff 聊了聊,他认为为什么。Web 编程已经变得过于复杂。如果你想用 Python 构建一个 Web 应用,而不用担心数据库、服务器端代码或网页设计,是时候给 Anvil 一个机会了。 Python behind the scenes #10: how Python dictionaries work 在本篇文章的第一部分,我们将设计一个简单的全功能哈希表,讨论它的能力和局限性,并概述设计一个在实践中运行良好的哈希表的一般方法。在第二部分中,我们将关注 CPython 的具体实现,最后看看 Python 字典在背后是如何工作的。 Big Bay Dam Monitoring Dashboard 在这个系列中,我们将使用 Django 和第三方图表库构建一个水坝监测仪表盘。你将学习到:Django 认证系统的基础知识,如何将 Bokeh 与 Django 集成到交互式绘图中,如何使用 Leaflet 添加交互式地图,将 Django REST 框架集成到现有的 Django 项目中,以及如何将其整合到一起创建一个仪表盘。查看 Part 2, Part 3 and Part 4 C++ in Python the Easy Way! 你可能需要知道的一切,都是为了编写 Python 接口到 C++ 代码。 snopher 关于使用 ctypes 从 Python 调用 Go 的实用指南。 How to Write Unit Tests in Python, Part 2: Game of Life In this article I will introduce you to Conway’s Game of Life, an interesting simulation that plays animated patterns on a grid. You will learn about Test parametrization, Building test matrices, Basic mocking and Testing Python exceptions. Computer Vision and Embroidery 了解如何通过 Python 使用计算机视觉来识别绣花框图像中使用了哪些 DMC 线。 Errors as Values 从意外的运行时异常中解脱出来 从零开始 Pytthon 的区块链 学习如何 Python 从头开始构建一个简单的区块链,这样你就可以从更基础的层面了解它的工作原理。 Action Planning in Python 自动规划是人工智能技术的一个领域,用于确定如何将世界从初始状态转化为目标状态。本指南实现了经典规划的一种形式,我们将问题域表示为一组状态变量,这些状态变量通过采取的每一个行动进行修改。 Django 3.2 - News on compressed fixtures and fixtures compression The Django 3.2 version has new features related to compressed fixtures and fixtures compression. This article explores the topic and provides some sample benchmarks. Interoperable Python and SQL in Jupyter Notebooks 在 Pandas、Spark 和 Dask 的基础上使用 SQL。 癌症生存数据集的神经网络开发 在本教程中,你将发现如何为癌症生存二元分类数据集开发多层感知器神经网络模型。 The Weird Walrus 在这篇文章中,我们改变了。Python 语法,并允许它运行没有任何括号的 Assignment Expressions。 用Python进行嵌入式和物联网开发的基础知识 使用自动加载来加快IPython和Jupyter的工作速度 在不耗尽内存的情况下将SQL数据加载到Pandas中 ...

2021-04-09 · 4 min · 1819 words · ZoomQuiet

Issue 467

Django 3.2 发布ed 原文: PyCoder’s Weekly - Issue #467 210407 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210407 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 如何用 Python 脚本打败柏林租赁市场 GIAN SEGATO Learn how one Python developer used a Python script to analyze the housing market in Berlin and predict when a property would be sold or when the price would be decreased. While the article doesn’t include a lot of technical details, it’s a great case study of how Python, its rich ecosystem, and a little creativity can turn solving a banal problem — like searching for a new house in a crowded market — into something fun and intellectually rewarding! (是也乎: 15年, 就有程序猿通过 Python 脚本自动对比给出北京4环外最性价比商品房… ) Python vs Java: 面向对象编程 REAL PYTHON course You may have heard that “everything is an object in Python.” But what does that mean for doing object oriented programming? If you’re coming to Python with a Java background, you’ll want to check out this course to learn how to reinterpret your understanding of Java objects to Python, and use objects in a Pythonic way. (是也乎: 你全家才 OOP 呢. Pythonic 一向是多范式嗯哼. ) ...

2021-04-07 · 4 min · 1986 words · ZoomQuiet